Skip to content

Surface an error when the Claude process fails without stderr output#198

Open
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:fix/silent-spawn-failure
Open

Surface an error when the Claude process fails without stderr output#198
leonidasbarkas98-cpu wants to merge 1 commit into
andrepimenta:mainfrom
leonidasbarkas98-cpu:fix/silent-spawn-failure

Conversation

@leonidasbarkas98-cpu

Copy link
Copy Markdown

If the spawned claude process exits immediately without writing to stderr (e.g. a misconfigured WSL setup where wsl.exe reports its error on stdout as UTF-16), the extension showed an endless "Claude is working…" state with no feedback.

The exit handler now surfaces a visible error message when the process dies early with an empty stderr, instead of hanging silently.

🤖 Generated with Claude Code

Some launchers (e.g. wsl.exe reporting a missing WSL distro) write their
error text to stdout instead of stderr and exit non-zero. The close
handler only checked errorOutput (stderr-only), so users got no error
bubble at all and the chat looked permanently stuck after "Claude is
working...". Fall back to captured stdout, and to a generic
"exited with code N" message, so a failure is always surfaced.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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