You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(daemon): roll the daemon-side fixes since v1.4.241 into a fresh v53 daemon - #34042
The terminal daemon outlives app updates, and the app reuses a running daemon with the same protocol number. v1.4.241 shipped v52 and main is still v52, so users upgrading to the next release would keep v1.4.241's daemon and miss the daemon-side fixes merged since. One of them is a contract change: #33668 renamed the env var the daemon's shell wrapper restores for MiMo (ORCA_MIMOCODE_HOME → ORCA_MIMOCODE_CONFIG_DIR), so a new app on a reused v52 daemon would leave MiMo's login fix inert. This bumps to v53 so new terminals start on a fresh daemon; existing v52 terminals stay attachable.
What Changed
PROTOCOL_VERSION 52 → 53, with 52 added to PREVIOUS_DAEMON_PROTOCOL_VERSIONS.
daemon-foreground-confirmation-protocol.test.ts pins the new number.
No wire format change. v53 has not been used by any build.
Why
A tree-shaken bundle diff of daemon-entry.ts between v1.4.241 and main (22fd6f5) shows daemon runtime changes from #33668 (MiMo config env), #18182 (PowerShell OSC 133 C/D startup marks), #33463 (Alt+Left/Right PSReadLine binding), #33898 (ps locale pinned on macOS), #23251 (?? tty), #29762 (RLIMIT_RTTIME warning), #30996, #33671 and the agent permission tables. #33837's --max-semi-space-size flag also only applies to a freshly launched daemon.
Testing
10 daemon/shared test files referencing the protocol: 117 passed.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Walkthrough
The daemon protocol version changes from 52 to 53. The previous-version list adds 52. The TypeScript and JSON local build compatibility contracts set the current version to 53 and include 53 in the attachable versions. The test expectations are updated to check version 53 and previous version 52.
Priority: Normal
Merge Risk: Minimal · up to 68e8f
No actionable merge-blocking risk was identified in the protocol version update.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (1 skipped: 1 …
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title names the main change: bumping the daemon protocol to v53 so a fresh daemon picks up daemon-side fixes since v1.4.241. It follows the conventional fix(scope) form and is one sentence. It is …
Description check
The description follows the template's main sections: ELI5, What Changed, Why, Testing, Visual Proof, and Notes. It explains the protocol bump, the before and after behavior, the mechanism, and the re…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: bumping the daemon protocol to v53 so a fresh daemon picks up daemon-side fixes since v1.4.241. It follows the conventional fix(scope) form and is one sentence. It is somewhat long at 78 characters, but it is specific and clear.
Full details: Description check
Explanation
The description follows the template's main sections: ELI5, What Changed, Why, Testing, Visual Proof, and Notes. It explains the protocol bump, the before and after behavior, the mechanism, and the reason for the change. It also reports test results and marks Visual Proof as N/A with a reason. The Linked Issue section is missing: it says 'Fixes #' with no issue number, and the template requires an issue for outside contributors. The manual-test checkbox and the 'Which platforms were tested' detail are also not addressed. The Review, Agent skill upstream boundary, and checklist sections are not filled in. These gaps are non-critical for a maintainer-authored change, so the check passes, but the author should complete them.
Resolution
Link an issue in the Linked Issue section, or confirm the author is a maintainer and no issue is needed. Also state which platforms were tested (macOS, Linux, Windows, or SSH), and tick the manual-testing checkbox only if it was done. Complete or remove the unused template sections, including the checklist.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Finishing Touches: 💡 2
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
🛠️ Fix failing CI checks: 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Not needed for v1.4.242: no wire break, and the daemon-side changes since v1.4.241 are minor enough to reach users when the v52 daemon next restarts. Skipping the bump avoids running two daemons side by side.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
The terminal daemon outlives app updates, and the app reuses a running daemon with the same protocol number. v1.4.241 shipped v52 and main is still v52, so users upgrading to the next release would keep v1.4.241's daemon and miss the daemon-side fixes merged since. One of them is a contract change: #33668 renamed the env var the daemon's shell wrapper restores for MiMo (
ORCA_MIMOCODE_HOME→ORCA_MIMOCODE_CONFIG_DIR), so a new app on a reused v52 daemon would leave MiMo's login fix inert. This bumps to v53 so new terminals start on a fresh daemon; existing v52 terminals stay attachable.What Changed
PROTOCOL_VERSION52 → 53, with 52 added toPREVIOUS_DAEMON_PROTOCOL_VERSIONS.local-build-compatibility-contract.json/.ts:daemonProtocolVersion: 53, 53 attachable.daemon-foreground-confirmation-protocol.test.tspins the new number.No wire format change. v53 has not been used by any build.
Why
A tree-shaken bundle diff of
daemon-entry.tsbetweenv1.4.241and main (22fd6f5) shows daemon runtime changes from #33668 (MiMo config env), #18182 (PowerShell OSC 133 C/D startup marks), #33463 (Alt+Left/Right PSReadLine binding), #33898 (ps locale pinned on macOS), #23251 (??tty), #29762 (RLIMIT_RTTIME warning), #30996, #33671 and the agent permission tables. #33837's--max-semi-space-sizeflag also only applies to a freshly launched daemon.Testing
Visual Proof
N/A, no UI change.