Skip to content

fix(cli): reject flags that were accepted and silently ignored - #359

Merged
aroff merged 1 commit into
mainfrom
fix/reject-ignored-cli-flags
Sep 23, 2026
Merged

aroff merged 1 commit into
mainfrom
fix/reject-ignored-cli-flags

Conversation

@aroff

@aroff aroff commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Two CLI flags were accepted and then silently ignored. This follows the rule from d661d88: validate explicit user input.

  • index rebuild --max-concurrent N was parsed and never read, because indexing is sequential. The flag is removed, so passing it is now an unknown argument error. This breaks scripts that pass the flag, which previously did nothing.
  • skill search --embedding only applies to local search, and remote is the default scope. So skill search "q" --embedding true quietly ran a remote search. It now errors unless --local is given, like --paths.
  • Three local-search steps in the QA smoke plan were missing --local and had been silently exercising remote search. They now pass --local.

Test plan

  • The e2e test now asserts that --max-concurrent is rejected.
  • A new unit test covers --embedding without --local.
  • scripts/run-tests.sh passes locally: 1956 passed, 0 failed.

🤖 Generated with Claude Code

Follows the d661d88 rule: validate explicit user input.

- `index rebuild --max-concurrent N` was parsed and never read; the core
  reindex seam is sequential. Remove the flag so passing it is an
  "unknown argument" error instead of a no-op. The e2e test now asserts
  the rejection.
- `skill search --embedding` only applies to local search, and remote is
  the default scope, so `skill search "q" --embedding true` quietly ran a
  remote search. Reject --embedding without --local, like --paths.

The QA smoke plan had three local-search steps missing --local, and they
were silently exercising remote search; add --local.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aroff
aroff enabled auto-merge (squash) September 23, 2026 06:08
@aroff
aroff merged commit 31437f1 into main Sep 23, 2026
14 checks passed
@aroff
aroff deleted the fix/reject-ignored-cli-flags branch September 23, 2026 06:30
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.

2 participants