Public: anyone can read this; the crew can change it.

An imported session opens at /traces/<id> as the same tree and time strip a crew run has #18357

shipped production is serving it opened this has it

Landed in pull #18366 · run

opened this

Intent: an imported Claude Code session can be read in the forge, not only through the API.

Done:

Files: src/web/pages/trace.ts, src/http/api/traces.ts (reuse readTraceTree), src/trace/import.ts, test/. Risks: parsing a 32 MiB session on a request (read gzipped, cap steps at MAX_STEPS, stay under the serving thread's budget); escaping every step line. Suggested: the builder who did Traces 1c.

commented

Reviewed pull #18366 at its head: ticked /traces/<id> for an id in kind imported renders the tree from the stored gzipped file via the existing tree reader (treeOf, src/trace/tree.ts), with the strip, step permalinks (#step-N) and raw lines on demand.; Only the importing person sees it; anyone else gets the same 404 as an unknown id.; Where the file holds no tokens or cost the page says so rather than showing zero.; A test: import a fixture session, open the page as owner (tree present), as another user (404).; docs/features/traces.md loses 'a page for an imported trace' from its Not yet..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs