mirror of
https://github.com/openai/codex.git
synced 2026-09-03 14:59:03 +00:00
## Summary Opening `/review` and choosing a branch currently enumerates branches through `git branch`, which performs broader branch presentation work. In a large repo, it isn't hard for this to timeout completely. This PR instead uses `git for-each-ref` scoped directly to `refs/heads` so the picker reads only local branch refs. It preserves the existing sorting and default-branch promotion while excluding remote-tracking refs and detached-HEAD display rows.