feat: add live project tool-call activity traces - #148
Conversation
Persist MCP and capa sh tool calls, expose REST/SSE activity APIs, and show a project Activity section with stats, last-hour chart, and inspectable traces. Co-authored-by: Cursor <cursoragent@cursor.com>
PR Summary by QodoAdd live project tool-call activity traces (persisted + REST/SSE + UI)
AI Description
Diagram
High-Level Assessment
Files changed (23)
|
Code Review by Qodo
1.
|
Detect fatal stderr (e.g. Rust Tokio-thread panics), kill the hung child so in-flight tools/call rejects immediately, and limit the traces list to a scrollable max height. Co-authored-by: Cursor <cursoragent@cursor.com>
Skip pruning running traces, paginate with a composite (started_at, id) cursor, and preserve string argument defaults via an explicit Set a default toggle. Co-authored-by: Cursor <cursoragent@cursor.com>
Treat executor success:false and remote isError results as failed activity, and ignore list_changed notify when no MCP transport is connected. Co-authored-by: Cursor <cursoragent@cursor.com>
Fingerprint cmd/args/env/cwd/url so version bumps in capabilities.yaml close the stale client and spawn the new one without a full capa restart. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
capa shtool calls (redacted args, truncated previews, original size/tokens) with per-project cap and prunetool-callSSE eventsTest plan
capa shagainst a project; confirm rows appear live in Activitybun test ./src/server/__tests__/tool-call-tracer.test.tsMade with Cursor