Problem
Chat page only shows the routing model, but not the sub-agent models. When a user sends a message:
- Routing model (Chat Agent) processes and routes to sub-agents
- Sub-agents (CRM, Web, Integration, etc.) use their own models
- Only the routing model is displayed in the message info dialog
Key Discovery
Sub-agents DO save their metadata via onAgentComplete, but to their own sub-thread, not the parent chat thread. The metadata exists but is not aggregated to the main message info dialog.
Proposed Solution
Instead of passing model info through tool responses, have sub-agents directly append their model info to the parent thread's messageMetadata record via onAgentComplete.
Acceptance Criteria
Problem
Chat page only shows the routing model, but not the sub-agent models. When a user sends a message:
Key Discovery
Sub-agents DO save their metadata via
onAgentComplete, but to their own sub-thread, not the parent chat thread. The metadata exists but is not aggregated to the main message info dialog.Proposed Solution
Instead of passing model info through tool responses, have sub-agents directly append their model info to the parent thread's
messageMetadatarecord viaonAgentComplete.Acceptance Criteria