You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When terminal-backed Codex Chat reports a model newer than Orca's bundled list, the composer now shows that model. Previously a first gpt-6.1-sol report left only “Model”; switching from a listed model could leave the old model displayed. The same repair applies to desktop and mobile.
Before / after (Codex status-report strings)
Codex reports
Before
After
gpt-6.1-sol (newer than seed)
nothing, pill says "Model"
gpt-6.1-sol
gpt-5.5-pro
mislabeled as GPT-5.5
gpt-5.5-pro
gpt-5.2-codex-mini
mislabeled as GPT-5.2 Codex
gpt-5.2-codex-mini
ollama/qwen3:32b (custom provider)
nothing
ollama/qwen3:32b
gpt-5.5, GPT-5.5, GPT-5.6 Sol
GPT-5.5 / GPT-5.6 Sol
unchanged
blank, or text with spaces
nothing
unchanged
What Changed
The shared matcher gains an opt-in for unlisted selectors, used only by Codex's desktop and mobile status-report callers. Exact known IDs and labels still canonicalize; an unlisted single-token selector keeps its exact spelling before fuzzy containment can mistake it for an older model. Other callers retain their existing matching policy.
Existing tracked-row reconciliation supplies the current label. Reconnect guards and Codex's own /model picker remain in place. An unknown model gains no inferred reasoning-effort choices or default effort value.
Why
Both surfaces discarded an authoritative current-model report solely because it was absent from a fallback catalog. Reusing the matcher and tracked-row reconciliation fixes that shared boundary without expanding the static seed on each model release.
Linked Issue
Refs #25951, including the iOS report consolidated from #26075. This addresses the current-model label slice. Live catalog discovery/picker membership (#30077), worker validation (#25006), and displaying actually observed effort remain separate; no full issue closure is claimed.
Visual Proof
Real hidden Electron dev app on macOS, in a disposable folder project with shell PTYs and a seeded idle Codex status reporting gpt-6.1-sol. The original matcher and fixed matcher were exercised in the same app. Full-window screenshots were inspected directly; the fixed picker was opened and offered “Choose in agent picker…” with no inferred effort controls.
Original matcher
Fixed matcher
This is rendered integration proof with synthetic status data, not a live Codex/custom-provider/account test. Windows/Linux/SSH and mobile-device rendering were not run. No test windows were revealed or focused. Screenshots reviewed by the primary agent; no delegated visual review.
Testing
Manually inspected the hidden desktop renderer and opened the real picker.
Added automated regressions: first unlisted report and listed-to-unlisted switch on both desktop and mobile, repeated report after a gap, retained picker action, and no invented effort controls.
Original matcher: both desktop regressions fail (8 existing controls pass); both mobile regressions fail (21 existing controls pass).
Fixed: 102 desktop/shared tests in five files and 29 mobile tests in three files pass. Matcher controls additionally cover unknown suffix IDs, case-preserved custom selectors, known labels, whitespace rejection and opt-in scope.
Renderer typecheck: 15,575 files, passed. Mobile app typecheck passed.
Changed-code quality, formatting and diff checks pass. Normal commit hooks ran.
The dev launch rebuilt main/preload. Full release packaging and the full repository test suite were not run.
Independent review pass (2026-10-22)
Reproduced the bug against main's matcher: both new desktop regressions and both new mobile regressions fail (8 / 21 existing tests still pass). With this branch: 47/47 shared+desktop tests (native-chat-session-option-state, use-native-chat-session-options, native-chat-session-option-commands) and 23/23 mobile hook tests pass.
Ran a throwaway comparison of the old vs new matcher on the real Codex seed catalog; results are the table above.
Confirmed the Codex hook stamps the raw Codex model slug (codex-events.ts), so the reported string is the exact selector, not free text.
oxlint and oxfmt clean on changed files. No cross-host run: this is pure renderer/mobile string logic with no platform, path, or wire change.
Review
No protocol/schema, credential, shell/process, path, shortcut or layout change. Incoming reports remain host-produced; existing report replay protection stays in place. The matcher adds constant work per report and no requests, polling, effects or subscriptions. Shared tests plus both real hooks cover desktop/mobile logic; remote peers need no new capability or wire field.
Risks / tradeoffs
A Codex model whose id merely contains a seeded id (e.g. gpt-5.5-pro) used to borrow that seed's effort control; it now shows its true name with no inline effort control. That control only typed /model anyway, and the model pill still opens Codex's own /model picker, where effort is chosen.
Only Codex opts in; Claude, OMP and other agents keep their current matching.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
📝 Walkthrough
The shared model matcher now accepts an option to retain unlisted, single-token model reports. The renderer and mobile session hooks enable this option for Codex; other agents keep the default matching behavior. Tests cover matcher results and Codex model choices, snapshot preservation, and /model actions.
Priority: ➖ Normal
Merge Risk:⚪ Minimal · up to 71646
Unlisted reported Codex models remain selectable on desktop and mobile. No issue identified here prevents merging after normal checks.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 6 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the primary change: retaining unlisted reported Codex models.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description is complete and relevant. It includes the ELI5 summary, user-facing behavior, implementation details, rationale, linked issue references, visual proof, testing results, scope boundarie…
Full details: Description check
Explanation
The description is complete and relevant. It includes the ELI5 summary, user-facing behavior, implementation details, rationale, linked issue references, visual proof, testing results, scope boundaries, risks, and platform limitations. The issue reference uses “Refs” instead of the template’s “Fixes #” format, and the AI Disclosure, Notes, and Checklist headings are not included, but the required technical context is otherwise present.
✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
🛠️ Fix failing CI checks: 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
When terminal-backed Codex Chat reports a model newer than Orca's bundled list, the composer now shows that model. Previously a first
gpt-6.1-solreport left only “Model”; switching from a listed model could leave the old model displayed. The same repair applies to desktop and mobile.Before / after (Codex status-report strings)
gpt-6.1-sol(newer than seed)gpt-6.1-solgpt-5.5-progpt-5.5-progpt-5.2-codex-minigpt-5.2-codex-miniollama/qwen3:32b(custom provider)ollama/qwen3:32bgpt-5.5,GPT-5.5,GPT-5.6 SolWhat Changed
The shared matcher gains an opt-in for unlisted selectors, used only by Codex's desktop and mobile status-report callers. Exact known IDs and labels still canonicalize; an unlisted single-token selector keeps its exact spelling before fuzzy containment can mistake it for an older model. Other callers retain their existing matching policy.
Existing tracked-row reconciliation supplies the current label. Reconnect guards and Codex's own
/modelpicker remain in place. An unknown model gains no inferred reasoning-effort choices or default effort value.Why
Both surfaces discarded an authoritative current-model report solely because it was absent from a fallback catalog. Reusing the matcher and tracked-row reconciliation fixes that shared boundary without expanding the static seed on each model release.
Linked Issue
Refs #25951, including the iOS report consolidated from #26075. This addresses the current-model label slice. Live catalog discovery/picker membership (#30077), worker validation (#25006), and displaying actually observed effort remain separate; no full issue closure is claimed.
Visual Proof
Real hidden Electron dev app on macOS, in a disposable folder project with shell PTYs and a seeded idle Codex status reporting
gpt-6.1-sol. The original matcher and fixed matcher were exercised in the same app. Full-window screenshots were inspected directly; the fixed picker was opened and offered “Choose in agent picker…” with no inferred effort controls.This is rendered integration proof with synthetic status data, not a live Codex/custom-provider/account test. Windows/Linux/SSH and mobile-device rendering were not run. No test windows were revealed or focused. Screenshots reviewed by the primary agent; no delegated visual review.
Testing
Independent review pass (2026-10-22)
main's matcher: both new desktop regressions and both new mobile regressions fail (8 / 21 existing tests still pass). With this branch: 47/47 shared+desktop tests (native-chat-session-option-state,use-native-chat-session-options,native-chat-session-option-commands) and 23/23 mobile hook tests pass.modelslug (codex-events.ts), so the reported string is the exact selector, not free text.Review
No protocol/schema, credential, shell/process, path, shortcut or layout change. Incoming reports remain host-produced; existing report replay protection stays in place. The matcher adds constant work per report and no requests, polling, effects or subscriptions. Shared tests plus both real hooks cover desktop/mobile logic; remote peers need no new capability or wire field.
Risks / tradeoffs
gpt-5.5-pro) used to borrow that seed's effort control; it now shows its true name with no inline effort control. That control only typed/modelanyway, and the model pill still opens Codex's own/modelpicker, where effort is chosen.Related
Agent skill upstream boundary