Resolve Claude detection model aliases before CLI launch by Copilot · Pull Request #70861 · github/gh-aw · GitHub
Skip to content

Resolve Claude detection model aliases before CLI launch - #70861

Draft
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-claude-detection-issue
Draft

pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-claude-detection-issue

Conversation

Copilot AI commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude’s harness resolved ANTHROPIC_MODEL but forwarded literal --model detection, overriding the resolved value and causing CLI rejection. Detection’s default continue-on-error: true could leave the run green without a verdict.

  • Model resolution: Resolve the effective CLI model through the shared live-catalog resolver, then synchronize argv and environment. Unresolvable aliases prevent Claude from starting.
  • Compatibility: Preserve explicit CLI precedence, AWF routing, -- argument boundaries, and existing detection failure policy.
  • Regression coverage: Cover both model flag forms, environment-only selection, concrete overrides, and unresolved aliases.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with claude CLI rejecting detection model Resolve Claude detection model aliases before CLI launch Oct 21, 2026
Copilot AI requested a review from pelikhan October 21, 2026 12:03

This branch has not been deployed

No deployments
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.

engine: claude: threat detection runs --model detection, the CLI rejects it, and the run still passes (v0.92.0)

2 participants