Skip to content

fix: use sonnet-level model as copilot default, not opus - #48605

Merged
pelikhan merged 2 commits into
mainfrom
copilot/change-default-model-to-sonnet
Jul 28, 2026
Merged

fix: use sonnet-level model as copilot default, not opus#48605
pelikhan merged 2 commits into
mainfrom
copilot/change-default-model-to-sonnet

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Opus was referenced as the default/example model for Copilot in several places. The runtime default (CopilotBYOKDefaultModel) was already claude-sonnet-5; this aligns the docs, code comment, and test workflow to match.

Changes

  • pkg/workflow/assign_to_agent.go — update example in DefaultModel field comment: claude-opus-4.6claude-sonnet-5
  • docs/src/content/docs/reference/safe-outputs.md — update assign-to-agent YAML example: claude-opus-4.6claude-sonnet-5
  • pkg/cli/workflows/test-assign-to-agent-with-model.md — update workflow default model (frontmatter + workflow_dispatch input default): claude-opus-4.6claude-sonnet-5

…e-sonnet-5)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title fix: change copilot default model examples from opus to sonnet fix: use sonnet-level model as copilot default, not opus Jul 28, 2026
Copilot AI requested a review from pelikhan July 28, 2026 12:12
@pelikhan
pelikhan marked this pull request as ready for review July 28, 2026 12:12
Copilot AI review requested due to automatic review settings July 28, 2026 12:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns Copilot model examples with the existing claude-sonnet-5 runtime fallback.

Changes:

  • Updates Go and documentation examples.
  • Updates the assign-to-agent test workflow defaults and instructions.
Show a summary per file
File Description
pkg/workflow/assign_to_agent.go Updates the model example comment.
pkg/cli/workflows/test-assign-to-agent-with-model.md Uses Sonnet 5 in the test workflow.
docs/src/content/docs/reference/safe-outputs.md Updates the assign-to-agent example.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Medium

assign-to-agent:
name: "copilot" # default agent (default: "copilot")
model: "claude-opus-4.6" # default AI model (default: "auto")
model: "claude-sonnet-5" # default AI model (default: "auto")
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

PR Code Quality Reviewer completed the code quality review.

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR does not have the 'implementation' label and has ≤100 new lines of code in business logic directories (4 additions detected, threshold is 100).

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. Test Quality Sentinel skipped.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

APPROVE — cosmetic-only doc/comment update

All three hunks simply replace the example model string claude-opus-4.6 with claude-sonnet-5 to match the actual runtime default (CopilotBYOKDefaultModel). No logic, config parsing, or test assertions changed.

Review notes
  • assign_to_agent.go: comment-only change, no behavior impact.
  • safe-outputs.md: doc example updated to match default.
  • test-assign-to-agent-with-model.md: test workflow default and prose updated consistently.
  • A prior reviewer comment already flags a related leftover claude-opus-4.6 reference in copilot-cloud-agent.mdx, which is outside this diff's changed files -- not duplicating it here.

No correctness, security, performance, or maintainability concerns found in the changed lines.

🔎 Code quality review by PR Code Quality Reviewer · sonnet50 · 10.6 AIC · ⌖ 4.28 AIC · ⊞ 7.4K
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes are correct and well-scoped. All three claude-opus-4.6 references updated to claude-sonnet-5, aligning docs, code comment, and test workflow with the runtime default.

Note: docs/src/content/docs/reference/copilot-cloud-agent.mdx:53 still has claude-opus-4.6 (already flagged in an existing review comment).

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · sonnet46 · 16.1 AIC · ⌖ 5.18 AIC · ⊞ 5K

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /diagnosing-bugs — the fix correctly aligns docs/comments/test workflow to the runtime default (CopilotBYOKDefaultModel = claude-sonnet-5).

📋 Key Themes & Highlights

One gap to close

  • Incomplete sweep: docs/src/content/docs/reference/copilot-cloud-agent.mdx:53 still references claude-opus-4.6 — already flagged in an existing review comment and should be updated in this PR for a complete fix.

Positive Highlights

  • ✅ PR description clearly explains intent and each changed file
  • ✅ All three changed callsites are consistent with each other
  • ✅ Small, surgical diff — easy to verify correctness

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · sonnet46 · 16.3 AIC · ⌖ 4.59 AIC · ⊞ 6.7K
Comment /matt to run again

@pelikhan
pelikhan merged commit 15a07df into main Jul 28, 2026
19 checks passed
@pelikhan
pelikhan deleted the copilot/change-default-model-to-sonnet branch July 28, 2026 12:29
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.5

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