Skip to content

fix(install): settle an interrupted Claude verification listing after install - #975

Merged
777genius merged 3 commits into
mainfrom
fix/claude-verify-interrupt
Nov 17, 2026
Merged

777genius merged 3 commits into
mainfrom
fix/claude-verify-interrupt

Conversation

@777genius

Copy link
Copy Markdown
Owner

Follow-up to #968, found by a real Linux run of the kill -9 confirmation from #974.

If add for Claude (project scope) was interrupted (Ctrl+C or SIGTERM) during the first claude plugin list --json after a successful plugin 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 by repair --yes from #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.md list 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 add succeeds, doctor shows no open operation and the plugin is enabled; without the change the rerun refused and doctor showed one open operation. A kill -9 at the same moment still keeps the block and repair --yes clears 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.

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
777genius marked this pull request as ready for review November 17, 2026 08:42
@777genius
777genius merged commit eeefeb1 into main Nov 17, 2026
48 of 54 checks passed
@strix-security

Copy link
Copy Markdown

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.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 554768d and 0fa89d8.

Files selected for processing: 4

  • cli/internal/agentpluginscli/project_claude_interrupt_test.go
  • cli/internal/agentpluginscli/project_claude_prepared_update_test.go
  • docs/NATIVE_SETUP_COMPLETION.md
  • install/integrationctl/agentplugins/clients/claude/project_marketplace_lifecycle.go
  • 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.

Share

@777genius
777genius deleted the fix/claude-verify-interrupt branch November 17, 2026 08:42
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.
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.

1 participant