Codex Cloud repository selector hides another organization's repositories when GitHub App access is set to All repositories
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Summary
Codex Cloud's repository selector appears to drop repositories from one GitHub organization depending on how many repositories are exposed by another GitHub App installation.
This is reproducible by changing the ChatGPT Codex Connector repository access scope in GitHub. It looks like a repository discovery / pagination / result-cap issue rather than a GitHub permission problem.
Environment
- Codex Cloud / web repository selector
- GitHub App:
ChatGPT Codex Connector - Multiple GitHub App installations / organizations
- Affected organization:
MonakaVR - Example affected repository:
MonakaVR/MonakaProtocol
GitHub-side permissions for the MonakaVR installation are valid, and Repository access is set to All repositories.
MonakaVR/MonakaProtocol itself exists and currently has multiple branches on GitHub (main and refactor/monaka-layer-separation).
Reproduction
- Have the Codex Connector installed for at least two GitHub organizations/installations.
- Keep the
MonakaVRinstallation enabled for all repositories. - On another organization/install, set
Repository accesstoAll repositories(this organization has substantially more repositories). - Open the Codex Cloud repository dropdown.
MonakaVRrepositories are missing from the dropdown.- Change the other organization/install from
All repositoriestoOnly select repositoriesand expose only one repository. - Re-open / refresh the Codex repository dropdown.
MonakaVRappears immediately in the dropdown.- Change the other organization/install back to
All repositories. - Re-open / refresh the dropdown.
MonakaVRdisappears again.
The appearance/disappearance follows the repository scope change immediately and reproducibly.
Expected behavior
All repositories accessible through all authorized GitHub App installations should remain discoverable/searchable in the Codex Cloud repository selector regardless of how many repositories another installation exposes.
Actual behavior
Increasing the accessible repository set for another installation causes MonakaVR repositories to disappear from the Codex Cloud selector. Reducing that installation to one selected repository makes MonakaVR reappear immediately.
Additional observations
- This does not look like an authorization issue on
MonakaVR: the GitHub App is installed there withAll repositoriesaccess and read/write permissions. - The same repositories are accessible through GitHub itself/API; the problem is specifically the Codex Cloud repository discovery / dropdown.
- Before discovering this reproduction condition, Codex tasks created against the affected repo landed in an internal
workbranch snapshot where the expected remote branches/files were not visible, which is consistent with the wrong/incomplete repository snapshot being selected. - Possible causes: repository result cap, missing pagination, cross-installation aggregation truncation, or local filtering over a truncated backend result set.
If useful, I can also collect the browser Network response for the repository search endpoint and determine whether the missing repositories are absent from the backend response or only omitted by the frontend dropdown.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Codex Cloud repository dropdown and capture the browser Network response for the repository search endpoint while changing GitHub App access scopes. Compare whether MonakaVR/MonakaProtocol is absent from the backend response or omitted by the frontend; done means all repositories from all authorized installations remain discoverable regardless of another installation's size.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github
- Domain
- api, cloud, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100