Skip to content

Add support for parsing bare model names in parseClaudeModelId#308777

Merged
TylerLeonhardt merged 1 commit intomainfrom
tyler/grand-mongoose
Apr 9, 2026
Merged

Add support for parsing bare model names in parseClaudeModelId#308777
TylerLeonhardt merged 1 commit intomainfrom
tyler/grand-mongoose

Conversation

@TylerLeonhardt
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 9, 2026 13:29
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) April 9, 2026 13:29
@TylerLeonhardt TylerLeonhardt self-assigned this Apr 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Extends the Claude model ID parser used by the Copilot Claude chat sessions to also accept “bare” (non-versioned) model names, and updates unit tests to cover the new parsing behavior.

Changes:

  • Add a new parsing pattern to accept bare model names (no claude- prefix/version) in tryParseClaudeModelId / parseClaudeModelId.
  • Introduce makeBareResult so bare inputs round-trip via toSdkModelId() / toEndpointModelId() as identity.
  • Update claudeModelId unit tests to validate parsing and formatting of bare names.
Show a summary per file
File Description
extensions/copilot/src/extension/chatSessions/claude/node/claudeModelId.ts Adds a “bare name” parsing branch and a helper to produce a ParsedClaudeModelId for bare inputs.
extensions/copilot/src/extension/chatSessions/claude/node/test/claudeModelId.spec.ts Adds coverage for bare-name parsing and adjusts “unparseable” cases accordingly.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

@TylerLeonhardt TylerLeonhardt merged commit e0347a2 into main Apr 9, 2026
27 checks passed
@TylerLeonhardt TylerLeonhardt deleted the tyler/grand-mongoose branch April 9, 2026 13:54
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 9, 2026
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.

3 participants