Skip to content

fix(opencode): move delivery flushing into the daemon - #81

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-fix-move-opencode-flushing-to-daemon
Sep 14, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-fix-move-opencode-flushing-to-daemon

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

OpenCode waited for backend delivery at lifecycle boundaries. A slow flush blocked idle handling and shutdown for up to 10 seconds.

Before:

  OpenCode -> journal ack -> wait for backend flush -> next event / shutdown

After:

  OpenCode -> journal ack -> next event / shutdown
                  |
                  +-> daemon flushes to Braintrust in the background

Keep ordered capture acknowledgement, but let the daemon flush idle, deletion, error, and disposal events. Delivery continues after OpenCode disconnects.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 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-14T22:50:25.193844Z b401490 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: 29646f3d9b

ℹ️ 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/server.rs
OpenCode waited for backend delivery at lifecycle boundaries. A slow flush
blocked idle handling and shutdown for up to 10 seconds.

Before:
  OpenCode -> journal ack -> wait for backend flush -> next event / shutdown

After:
  OpenCode -> journal ack -> next event / shutdown
                  |
                  +-> daemon flushes to Braintrust in the background

Keep ordered capture acknowledgement, but let the daemon flush idle, deletion,
error, and disposal events. Delivery continues after OpenCode disconnects.

Requires both the updated OpenCode plugin and bt daemon.
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-fix-move-opencode-flushing-to-daemon branch from 29646f3 to b401490 Compare September 14, 2026 22:45

@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: b40149084c

ℹ️ 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/lib.rs
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 2f031ec into main Sep 14, 2026
20 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi-fix-move-opencode-flushing-to-daemon branch September 14, 2026 23:24
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.

2 participants