Surface an error when the Claude process fails without stderr output#198
Open
leonidasbarkas98-cpu wants to merge 1 commit into
Open
Surface an error when the Claude process fails without stderr output#198leonidasbarkas98-cpu wants to merge 1 commit into
leonidasbarkas98-cpu wants to merge 1 commit into
Conversation
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>
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.
If the spawned
claudeprocess exits immediately without writing to stderr (e.g. a misconfigured WSL setup wherewsl.exereports 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