Skip to content

fix(agent-v2): open per-message agent log modal from the Logs page - #44802

Open
wch243294382 wants to merge 1 commit into
langgenius:mainfrom
wch243294382:fix/agent-v2-log-icon-40761
Open

wch243294382 wants to merge 1 commit into
langgenius:mainfrom
wch243294382:fix/agent-v2-log-icon-40761

Conversation

@wch243294382

Copy link
Copy Markdown

Closes #40761

Root cause

The Agent detail Logs page mounts log-detail-panel.tsx, which renders <Chat> without an onOpenLog handler. As a result the per-message log icon never appears, so there is no way to inspect a single message's trace from the Logs page.

Fix

Frontend-only, no backend change:

  • Fetch the agent's backing_app_id (the runtime Agent App used for chat/log/monitoring) via consoleQuery.agent.byAgentId.get
  • Wire onOpenLog to a local selectedLogItem state and mount AgentLogModal on selection
  • Closing the modal clears the state (no global-store leak)

Keeps the tracing ExternalTraceRow footer introduced in #44186, and the test follows the behavioral withConsoleResponses style from #44260.

Test

web/features/agent-v2/agent-detail/logs/__tests__/log-detail-panel.spec.tsx — added "opens the agent log modal for a message and closes it".

The Agent detail Logs page rendered Chat without an onOpenLog handler, so
the per-message log icon never appeared and there was no way to inspect a
message trace from the Logs page.

Fetch the agent backing_app_id (runtime agent app used for
chat/log/monitoring) and mount AgentLogModal on selection; closing clears
the local state. Coexists with the tracing ExternalTraceRow footer (langgenius#44186).
Closes langgenius#40761
@github-actions github-actions Bot added size:M This PR changes 30-99 lines, ignoring generated files. web This relates to changes on the web. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Cannot open the conversation detail log in the new Agent

1 participant