Skip to content

Improve Claude Code provider error message for missing CLI#3363

Merged
alexhancock merged 2 commits intoblock:mainfrom
deadmanoz:improve-claude-code-error-message
Jul 21, 2025
Merged

Improve Claude Code provider error message for missing CLI#3363
alexhancock merged 2 commits intoblock:mainfrom
deadmanoz:improve-claude-code-error-message

Conversation

@deadmanoz
Copy link
Contributor

Problem

The previous error "Failed to spawn command: No such file or directory" was unclear for users when the Claude CLI wasn't installed or in PATH.

Screenshot 2025-07-11 at 5 23 03 PM

Solution

The new error message shows the exact command that failed and provides clear guidance on how to fix the issue, including mentioning the CLAUDE_CODE_COMMAND config option.

@cbruyndoncx
Copy link
Contributor

is this applicable to the gemini cli provider too ?

@cbruyndoncx
Copy link
Contributor

I went ahead and did the same for gemini in this PR
#3384

@GargiGhosh03
Copy link

is this applicable to the gemini cli provider too ?

@alexhancock
Copy link
Collaborator

@deadmanoz Can you complete the DCO check? Thanks!

deadmanoz and others added 2 commits July 18, 2025 07:25
The previous error "Failed to spawn command: No such file or directory"
was unclear for users when the Claude CLI wasn't installed or in PATH.

The new error message shows the exact command that failed and provides
clear guidance on how to fix the issue, including mentioning the
CLAUDE_CODE_COMMAND config option.

Signed-off-by: deadmanoz <hones02_tunica@icloud.com>
Review feedback

Co-authored-by: Alex Hancock <alexhancock@block.xyz>
Signed-off-by: deadmanoz <hones02_tunica@icloud.com>
@deadmanoz deadmanoz force-pushed the improve-claude-code-error-message branch from 19f549e to c1a00f3 Compare July 18, 2025 14:26
@alexhancock alexhancock merged commit 6c951d4 into block:main Jul 21, 2025
10 of 11 checks passed
zanesq added a commit that referenced this pull request Jul 21, 2025
…ters

* 'main' of github.com:block/goose:
  Updating docs to match new UI (#3552)
  Improve Claude Code provider error message for missing CLI (#3363)
@deadmanoz deadmanoz deleted the improve-claude-code-error-message branch July 21, 2025 21:16
lifeizhou-ap added a commit that referenced this pull request Jul 22, 2025
* main: (32 commits)
  fix: use sequential when sub recipe task is 1. (#3573)
  fix: track message id to keep like with like (#3572)
  Replace mcp_core::prompt with rmcp::model types (#3561)
  feat (ui): close recipe modals with esc key (#3568)
  feat: recipes can retry with success criteria (#3474)
  Env var to set Ollama request timeout (#3516)
  Updating docs to match new UI (#3552)
  Improve Claude Code provider error message for missing CLI (#3363)
  feat: Work around Gemini API tool call quirks (#3328)
  feat(ui): Source CashSans-Bold and improve overall text rendering (#3091)
  refactor: Use openapi for recipe endpoint types and in frontend (#3548)
  Fix Google Analytics error for local dev (#3544)
  Extension Library Improvements (#3541)
  fix(ui): enable selection of zero-config providers in desktop GUI (#3378)
  refactor: Renames recipe route to recipes to be consistent (#3540)
  Blog: Orchestrating 6 Subagents to Build a Collaborative API Playground (#3528)
  Catch json errors a little better (#3437)
  Rust debug (#3510)
  refactor: Centralise deeplink encode and decode into server (#3489)
  feat: deprecate jetbrains extension in favor of public one (#2589)
  ...
michaelneale added a commit that referenced this pull request Jul 22, 2025
* main:
  fix: use sequential when sub recipe task is 1. (#3573)
  fix: track message id to keep like with like (#3572)
  Replace mcp_core::prompt with rmcp::model types (#3561)
  feat (ui): close recipe modals with esc key (#3568)
  feat: recipes can retry with success criteria (#3474)
  Env var to set Ollama request timeout (#3516)
  Updating docs to match new UI (#3552)
  Improve Claude Code provider error message for missing CLI (#3363)
  feat: Work around Gemini API tool call quirks (#3328)
  feat(ui): Source CashSans-Bold and improve overall text rendering (#3091)
  refactor: Use openapi for recipe endpoint types and in frontend (#3548)
  Fix Google Analytics error for local dev (#3544)
atarantino pushed a commit to atarantino/goose that referenced this pull request Aug 5, 2025
Signed-off-by: deadmanoz <hones02_tunica@icloud.com>
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
Signed-off-by: Adam Tarantino <tarantino.adam@hey.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.

4 participants