feat(web): add Claude Opus 4.7 to model list#651
Open
xPeiPeix wants to merge 1 commit into
Open
Conversation
Opus 4.7 (claude-opus-4-7) was released by Anthropic on 2026-04-16. Add it to the static CLAUDE_MODELS fallback as the first entry so it becomes the default model for Claude backends. Dynamic model lists fetched from the backend remain unaffected.
|
@xPeiPeix is attempting to deploy a commit to the The Vibe Company Team on Vercel. A member of the Team first needs to authorize it. |
croll83
added a commit
to croll83/companion
that referenced
this pull request
Apr 28, 2026
Two fixes for PR The-Vibe-Company#647 that didn't fully land: 1. Code-block copy button was invisible on mobile because it relied on hover state (opacity-70 hover:opacity-100) and also used `text-gray-500 hover:bg-gray-100` which had poor contrast on the code-block background. Switch to theme-aware colors (text-cc-muted, hover:bg-cc-fg/[0.06]) and force opacity-100 on mobile, fading to 0.7 only on >=sm breakpoints. 2. Add a message-level copy button under each completed assistant turn. PR The-Vibe-Company#647's description claimed this was implemented but only the code- block button shipped. The new MessageActions row is always visible on mobile (60% opacity → 100% on hover at desktop) and copies the concatenated text from the message's text blocks. Also unrelated test fixes from PR The-Vibe-Company#651: existing dropdown tests used /Opus/ which now matches both Opus 4.7 and Opus 4.6, and the default-model assertion in HomePage was still claude-opus-4-6 instead of the new -4-7. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Anthropic released Claude Opus 4.7 (
claude-opus-4-7) on 2026-04-16, but the staticCLAUDE_MODELSfallback inweb/src/utils/backends.tsstill tops out at Opus 4.6. This PR adds the new model as the first entry so it becomes the default selection for Claude backends when the dynamic model list is unavailable.Changes
web/src/utils/backends.ts— prepend{ value: "claude-opus-4-7", label: "Opus 4.7", icon: "" }toCLAUDE_MODELS.export const CLAUDE_MODELS: ModelOption[] = [ + { value: "claude-opus-4-7", label: "Opus 4.7", icon: "" }, { value: "claude-opus-4-6", label: "Opus 4.6", icon: "" }, { value: "claude-sonnet-4-6", label: "Sonnet 4.6", icon: "" }, { value: "claude-haiku-4-5-20251001", label: "Haiku 4.5", icon: "" }, ];Notes
toModelOptions()+ dynamicBackendModelInfofetching paths are untouched, so any backend that already reports 4.7 will continue to override the fallback as before.getDefaultModel()transparently picks up the new entry because it returnsCLAUDE_MODELS[0].value.Test plan
bun test(Claude backend tests) still passes with the new entryModelSwitcherrenders "Opus 4.7" as the top option for the Claude backendclaude-opus-4-7when no dynamic list is available