Skip to content

chore: update claude model selector#2742

Open
janburzinski wants to merge 4 commits into
mainfrom
emdash/update-claude-model-selector-l4yh3
Open

chore: update claude model selector#2742
janburzinski wants to merge 4 commits into
mainfrom
emdash/update-claude-model-selector-l4yh3

Conversation

@janburzinski

Copy link
Copy Markdown
Collaborator

Description

  • update claude model options: opus 4.8,sonnet 5, fable 5

Screenshot/Recording (if applicable)

https://cap.link/rc2ntesdzbhaa0f

Checklist
  • I kept this PR small and focused
  • I ran a self-review before opening this PR
  • I ran the relevant local checks or explained why not
  • I updated docs when behavior or setup changed
  • I added or updated tests when behavior changed, or explained why not
  • I only added comments where the logic is not obvious
  • I used Conventional Commits for commit
    messages and, when possible, the PR title

@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates the Claude model selector to add three newer models (claude-fable-5, claude-opus-4-8, claude-sonnet-5) and removes the superseded claude-opus-4-5 and claude-sonnet-4-5 entries. The change is applied consistently across the plugin registry, conversation-config JSDoc, tests, and all Storybook stories.

  • packages/plugins/src/agents/impl/claude/index.ts gains claude-fable-5 as a new balanced-tier entry alongside updated Opus and Sonnet IDs; claude-haiku-4-5 is intentionally left in place.
  • All Storybook mock datasets and default useState seeds are updated to the new model keys, keeping the UI stories in sync with the real plugin registry.
  • Test fixtures in conversation-config.test.ts are updated to use the new model strings; a stale anthropic/claude-sonnet-4-5 reference remains in pty-env.test.ts for the unrelated opencode agent and was not changed.

Confidence Score: 5/5

Safe to merge — all changes are model ID string updates with no logic modifications.

The diff is a mechanical rename of model identifiers across the plugin registry, test fixtures, and Storybook stories. All three new model IDs (claude-fable-5, claude-opus-4-8, claude-sonnet-5) are confirmed valid Anthropic API identifiers. The only loose end is a stale anthropic/claude-sonnet-4-5 string in pty-env.test.ts that belongs to a different agent and was not touched by this PR.

No files require special attention. The single comment on pty-env.test.ts is a non-blocking housekeeping note about an unrelated agent's test fixture.

Important Files Changed

Filename Overview
packages/plugins/src/agents/impl/claude/index.ts Adds claude-fable-5 and replaces claude-opus-4-5/claude-sonnet-4-5 with claude-opus-4-8/claude-sonnet-5; claude-haiku-4-5 remains unchanged.
apps/emdash-desktop/src/shared/core/conversations/conversation-config.ts Updates JSDoc example model name from claude-sonnet-4-5 to claude-sonnet-5; no logic changes.
apps/emdash-desktop/src/shared/core/conversations/conversation-config.test.ts Updates test fixtures to use new model IDs (claude-sonnet-5, claude-opus-4-8); all test cases updated consistently.
packages/ui/src/react/components/chat-composer/chat-composer.stories.tsx Updates Storybook mock model data; adds claude-fable-5 entry and renames existing models to new IDs.
packages/ui/src/react/components/combobox-popover/combobox-popover.stories.tsx Updates Storybook MODELS array and default state values to use new model IDs including the new claude-fable-5 entry.
packages/ui/src/react/examples/chat-panel.stories.tsx Updates MOCK_MODELS and default selected model to match new model IDs; mirrors changes in chat-composer stories.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Claude Plugin Model Registry] --> B[claude-fable-5\nIntelligence: 4, Speed: 3\n🆕 Added]
    A --> C[claude-opus-4-8\nIntelligence: 5, Speed: 2\n🔄 was claude-opus-4-5]
    A --> D[claude-sonnet-5\nIntelligence: 4, Speed: 4\n🔄 was claude-sonnet-4-5]
    A --> E[claude-haiku-4-5\nIntelligence: 3, Speed: 5\n✅ Unchanged]

    F[conversation-config.ts] -- JSDoc example updated --> D
    G[conversation-config.test.ts] -- Test fixtures updated --> C
    G -- Test fixtures updated --> D
    H[UI Stories] -- Mock data updated --> B
    H -- Mock data updated --> C
    H -- Mock data updated --> D
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[Claude Plugin Model Registry] --> B[claude-fable-5\nIntelligence: 4, Speed: 3\n🆕 Added]
    A --> C[claude-opus-4-8\nIntelligence: 5, Speed: 2\n🔄 was claude-opus-4-5]
    A --> D[claude-sonnet-5\nIntelligence: 4, Speed: 4\n🔄 was claude-sonnet-4-5]
    A --> E[claude-haiku-4-5\nIntelligence: 3, Speed: 5\n✅ Unchanged]

    F[conversation-config.ts] -- JSDoc example updated --> D
    G[conversation-config.test.ts] -- Test fixtures updated --> C
    G -- Test fixtures updated --> D
    H[UI Stories] -- Mock data updated --> B
    H -- Mock data updated --> C
    H -- Mock data updated --> D
Loading

Reviews (1): Last reviewed commit: "chore(ui): revert story model updates" | Re-trigger Greptile

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.

1 participant