Skip to content

Record hook route metadata#232

Merged
ScriptedAlchemy merged 5 commits into
masterfrom
codex/hook-session-route
Jul 2, 2026
Merged

Record hook route metadata#232
ScriptedAlchemy merged 5 commits into
masterfrom
codex/hook-session-route

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • add optional daemon hook route metadata for session/thread/cwd/worktree/branch correlation
  • enrich Cursor, Codex, and Kiro daemon hook notifications from host hook JSON
  • persist received hook route metadata as daemon_hook analytics records for later MCP/tool-call correlation

Tests

  • cargo fmt --check
  • CARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test mcp::hook_events::tests
  • CARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test hook_route_analytics_event_preserves_correlation_fields
  • git diff --check

Notes

  • Initial cargo test in the new worktree failed with cold target-dir dependency resolution errors; rerunning with the existing parent target dir compiled and passed.
  • TraceDecay search surfaced sibling hook-routing worktrees, so this PR keeps the route metadata slice isolated from broader sync routing behavior.

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: eaefe1a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy ScriptedAlchemy changed the base branch from feat/dashboard-ux-improvements to master July 2, 2026 09:13
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/hook-session-route branch from 63269ac to cb2c4c0 Compare July 2, 2026 09:13

@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: 63269ac7ea

ℹ️ 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 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 address that feedback".

Comment thread src/hooks.rs Outdated
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/hook-session-route branch 2 times, most recently from 465ae30 to 8eb3a99 Compare July 2, 2026 09:44
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/hook-session-route branch from 255c5b6 to 475d262 Compare July 2, 2026 10:44
@ScriptedAlchemy ScriptedAlchemy merged commit 8031ac4 into master Jul 2, 2026
14 checks passed
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