Skip to content

feat(cursor): trace subagent summaries - #168

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 2 commits into
mainfrom
add-cursor-tracing-206a8129
Open

Abhijeet Prasad (AbhiPrasad) wants to merge 2 commits into
mainfrom
add-cursor-tracing-206a8129

Conversation

@AbhiPrasad

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Capture Cursor subagent start and stop events to create summary spans with task input, duration, status, and summary.
  • Return valid allow decisions from Cursor permission hooks so tracing does not block Task or subagent execution.
  • Capture preToolUse for Task calls, parent child spans to the spawning tool, and retain the owning turn ID for cost aggregation.
  • Keep child activity explicitly unverified and consolidate paired-hook coverage in the existing translator test.

Verification

  • cargo test --manifest-path bt-daemon/Cargo.toml --test cursor_translator
  • cargo test --manifest-path bt-daemon/Cargo.toml --lib cursor
  • src/plugins/cursor/validate.sh src/plugins/cursor/content
  • cargo fmt --manifest-path bt-daemon/Cargo.toml -- --check
  • git diff --check

Capture subagent start events so summary spans include task input and duration,
and parent them to the spawning tool call when available.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T20:27:27.974714Z 4ac9807 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 42baba1480

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread src/plugins/cursor/content/hooks/hooks.json
Comment thread bt-daemon/src/translate/cursor/mod.rs Outdated
Comment thread src/plugins/cursor/content/hooks/hooks.json
Return valid allow responses from permission hooks, capture Task preToolUse,
and retain turn lineage when subagent spans parent to the Task tool.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant