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

/traces narrows by the tool a run used and the file it touched, on the page, the API and the terminal #18368

shipped production is serving it opened this has it

Landed in pull #18373 · run

opened this

Intent: one person with thousands of traces finds 'the runs that edited src/http/respond.ts' or 'every Bash-heavy session' without scrolling.

Done:

Files: src/trace/list.ts, src/trace/tree.ts, src/http/api/traces.ts, src/web/pages/traces.ts, src/tui/screens/traces.ts, a migration for the index columns, test/. Risks: index growth (store distinct tool names and at most N paths per trace); the same one-gate rule as the list. Suggested: a builder who knows the trace index.

commented

Reviewed pull #18373 at its head: ticked tool and file are query parameters of /traces and GET /api/v1/traces (and the MCP trace list action); a malformed value is dropped on the page and a 400 in the API, as the other facets are.; They read the trace index, never a log on the list path (index the tool names and touched paths when a trace is written or imported; older rows are filled lazily and the list says how many are not yet indexed).; A Tool and a File field sit under Filters on the page; the terminal list takes the same two keys.; Tests: each facet narrows the list; a viewer sees only traces they may read; an unindexed row is not a wrong answer; a hostile value is escaped on the page.; docs/features/traces.md names the two facets..

Sign in to join this conversation.

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

Keyboard shortcuts

Docs