Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/app/src/hooks/useThreadCreationOptions.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ describe("useThreadCreationOptions", () => {
expect(result.current.modelOptions.map((option) => option.value)).toEqual(
[
"claude-fable-5",
"claude-opus-5[1m]",
"claude-opus-4-8[1m]",
"claude-opus-4-7[1m]",
"claude-sonnet-5",
Expand Down
4 changes: 3 additions & 1 deletion apps/server/test/system/execution-options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ describe("resolveSystemExecutionOptions", () => {
// models stay appended after it.
expect(response.models.map((model) => model.model)).toEqual([
"claude-fable-5",
"claude-opus-5[1m]",
"claude-opus-4-8[1m]",
"claude-opus-4-7[1m]",
"claude-sonnet-5",
Expand Down Expand Up @@ -782,6 +783,7 @@ describe("resolveSystemExecutionOptions", () => {
});
expect(response.models.map((model) => model.model)).toEqual([
"claude-fable-5",
"claude-opus-5[1m]",
"claude-opus-4-8[1m]",
"claude-opus-4-7[1m]",
"claude-sonnet-5",
Expand All @@ -790,7 +792,7 @@ describe("resolveSystemExecutionOptions", () => {
response.models
.filter((model) => model.isDefault)
.map((model) => model.model),
).toEqual(["claude-opus-4-8[1m]"]);
).toEqual(["claude-opus-5[1m]"]);
});
});

Expand Down
10 changes: 9 additions & 1 deletion packages/agent-providers/src/claude-code-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const CLAUDE_XHIGH_CAPABLE_REASONING_EFFORTS: readonly ModelReasoningEffo
MAX_REASONING_EFFORT,
];

export const DEFAULT_CLAUDE_CODE_MODEL = "claude-opus-4-8[1m]";
export const DEFAULT_CLAUDE_CODE_MODEL = "claude-opus-5[1m]";

/**
* BB's curated, version-pinned Claude Code models. Lives here rather than in the
Expand Down Expand Up @@ -59,6 +59,14 @@ export const CLAUDE_CODE_ACTIVE_CATALOG: readonly ClaudeCodeCatalogEntry[] = [
{
id: DEFAULT_CLAUDE_CODE_MODEL,
model: DEFAULT_CLAUDE_CODE_MODEL,
displayName: "Opus 5 (1M)",
description: "Opus 5 with 1M context for complex long coding sessions",
supportedReasoningEfforts: CLAUDE_XHIGH_CAPABLE_REASONING_EFFORTS,
defaultReasoningEffort: "high",
},
{
id: "claude-opus-4-8[1m]",
model: "claude-opus-4-8[1m]",
displayName: "Opus 4.8 (1M)",
description: "Opus 4.8 with 1M context for complex long coding sessions",
supportedReasoningEfforts: CLAUDE_XHIGH_CAPABLE_REASONING_EFFORTS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1698,15 +1698,15 @@ describe("bridge", () => {
models: [
{
value: "default",
resolvedModel: "claude-opus-4-8[1m]",
resolvedModel: "claude-opus-5[1m]",
displayName: "Default (recommended)",
description: "Opus 4.8 with 1M context",
description: "Opus 5 with 1M context",
},
{
value: "opus[1m]",
resolvedModel: "claude-opus-4-8[1m]",
resolvedModel: "claude-opus-5[1m]",
displayName: "Opus",
description: "Opus 4.8 with 1M context",
description: "Opus 5 with 1M context",
},
{
value: "sonnet",
Expand All @@ -1726,14 +1726,15 @@ describe("bridge", () => {
// Sonnet still yields every curated row; the probe's default wins.
expect(models.map((model) => model.model)).toEqual([
"claude-fable-5",
"claude-opus-5[1m]",
"claude-opus-4-8[1m]",
"claude-opus-4-7[1m]",
"claude-sonnet-5",
]);
expect(models.filter((model) => model.isDefault)).toEqual([
expect.objectContaining({
model: "claude-opus-4-8[1m]",
displayName: "Opus 4.8 (1M)",
model: "claude-opus-5[1m]",
displayName: "Opus 5 (1M)",
}),
]);
expect(selectedOnlyModels.map((model) => model.model)).toEqual([
Expand Down
13 changes: 7 additions & 6 deletions packages/agent-runtime/src/claude-code/model-list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { buildClaudeCodeModels } from "./model-list.js";
const DISCOVERED_MODELS: ModelInfo[] = [
{
value: "default",
resolvedModel: "claude-opus-4-8[1m]",
resolvedModel: "claude-opus-5[1m]",
displayName: "Default (recommended)",
description: "Opus 4.8 with 1M context",
description: "Opus 5 with 1M context",
},
{
value: "opus[1m]",
resolvedModel: "claude-opus-4-8[1m]",
resolvedModel: "claude-opus-5[1m]",
displayName: "Opus",
description: "Opus 4.8 with 1M context",
description: "Opus 5 with 1M context",
},
{
value: "claude-fable-5[1m]",
Expand All @@ -37,6 +37,7 @@ const DISCOVERED_MODELS: ModelInfo[] = [

const CURATED_MODELS = [
"claude-fable-5",
"claude-opus-5[1m]",
"claude-opus-4-8[1m]",
"claude-opus-4-7[1m]",
"claude-sonnet-5",
Expand All @@ -53,7 +54,7 @@ describe("buildClaudeCodeModels", () => {
"claude-haiku-4-5-20251001",
]);
expect(result.models.find((model) => model.isDefault)?.model).toBe(
"claude-opus-4-8[1m]",
"claude-opus-5[1m]",
);
// Selected-only rows stay discovery-gated — they only label a selection the
// user already has.
Expand All @@ -76,7 +77,7 @@ describe("buildClaudeCodeModels", () => {

expect(result.models.map((model) => model.model)).toEqual(CURATED_MODELS);
expect(result.models.find((model) => model.isDefault)?.model).toBe(
"claude-opus-4-8[1m]",
"claude-opus-5[1m]",
);
expect(result.selectedOnlyModels).toEqual([]);
});
Expand Down
9 changes: 5 additions & 4 deletions packages/agent-runtime/src/claude-code/model-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ const CLAUDE_CODE_SELECTED_ONLY_CATALOG: readonly ClaudeCodeCatalogEntry[] = [
{
id: "opus[1m]",
model: "opus[1m]",
displayName: "Opus Alias (1M, Legacy)",
description: "Legacy moving Opus 1M alias retained for existing selections",
supportedReasoningEfforts: OPUS_4_6_REASONING_EFFORTS,
defaultReasoningEffort: "medium",
displayName: "Opus Alias (1M, Current)",
description:
"Moving Opus 1M alias accepted by Claude Code; resolves to the current Opus 1M model",
supportedReasoningEfforts: CLAUDE_XHIGH_CAPABLE_REASONING_EFFORTS,
defaultReasoningEffort: "high",
},
{
id: "opus",
Expand Down
Loading