Codex GitHub connector: repository search fails

When creating a new Codex environment and connecting GitHub, the repository dropdown initially loads up to 20 repositories correctly. However:

  1. If you try to search for any repository in the dropdown (even one that is already visible in the unfiltered list), the search fails with the message:
    “Failed to load repositories. Please ensure you have connected your GitHub account.”

Steps to reproduce:

  1. Connect GitHub to Codex with access to all repositories.

  2. Go to Environments → New.

  3. In the “Repository” field, open the dropdown.

    • Observe that only 20 repositories are listed.
  4. Use the search box to look for a repo (including one of the 20 visible repos).

    • The search fails and shows the “Failed to load repositories” error.

Expected behavior:

  • Repository search should work and return matching repos.

Actual behavior:

  • Repository search fails with error.

Environment:

  • Codex web (latest, September/October 2025).

  • GitHub personal account (all repos authorized).