code-cli icon indicating copy to clipboard operation
code-cli copied to clipboard

[Auto] Error: Usage: autohand config set <key> <value>

Open igorcosta opened this issue 5 months ago • 1 comments

Auto-Reported Error

Field Value
Error Type Error
CLI Version 0.8.2
Model N/A
Provider N/A
Platform darwin 24.5.0
Session ID N/A
Report ID 7oGpruiaCLqG7J8yK7USy

Error Message

Usage: autohand config set <key> <value>

Stack Trace

Error: Usage: autohand config set <key> <value>
    at parseConfigSetArgs (~/Documents/autohand/cli-3/src/commands/settings.ts:291:11)
    at Command.<anonymous> (~/Documents/autohand/cli-3/src/index.ts:596:28)
    at async Command.parseAsync (~/Documents/autohand/cli-3/node_modules/commander/lib/command.js:1122:5)

Session Context

  • Conversation length: N/A messages
  • Context usage: N/A
  • Last tools used: N/A
  • Retry attempt: N/A

Additional Context

{
  "source": "process",
  "handler": "unhandledRejection",
  "clientName": "cli",
  "fatal": false,
  "rawType": "object"
}

Auto-reported by Autohand CLI v0.8.2 | Report ID: 7oGpruiaCLqG7J8yK7USy

igorcosta avatar Jun 12 '26 12:06 igorcosta

Fixed in commits fbb14e3 and bd1a11e.

What happened:

  • This report was generated by the failing config set CLI regression reproducer during this issue pass.
  • fbb14e3 fixed invalid config set usage so it exits 1 instead of escaping as an unhandled rejection.
  • bd1a11e added AUTOHAND_DISABLE_AUTO_REPORT=1 support and uses it in CLI subprocess tests so intentional failing reproducers do not open GitHub auto-report issues.

Validation:

  • bun run test tests/configCliCommands.spec.ts
  • bun run test tests/reporting/processErrorReporting.spec.ts
  • bun run lint
  • bun run proof

Tip: use autohand config set <key> <value>, for example autohand config set provider openrouter.

igorcosta avatar Jun 12 '26 12:06 igorcosta

Closing as fixed in current main by commits fbb14e3, 50be430, and bd1a11e, which handle invalid config-set usage and config parse/startup failures without process auto-report spam.

igorcosta avatar Jun 22 '26 21:06 igorcosta