Skip to content

fix(install): surface claude's real output on plugin-install failure#86

Merged
bahadirarda merged 1 commit into
mainfrom
claude-plugin-install-diagnostics
May 25, 2026
Merged

fix(install): surface claude's real output on plugin-install failure#86
bahadirarda merged 1 commit into
mainfrom
claude-plugin-install-diagnostics

Conversation

@bahadirarda
Copy link
Copy Markdown
Contributor

Operator hit step 3 claude plugin: ... exit status 1 on clawtool install with no reason shown — the actual claude output (auth / unknown marketplace / network) was captured then discarded by the error wrapping.

EnsureClaudeCodePlugin / RemoveClaudeCodePlugin now append the command's trimmed combined output (outputTail, capped 600B) to the marketplace-add / install / uninstall errors, so the next run prints claude's real failure.

Tests: output-surfaced-in-error path + outputTail blank/short/long.

(Root-cause fix for the install itself follows once we see what claude actually printed.)

`clawtool install`'s step-3 claude-plugin failure showed only "exit
status 1" — the actual reason (auth, unknown marketplace, network)
was captured in claude's combined output and then discarded by the
error wrapping, leaving operators with nothing to act on.

EnsureClaudeCodePlugin / RemoveClaudeCodePlugin now append the
command's trimmed output (via outputTail, capped at 600 bytes) to the
marketplace-add, install, and uninstall errors. Tests cover the
output-in-error path and outputTail's blank/short/long cases.
@bahadirarda bahadirarda merged commit b1da32f into main May 25, 2026
5 checks passed
@bahadirarda bahadirarda deleted the claude-plugin-install-diagnostics branch May 25, 2026 19:50
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