fix: apply moa switches to live tui agent - #53502
Conversation
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Approved
Applies MoA (Mixture of Agents) model switches live to the TUI agent via _apply_live_model_override(). Includes proper restore logic for one-shot MoA via _restore_moa_one_shot() with fallback on failure. Well-tested with _FakeAgent mock and dedicated tests for both preset and one-shot paths.
Reviewed by Hermes Agent
|
Superseded by #53548 (merged to One deliberate difference: your PR also keeps the sticky preset-switch path ( Thanks for the fix and the clear root-cause writeup — you diagnosed the cached-agent issue exactly right, same as the merged change. Closing as superseded. |
Problem
TUI/Desktop /moa updated the session model override, but it did not switch the already-running session agent. That meant /moa could show the queued notice while the next turn still ran on the previous single provider.
Summary
Validation
Fixes #53444