Repository navigation
fix(install): settle an interrupted Claude verification listing after install - #975
Merged
Merged
Conversation
Ctrl+C or SIGTERM during the `claude plugin list --json` that verifies a landed project `plugin install` left the binding with a native activation attempt. The CLI said to run the same command again, but the rerun refused the unresolved attempt and only `repair --yes` could clear it. The verifying listing is now part of the install step, so a failed or interrupted verification goes through the same settle as an interrupted native command: once the process tree is proven closed, Claude's registry is read once more, an exact install becomes a committed effect and the same add finishes the activation. Unproven cleanup, including a killed CLI, keeps the attempt as before.
The unclosed variant now proves that no native call follows a listing whose process cleanup was not proven, so dropping the unclosed guard in the install settle fails the test. The resumed variant also requires exactly one binding instead of passing over an empty one.
The settle exception also covers a verifying `plugin list` that finished without confirming the exact install, including after an install with no effect. It no longer blocks by itself: the binding is marked failed and the attempt closes only when every owned receipt read back is exact and the process tree was proven closed.
777genius
marked this pull request as ready for review
November 17, 2026 08:42
|
Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here. So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 29 minutes. View limit details
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. |
777genius
added a commit
that referenced
this pull request
Nov 17, 2026
Preserve merged main through #975 and the exact independently reviewed Darwin Claude, Windows Gemini and pinned Devin publisher transport changes. The existing Darwin Gemini observer remains in the baseline. This immutable source checkpoint is unreferenced and unexecuted. Windows Claude and Codex retention work remain separate pending source review; no current-source native result or historical HTTP403 resolution is claimed.
777genius
added a commit
that referenced
this pull request
Nov 17, 2026
Combine reviewed macOS and Windows native custody, Codex preserved-data proof, immutable published npm baseline observation, and same-pin Devin/Windsurf publisher acquisition. Preserve ordinary removal, public readiness, raw failures, and frozen client behavior. Include actual main through #975. Source-reviewed only; normal applicable CI and native qualification are required. PR957 remains separately owned and will be integrated only after its actual merge.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #968, found by a real Linux run of the kill -9 confirmation from #974.
If
addfor Claude (project scope) was interrupted (Ctrl+C or SIGTERM) during the firstclaude plugin list --jsonafter a successfulplugin install, the CLI said "run the same command again to resume" but the rerun refused with "native activation attempt ... is unresolved". #968 settles the attempt after the four mutating Claude calls only; the listing that verifies them came after that block, so its failure left the effect uncertain and the marker in place. The state could only be cleared byrepair --yesfrom #974.The listing and the install check now sit at the end of the install step, so an interrupted or failed verification goes through the same single settle call. With Claude's process tree confirmed closed, the state is re-read once read-only; an exact target state, or one that the next install or removal accepts, counts as a known effect and the marker is cleared (the binding stays failed, ownership unchanged). If the closure is not proven (for example kill -9) the block stays, as before. This also applies to a verification that ran but did not confirm the exact install: that is no longer a hard block by itself, and a modified cache still blocks. The docs in
docs/NATIVE_SETUP_COMPLETION.mdlist this case in the first exception.Checked with real Claude Code 2.1.325 on macOS: SIGINT and SIGTERM during that listing now give exit 1 with "interrupted", the rerun of the same
addsucceeds,doctorshows no open operation and the plugin is enabled; without the change the rerun refused anddoctorshowed one open operation. A kill -9 at the same moment still keeps the block andrepair --yesclears it. Go regression tests cover the closed and unclosed cases (the unclosed case asserts that no further client call follows) and fail without the change.Not covered: no Linux run with this change (the bug was first seen on Linux, the code is shared), no MCP in the test plugin, and after Ctrl+C the re-read can wait up to the usual 60 s probe limit, as in #968.