fix(native-chat): add direct Codex model selection - #12657
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughCodex model selection now sends 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/renderer/src/components/native-chat/NativeChatComposer.test.tsx (1)
566-577: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winExtend both regression tests beyond command dispatch.
The tests prove that
/model gpt-5.5is sent, but they do not fully prove the user-visible selection outcome.
- src/renderer/src/components/native-chat/NativeChatComposer.test.tsx#L566-L577: drive the model selector or assert its handler, then verify that
onSwitchToTerminalis not called.- mobile/src/session/use-mobile-native-chat-session-options.test.ts#L101-L108: assert that the post-selection snapshot reports
currentValue: 'gpt-5.5'; cover reported-model reconciliation if this hook owns remote updates.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 276a85f3-bdcb-475a-8b08-e41b32b17bee
📒 Files selected for processing (7)
mobile/src/session/use-mobile-native-chat-controller.tsmobile/src/session/use-mobile-native-chat-session-options.test.tssrc/renderer/src/components/native-chat/NativeChatComposer.test.tsxsrc/renderer/src/components/native-chat/native-chat-pty-session-options.test.tssrc/shared/agent-session-option-catalog-claude-codex.tssrc/shared/native-chat-session-option-commands.test.tssrc/shared/native-chat-session-option-snapshot.test.ts
7dc27b7 to
a9466f0
Compare
|
Electron QA after a9466f0: live Codex model switches complete while the native chat composer remains visible. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: dad303b0-1ab3-488f-86ba-f98212dc3fe3
📒 Files selected for processing (4)
src/main/runtime/orca-runtime.test.tssrc/main/runtime/orca-runtime.tssrc/shared/agent-title-status.tssrc/shared/terminal-output-side-effects.ts



Summary
/model <model-id>directly while retaining bare/modelas the agent-picker fallbackTesting
pnpm exec vitest run --config config/vitest.config.ts src/shared/native-chat-session-option-commands.test.ts src/shared/native-chat-session-option-snapshot.test.ts src/renderer/src/components/native-chat/native-chat-pty-session-options.test.ts src/renderer/src/components/native-chat/NativeChatComposer.test.tsx— 64 passedoxlint— passedQA screenshots
Desktop — model picker
Desktop — applied model confirmation
Mobile — model picker
Mobile — applied model confirmation
Follow-up observations