[codex] Fix settings model selection#392
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughSettingsView now accepts agent plugin configuration to resolve active agent names and derive available model options dynamically. The Model setting becomes a select field when known models exist or falls back to text input. RunApp integrates these helpers via a new settings save callback that tracks agent and model changes to update the detected model. ChangesSettings UI Agent/Model Configuration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 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 |
Summary
Fixes the TUI settings model field so agents with enumerated models, such as Claude, show selectable model choices instead of only free text. The settings save path also refreshes the dashboard/header model display after a model change, matching the behavior of the dedicated agent/model picker.
Root Cause
The settings dialog always defined the model setting as text, even though agent plugins already expose
listModels(). Saving through settings propagated the config to the engine, but did not update RunApp's localdetectedModeldisplay state, so the dashboard could continue showing the previous model.Changes
listModels()metadata.Validation
bun test src/tui/components/SettingsView.test.ts src/tui/components/AgentModelPicker.test.tsbun test tests/commands/run.test.ts --grep propagateSettingsToEnginebun run typecheck && bun run buildbun run lint(passes with existing unrelated warnings in test files)Summary by CodeRabbit
New Features
Tests