Skip to content

fix(daemon): make version handover forward-only - #91

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
fix/daemon-version-handover-88
Sep 16, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
fix/daemon-version-handover-88

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

Before:

  0.19 -> stop 0.20 -> start 0.19 -> stop 0.19 -> start 0.20

After:

  0.19 -> reuse 0.20
  0.21 -> drain 0.20 -> start 0.21

Fixes #88

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 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-16T19:34:59.301232Z 1a78217 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: 0242e44fb5

ℹ️ 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 Outdated
Comment thread bt-daemon/src/server.rs
Comment thread bt-daemon/src/server.rs Outdated

@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: 13f2ee3beb

ℹ️ 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 Outdated
Comment thread bt-daemon/src/lib.rs Outdated
Comment thread bt-daemon/src/lib.rs Outdated
Prevent mixed-version clients from repeatedly replacing the shared daemon. Shutdown now quiesces capture and drains pending delivery before the replacement starts.

Before:
  0.19 -> stop 0.20 -> start 0.19 -> stop 0.19 -> start 0.20

After:
  0.19 -> reuse 0.20
  0.21 -> drain 0.20 -> start 0.21

Concurrent upgrades retry up to three handovers:
  0.21 + 0.22 -> drain 0.20
  0.21 wins socket
  0.22 -> drain 0.21 -> start 0.22

Captures rejected during a drain reconnect to the replacement, or restore the daemon on demand after an explicit stop.

Record the translating daemon version separately from the capture plugin version so production traces retain both provenance signals.

Fixes #88

@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: 1a78217091

ℹ️ 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
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 9f1b7c2 into main Sep 16, 2026
20 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the fix/daemon-version-handover-88 branch September 16, 2026 20:49
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.

bt-daemon: mixed-version checkouts share one daemon socket (restart churn + stale translation between upgrade and next hook)

2 participants