Repository navigation
Conversation
Greptile SummaryThis PR fixes a UI stale-state bug in the Agents overview panel where the model/fallback form controls could display the wrong values after switching agents (e.g. Key observations:
Confidence Score: 5/5
Last reviewed commit: ff6bb05 |
ff6bb05 to
2da6ea6
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing this as duplicate or superseded after Codex automated review. #39495 is a duplicate patch attempt for the same remaining Agents Overview model-control bug already tracked by the earlier open PR #39401 and linked bug #39392. Current main does not implement the fix, so the right cleanup is to close this PR only as duplicate and keep the canonical bug/fix path open. Best possible solution: Close #39495 as a duplicate patch attempt and keep #39401 plus linked issue #39392 as the canonical path. The eventual fix should adapt one keyed/remount or equivalent explicit reset for the Agents Overview model/fallback controls and add a regression test for switching agents while staying on the Overview panel. What I checked:
So I’m closing this here and keeping the remaining discussion on the canonical linked item. Codex Review notes: model gpt-5.5, reasoning high; reviewed against b67d9bf7f06f. |
Summary
selectedAgent.idWhy
Control UI could show stale model selection after switching
main -> another agent -> maindue to reused form element state across agent switches. Backend/runtime config remained correct, but the visible model dropdown could drift.Behavior after fix
When switching agents, the overview form is recreated for the selected agent id, so model/fallback controls always reflect that agent's own resolved config state.
Test evidence
pnpm vitest run --config vitest.unit.config.ts ui/src/ui/controllers/agents.test.ts ui/src/ui/views/agents-utils.test.tsFixes #39392