Skip to content

Fix critical CLI execution issue#24

Merged
steipete merged 3 commits intomainfrom
fix/critical-cli-execution
May 17, 2025
Merged

Fix critical CLI execution issue#24
steipete merged 3 commits intomainfrom
fix/critical-cli-execution

Conversation

@steipete
Copy link
Copy Markdown
Owner

Critical Fix

This PR fixes a critical issue where the Claude CLI was failing to execute with:

/opt/homebrew/bin/claude: line 3: //: is a directory
/opt/homebrew/bin/claude: claude: line 9: syntax error

Root Cause

The issue was that we were trying to run a Node.js script through bash, which doesn't work since the script has its own shebang.

Fix

  • Removed the bash wrapper and execute the Claude CLI directly
  • Updated the spawn call to use the CLI path directly instead of going through /bin/bash

Testing

  • Tested locally with the version print feature
  • Confirmed Claude CLI executes correctly
  • All tool calls work as expected

This is a critical fix that should be released immediately.

steipete and others added 3 commits May 17, 2025 04:46
This fixes test failures caused by JSON parsing errors when importing
package.json dynamically. The hardcoded approach is simpler and more
reliable.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@steipete steipete merged commit dcc85c6 into main May 17, 2025
4 checks passed
@steipete steipete deleted the fix/critical-cli-execution branch May 17, 2025 04:05
@steipete steipete mentioned this pull request May 17, 2025
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