Skip to content

Make coding-agent hook capture journal-only - #50

Merged
Stephen Belanger (Qard) merged 3 commits into
mainfrom
t3code/fix-claude-hook-timeout
Sep 4, 2026
Merged

Make coding-agent hook capture journal-only#50
Stephen Belanger (Qard) merged 3 commits into
mainfrom
t3code/fix-claude-hook-timeout

Conversation

@Qard

Copy link
Copy Markdown
Collaborator

Summary

  • acknowledge hook events immediately after their durable journal append and move translation, auth resolution, correlation, and reporting behind a daemon-owned ingress queue
  • preserve explicit status, flush, managed-run completion, shutdown, and crash-recovery barriers without letting normal plugin hooks wait on them
  • make turn-end flushing out-of-band, restore unprocessed journal events after daemon restarts, and preserve deterministic transcript boundaries for Codex
  • document the journal-only capture boundary and recovery behavior

Verification

  • cargo test --manifest-path bt-daemon/Cargo.toml --all-features
  • cargo clippy --manifest-path bt-daemon/Cargo.toml --all-features --all-targets -- -D warnings
  • cargo fmt --manifest-path bt-daemon/Cargo.toml -- --check
  • make build
  • make test
  • real Claude Code, Codex, OpenCode, Pi, and Antigravity sessions produced backend traces
  • Antigravity run_command tool trace produced the expected five-span tree in project coding-agents
  • cold-daemon flush_on_turn_end hook returned in 0.22s; regression test enforces the durable-journal boundary with a stalled sink

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 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-09-04T14:07:04.527607Z 95ed034 PR opened
ℹ️ 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: 95ed034d6c

ℹ️ 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 bt-daemon/src/translate/codex.rs Outdated
Comment thread bt-daemon/src/server.rs Outdated
Comment thread bt-daemon/src/server.rs Outdated
@Qard
Stephen Belanger (Qard) merged commit ea70bf1 into main Sep 4, 2026
20 checks passed
Comment thread bt-daemon/src/server.rs
let p = parse!(FlushParams);
// Explicit flushes wait for the daemon-owned ingress queue. Hook
// capture never waits on this barrier.
daemon.settle_ingress().await;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do we need a timeout here?

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.

3 participants