Skip to content

Conversation

@TonyGeez
Copy link
Contributor

@TonyGeez TonyGeez commented Oct 26, 2025

Description

ccr code was unable to properly forward CLI flags (like --settings, --verbose, --model, etc.) to the underlying claude command.

ccr code --settings settings.json

The command would fail with an error:

Error: Settings file not found: [settings.json,{"env":{...}}]

(See #949)

Fixes

  • Removed unnecessary argument parsing and reconstruction
  • Simplified settings detection (only checks if --settings exists in args array to avoid conflicts)
  • Preserved all CLI functionality
  • All claude CLI flags now work through ccr code

Changes

  • Removed minimist and shell-quote parsing logic in src/utils/codeCommand.ts
  • Simplified argument handling to pass args directly to spawn in src/utils/codeCommand.ts
  • Fixed settings flag detection to avoid conflicts
  • $\color{Yellow}{\textsf{*}}$ Changed shell: true to shell: false for more reliable execution and fix Node.js deprecation warning (See #892)

$\color{Yellow}{\textsf{*}}$ No shell features was used, so it won't break nothing.

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