Skip to content

Studio Code: Add Opus 4.8, remove Opus 4.6#3641

Open
youknowriad wants to merge 1 commit into
trunkfrom
claude/confident-ptolemy-553159
Open

Studio Code: Add Opus 4.8, remove Opus 4.6#3641
youknowriad wants to merge 1 commit into
trunkfrom
claude/confident-ptolemy-553159

Conversation

@youknowriad
Copy link
Copy Markdown
Contributor

Related issues

  • Related to #

How AI was used in this PR

Implemented with Claude. AI updated the agent model registry and the session model-resolution logic, then verified there were no other references to the removed model id across the codebase. Reviewers should pay particular attention to the resume/auto-switch behavior in resolveSessionModel and the CLI resume path.

Proposed Changes

  • Adds Opus 4.8 to the Studio Code agent's selectable models and removes Opus 4.6, keeping the model picker aligned with the models we actually support.
  • Sessions that were last using a model we no longer offer (e.g. Opus 4.6) now auto-switch to the default model when resumed, instead of pinning a model that's gone. The most recently recorded model wins, and an unknown/removed model falls back to the default. Because the fallback points at the default model rather than a hardcoded id, changing the default later automatically updates where these sessions land.
  • Both the desktop UI and the CLI resume path share the same resolution logic, so behavior is consistent across surfaces.

Testing Instructions

  • Open a chat in Studio Code and confirm the model picker lists Sonnet 4.6, Opus 4.7, Opus 4.8, and GPT 5.5, with no Opus 4.6 entry.
  • Resume an existing session that was last on Opus 4.6 and confirm it comes back on the default model (Sonnet 4.6) rather than erroring or showing a missing model.
  • Resume a session on a still-supported model (e.g. Opus 4.7) and confirm it resumes on that same model.
  • Start a brand-new session and confirm it uses the default model.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

Resumed sessions pinned to a removed model now fall back to the default
model so they never resume on a model we no longer offer.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@youknowriad
Copy link
Copy Markdown
Contributor Author

I'm not sure if Opus produces better results than Sonnet. I prefer Sonnet but still this adds the latest Opus at least.

@youknowriad youknowriad requested review from epeicher and lezama May 29, 2026 11:57
@wpmobilebot
Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing fd97618 vs trunk

app-size

Metric trunk fd97618 Diff Change
App Size (Mac) 1335.91 MB 1335.91 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk fd97618 Diff Change
load 1738 ms 1744 ms +6 ms ⚪ 0.0%

site-startup

Metric trunk fd97618 Diff Change
siteCreation 9076 ms 9075 ms 1 ms ⚪ 0.0%
siteStartup 4411 ms 4875 ms +464 ms 🔴 10.5%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

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