Repository navigation
fix(ui): reset overview model controls when switching agents - #39401
SergioChan wants to merge 1 commit into
Conversation
Greptile SummaryThis PR fixes a UI bug where the model selection controls in the Agent Overview panel would display stale/incorrect values after switching between agents. The fix wraps
Confidence Score: 5/5
Last reviewed commit: c193a1a |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Codex automated review: keeping this open. Keep #39401 open. Current main still renders the Agents overview directly without the proposed Best possible solution: Keep #39401 open or nominate a fresh canonical PR for #39392. The best implementation path is to add a per-selected-agent remount/reset boundary around the Agents overview model controls, then add focused regression coverage that switches between agents with different model settings and verifies the displayed primary/fallback controls reflect the selected agent. What I checked:
Remaining risk / open question:
Codex Review notes: model gpt-5.5, reasoning high; reviewed against 4a3030df9efa. |
Summary
keyed(selectedAgent.id, ...)so the model/fallback form controls remount per agent switch.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation:Repro + Verification
Environment
Steps
mainand observe model control value.main.mainconsistently after switching.Expected
Actual
Evidence
Attach at least one:
Validation run:
pnpm -C ui buildpnpm -C ui test src/ui/views/agents-utils.test.tsHuman Verification (required)
What you personally verified (not just CI), and how:
Compatibility / Migration
Yes)No)No)Failure Recovery (if this breaks)
c193a1a1c.ui/src/ui/views/agents.ts.Risks and Mitigations