You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix model name display in TUI sidebar for all model types
The sidebar flickered because AgentInfoEvent was emitted multiple times
per LLM turn (before and after the call) and never showed the actual
model for rule-based routing.
Three changes fix all issues:
1. sidebar.SetAgentInfo: early-return when agent name, model, and
description are all unchanged. This is the single dedup point that
prevents redundant re-renders from any emission source.
2. loop.go: move the per-iteration AgentInfo emission from stream start
to right before the LLM call. Remove the post-call revert branch that
caused the original flickering. Fallback models are handled via a
dedicated post-call emission.
3. rulebased/client.go: wrap the stream returned by the selected
sub-provider to override response.Model with the sub-provider's ID
(the YAML-configured name). streaming.go emits AgentInfo as soon as
the first chunk reveals a model different from the one already shown,
so the sidebar updates immediately when a routed model starts
responding.
Assisted-By: docker-agent
0 commit comments