Skip to content

Default reasoning effort to first advertised level for unspecified families#317622

Merged
bhavyaus merged 4 commits into
mainfrom
dev/bhavyau/fix-reasoning-effort-default
May 21, 2026
Merged

Default reasoning effort to first advertised level for unspecified families#317622
bhavyaus merged 4 commits into
mainfrom
dev/bhavyau/fix-reasoning-effort-default

Conversation

@bhavyaus
Copy link
Copy Markdown
Collaborator

Falls back to the first advertised effort level when the model family doesn't have an explicit default, so the picker shows a real level instead of 'undefined'.

Copilot AI review requested due to automatic review settings May 20, 2026 21:00
@bhavyaus bhavyaus enabled auto-merge (squash) May 20, 2026 21:00
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

Updates the Copilot language model configuration schema so the “Thinking Effort” picker always has a concrete default value when a model family doesn’t define (or doesn’t support) a preferred default, avoiding an undefined default selection.

Changes:

  • Adds a fallback to use the first advertised supportsReasoningEffort level when no family-specific default can be chosen.
Show a summary per file
File Description
extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts Ensures reasoningEffort schema defaults to the first supported effort level when no explicit default applies.

Copilot's findings

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

Comment thread extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts Outdated
Comment thread extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts Outdated
dmitrivMS
dmitrivMS previously approved these changes May 20, 2026
dmitrivMS
dmitrivMS previously approved these changes May 21, 2026
@bhavyaus bhavyaus merged commit a9c35d4 into main May 21, 2026
25 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/fix-reasoning-effort-default branch May 21, 2026 00:28
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 21, 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