Repository navigation
[feat] agent: download original conversation traces as a ZIP archive (#421) - #422
Conversation
…ab#421) Add a Markdown report export across all executed turns, with bounded event metadata and linked generation-job status. Omit raw model prompts and tool payloads.
Restore the Markdown escape replace after the HTML entity escaping so the file parses again (TS1005/TS1127).
… with fewer conflicts (Refs ThinkFlowLab#468)
|
The Markdown summary doesn’t preserve enough detail to diagnose failures. Please let users download the original trace. |
Preserve the upstream release checks and browser manifest while retaining the original JSONL ZIP export gate.
|
Thanks for clarifying the debugging need, @FayeSpica. I agree that the Markdown event summary wasn't sufficient to diagnose failures, so I've replaced it in #422 with a Download original trace (.zip) action rather than keeping two export formats. The ZIP includes the original, byte-for-byte per-turn JSONL logs from the existing read-only trace API, including the Because raw logs may contain prompts, tool inputs/outputs, model requests, credentials, and private paths, the download requires a sensitive-data confirmation. I've updated the bilingual UI, added ZIP fidelity/unit tests, and replaced the browser fixture checks with an actual ZIP download and source-byte comparison. The branch now includes current upstream Updated HEAD: |
…running turns, bound reads Reuse createZip()/downloadFile() instead of the hand-written ZIP writer whose EOCD central directory size was 12 bytes too large (unzip and zipfile rejected every archive). Re-check turn status at click time and after reading, drop the 32 MiB per-source cap in favour of a 64 MiB total including ZIP overhead, add request/total timeouts and cancel, cancel streams on failure, distinguish an empty Jobs list from a failed lookup, and document the per-source (non-atomic) semantics in EN and zh-CN. Refs ThinkFlowLab#421 ThinkFlowLab#422
|
@yefuyou please fix ci issues |
|
Thanks for flagging the CI failures, @FayeSpica. I checked the logs for the latest head The only failing test lane is
Neither scenario exercises the Trace export UI, and I haven't found a change in this PR that explains those failures. Both tests passed 3/3 times on this PR head and 3/3 times on a clean upstream main in local CI-style runs. This suggests an intermittent browser/canvas timing or overlay issue, but I haven't established the root cause, so I don't want to call it definitively flaky. The PR's I don't have permission to rerun the Actions job (the rerun request returns 403). Could someone with access please rerun the failed |
FayeSpica
left a comment
There was a problem hiding this comment.
LGTM,Thanks
Maybe as a follow-up, we could redact credentials such as API keys and auth tokens from trace exports, then remove the download confirmation dialog.
Summary
Addresses @FayeSpica's review feedback: the previous Markdown-only summary omitted information needed to diagnose failures. This revision replaces the Markdown report with a Download original trace (.zip) action on the conversation-wide Trace page.
.jsonltrace sources for every executed turn, including collapsed turns; no new backend endpoint, trace storage or provider call.model.jsonlwhen recorded. No normalization, redaction, event-count clipping or JSONL parsing on export. Invalid/incomplete source lines remain exactly as recorded.manifest.jsonwith conversation and turn IDs, runtime, status, source filenames / missing statuses, and linked Job ID/status metadata.Scope
Replaces, rather than duplicates, the initial Markdown export. The original per-turn raw file API is reused. Trace display, normal lazy loading, conversation deep links, Job execution and Slice B timing overview are unchanged.
Validation
Refs #421, #409, #374.