Repository navigation
[feat] agent: show conversation-wide execution traces (#407) - #409
Conversation
No source changes. The isolated browser check failed before running tests because the GitHub-hosted runner could not download libvpx7 and libx264-163 from the Ubuntu mirrors (apt exit 100).
|
CI rerun note for reviewers: the previous I do not have permission to rerun the upstream workflow directly, so I pushed an empty-tree commit |
FayeSpica
left a comment
There was a problem hiding this comment.
LGTM
Manually verified that the trace page shows all turns and opens the selected one.
As a follow-up, could we add trace export for reports and show each turn’s duration both on the trace page and next to “Completed” in the chat status row?
Summary
Implements #407, the conversation-wide Agent Trace view requested by @FayeSpica in the approved review of #374:
A single Trace page now groups all executed turns for the selected conversation, with per-turn expansion and lazy-loaded native/model logs and the linked generation Jobs introduced in #374.
Changes
GET .../assistant/conversations/{id}/tracereturns turns in conversation order, including a bounded user-text preview, runtime, model and status. It resolves active and archived conversations and existingreusedCreateIdsaliases without activating a conversation, taking an edit lease or loading JSONL bodies.GET .../assistant/traces/{turn}/conversationlocates the conversation associated with an old single-turn link. If no conversation is found, the previous single-turn view remains available.uuid5(user_id, 'assistant'), rather than assuming messages always alternate. Queued/unexecuted messages and orphan replies are not presented as executed turns.The existing
TraceEntries,TraceRow,TraceJobs, normalizers and #374 job-lineage endpoint remain unchanged.Screenshots
The screenshots use DEMO data from a local provider double, not live model execution.
Narrow viewport checks: EN · 中文
Verification
Reported against fork HEAD
2de2acc0:lint-imports;tsc --noEmit;check:i18n(3,244 keys, 0 issues);git diff --check.npm test(upstream GitHub Actions, verified from raw job logs): 932/932 passed, 0 failed on PR head2de2acc0(PR frontend job). The same command (node --test tests/*.test.ts) passed 929/929, 0 failed on upstream baseab3f0585(base frontend job). These match the three added frontend tests. A separate earlier local run reported 930/932, but its failing test names/stack traces were not supplied; the failures are not reproduced in GitHub CI and have not been established as pre-existing baseline failures. No code change is warranted on that evidence alone.Scope and compatibility
The change is limited to the read-only conversation Trace experience. It does not modify generation, editing leases, accepted Job execution, recovery, or the execution behavior being developed in #375 (edit/resend), #379 / #381 (queued messages), and #402 / #403 (in-turn insertion). The open PR data shapes were not individually exercised in this branch.
Fixes #407
Refs #374, #372, #261.