Skip to content

Display all model call information in message info dialog #324

@larryro

Description

@larryro

Problem

Chat page only shows the routing model, but not the sub-agent models. When a user sends a message:

  1. Routing model (Chat Agent) processes and routes to sub-agents
  2. Sub-agents (CRM, Web, Integration, etc.) use their own models
  3. 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

  • Message info dialog shows all model calls (routing + sub-agents)
  • Each sub-agent call displays: agent type, model, provider, token usage
  • Works with auto-create/append for timing issues (sub-agent may complete before parent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions