gitHubRepositoryForDirectory is documented to return undefined for unusable remotes and catches git errors, but calls repositoryName(repository) without catching its validation error. projectRemote permits paths with more than owner/name (for example a copied GitHub web URL), so one admitted root with such a remote rejects the startup Promise.all and prevents the worker from starting. Treat an invalid repository path as undefined (or validate before returning) and add a startup regression test. Found during downstream sync review: https://github.com/ClickHouse/ai/pull/4009#discussion_r4100803959
gitHubRepositoryForDirectory is documented to return undefined for unusable remotes and catches git errors, but calls repositoryName(repository) without catching its validation error. projectRemote permits paths with more than owner/name (for example a copied GitHub web URL), so one admitted root with such a remote rejects the startup Promise.all and prevents the worker from starting. Treat an invalid repository path as undefined (or validate before returning) and add a startup regression test. Found during downstream sync review: https://github.com/ClickHouse/ai/pull/4009#discussion_r4100803959