Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(ai): move the smartest capability rung to claude fable 5.1 (#94057)

Peter Kirkhame8e292fc8b23
diff --git a/products/desktop/apps/code/src/main/services/secure-store/service.test.ts b/products/desktop/apps/code/src/main/services/secure-store/service.test.ts
index dd3593ceda3f..b9cc3d29df62 100644
--- a/products/desktop/apps/code/src/main/services/secure-store/service.test.ts
+++ b/products/desktop/apps/code/src/main/services/secure-store/service.test.ts
@@ -1,3 +1,4 @@
+import crypto from "node:crypto";
import {
mkdtempSync,
readdirSync,
@@ -10,7 +11,15 @@ import {
import { tmpdir } from "node:os";
import { join } from "node:path";
import { secureStoreRouter } from "@posthog/host-router/routers/secure-store.router";
-import { afterEach, describe, expect, it, vi } from "vitest";
+import {
+ afterAll,
+ afterEach,
+ beforeAll,
+ describe,
+ expect,
+ it,
+ vi,
+} from "vitest";
import { ElectronClaudeSubscriptionTokenStore } from "../../platform-adapters/electron-claude-subscription-token-store";
import { type SecureStoreBackend, SecureStoreService } from "./service";
@@ -23,6 +32,14 @@ const safeStorage = vi.hoisted(() => ({
vi.mock("electron", () => ({ safeStorage }));
+beforeAll(() => {
+ vi.spyOn(crypto, "scryptSync").mockReturnValue(Buffer.alloc(32));
+});
+
+afterAll(() => {
+ vi.restoreAllMocks();
+});
+
function makeFakeBackend(initial: Record<string, string> = {}) {
const data = new Map<string, string>(Object.entries(initial));
const backend: SecureStoreBackend = {
diff --git a/products/desktop/apps/mobile/src/features/tasks/composer/AgentConfigControls.test.tsx b/products/desktop/apps/mobile/src/features/tasks/composer/AgentConfigControls.test.tsx
index 51fe5a130935..948d75b39143 100644
--- a/products/desktop/apps/mobile/src/features/tasks/composer/AgentConfigControls.test.tsx
+++ b/products/desktop/apps/mobile/src/features/tasks/composer/AgentConfigControls.test.tsx
@@ -59,7 +59,7 @@ const ladderModelOption: CloudTaskConfigOption = {
options: [
{ value: "claude-sonnet-5", name: "Claude Sonnet 5" },
{ value: "claude-opus-5", name: "Claude Opus 5" },
- { value: "claude-fable-5", name: "Claude Fable 5" },
+ { value: "claude-fable-5-1", name: "Claude Fable 5.1" },
],
category: "model",
description: "Choose a model",
@@ -83,8 +83,8 @@ const modelGroups: CloudTaskConfigSelectGroup[] = [
_meta: { [HARNESS_META]: "claude" },
},
{
- value: "claude-fable-5",
- name: "Claude Fable 5",
+ value: "claude-fable-5-1",
+ name: "Claude Fable 5.1",
_meta: { [HARNESS_META]: "claude" },
},
],
diff --git a/products/desktop/apps/mobile/src/features/tasks/composer/options.test.ts b/products/desktop/apps/mobile/src/features/tasks/composer/options.test.ts
index c956c918bb1b..0dcdc9bf2076 100644
--- a/products/desktop/apps/mobile/src/features/tasks/composer/options.test.ts
+++ b/products/desktop/apps/mobile/src/features/tasks/composer/options.test.ts
@@ -45,8 +45,8 @@ describe("mobile composer options", () => {
{ value: "claude-sonnet-5", name: "Claude Sonnet 5" },
{ value: "claude-opus-5", name: "Claude Opus 5" },
{
- value: "claude-fable-5",
- name: "Claude Fable 5",
+ value: "claude-fable-5-1",
+ name: "Claude Fable 5.1",
_meta: restrictedModelMeta(),
},
],
diff --git a/products/desktop/packages/agent/src/adapters/reasoning-effort.ts b/products/desktop/packages/agent/src/adapters/reasoning-effort.ts
index c7fedfb03966..eff30da6e9b5 100644
--- a/products/desktop/packages/agent/src/adapters/reasoning-effort.ts
+++ b/products/desktop/packages/agent/src/adapters/reasoning-effort.ts
@@ -70,7 +70,7 @@ const CLAUDE_CAPABILITY_LADDER: CapabilityNotch[] = [
{ model: "claude-sonnet-5", effort: "high" },
{ model: "claude-opus-5", effort: "medium" },
{ model: "claude-opus-5", effort: "xhigh" },
- { model: "claude-fable-5", effort: "max" },
+ { model: "claude-fable-5-1", effort: "max" },
];
const CODEX_CAPABILITY_LADDER: CapabilityNotch[] = [
diff --git a/products/desktop/packages/core/src/billing/costChecklist.test.ts b/products/desktop/packages/core/src/billing/costChecklist.test.ts
index 8d34e4290fca..2a520d2ac73f 100644
--- a/products/desktop/packages/core/src/billing/costChecklist.test.ts
+++ b/products/desktop/packages/core/src/billing/costChecklist.test.ts
@@ -123,8 +123,8 @@ describe("modelNotchSuggestion", () => {
{ fromModelId: "claude-opus-5", toModelId: "claude-sonnet-5" },
],
[
- "claude-fable-5",
- { fromModelId: "claude-fable-5", toModelId: "claude-opus-5" },
+ "claude-fable-5-1",
+ { fromModelId: "claude-fable-5-1", toModelId: "claude-opus-5" },
],
// Already at the cheapest priced rung on its ladder.
["claude-sonnet-5", null],
diff --git a/products/desktop/packages/shared/src/reasoning-effort.ts b/products/desktop/packages/shared/src/reasoning-effort.ts
index 2d50a8c866c1..b0e534a8fe27 100644
--- a/products/desktop/packages/shared/src/reasoning-effort.ts
+++ b/products/desktop/packages/shared/src/reasoning-effort.ts
@@ -47,7 +47,7 @@ const CLAUDE_CAPABILITY_LADDER: readonly CapabilityNotch[] = [
{ model: "claude-sonnet-5", effort: "high" },
{ model: "claude-opus-5", effort: "medium" },
{ model: "claude-opus-5", effort: "xhigh" },
- { model: "claude-fable-5", effort: "max" },
+ { model: "claude-fable-5-1", effort: "max" },
];
const CODEX_CAPABILITY_LADDER: readonly CapabilityNotch[] = [
diff --git a/products/desktop/packages/ui/src/features/pi-sessions/PiSessionControls.stories.tsx b/products/desktop/packages/ui/src/features/pi-sessions/PiSessionControls.stories.tsx
index fdb32ccd2d0c..b431d150f489 100644
--- a/products/desktop/packages/ui/src/features/pi-sessions/PiSessionControls.stories.tsx
+++ b/products/desktop/packages/ui/src/features/pi-sessions/PiSessionControls.stories.tsx
@@ -26,7 +26,7 @@ function groupedModelOption(currentValue: string): SessionConfigOption {
group: "anthropic",
name: "Anthropic",
options: [
- option("claude", "claude-fable-5", "Claude Fable 5"),
+ option("claude", "claude-fable-5-1", "Claude Fable 5.1"),
option("claude", "claude-opus-5", "Claude Opus 5"),
option("claude", "claude-sonnet-5", "Claude Sonnet 5"),
],
diff --git a/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.stories.tsx b/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.stories.tsx
index 42807b5679be..203c8adb557c 100644
--- a/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.stories.tsx
+++ b/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.stories.tsx
@@ -23,7 +23,7 @@ const harnessOption = (
});
const ANTHROPIC_MODELS = [
- harnessOption("claude", "claude-fable-5", "Claude Fable 5"),
+ harnessOption("claude", "claude-fable-5-1", "Claude Fable 5.1"),
harnessOption("claude", "claude-opus-5", "Claude Opus 5"),
harnessOption("claude", "claude-opus-4-8", "Claude Opus 4.8"),
harnessOption("claude", "claude-sonnet-5", "Claude Sonnet 5"),
diff --git a/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.test.tsx b/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.test.tsx
index 67d5175e7a0e..59b8d5994920 100644
--- a/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.test.tsx
+++ b/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelSelector.test.tsx
@@ -138,7 +138,7 @@ function claudeModelOption(
options: [
{ name: "Claude Sonnet 5", value: "claude-sonnet-5" },
{ name: "Claude Opus 5", value: "claude-opus-5" },
- { name: "Claude Fable 5", value: "claude-fable-5" },
+ { name: "Claude Fable 5.1", value: "claude-fable-5-1" },
],
} as unknown as SessionConfigOption;
}
@@ -671,7 +671,7 @@ describe("ReasoningLevelSelector", () => {
() =>
onChange.mock.calls.length > 0 && onModelChange.mock.calls.length > 0,
);
- expect(onModelChange).toHaveBeenCalledWith("claude-fable-5");
+ expect(onModelChange).toHaveBeenCalledWith("claude-fable-5-1");
expect(onChange).toHaveBeenCalledWith("max");
});
@@ -683,7 +683,7 @@ describe("ReasoningLevelSelector", () => {
<Theme>
<ReasoningLevelSelector
thoughtOption={thoughtOption({ currentValue: "max" })}
- modelOption={claudeModelOption("claude-fable-5")}
+ modelOption={claudeModelOption("claude-fable-5-1")}
adapter="claude"
onChange={onChange}
onModelChange={onModelChange}
@@ -711,7 +711,7 @@ describe("ReasoningLevelSelector", () => {
<Theme>
<ReasoningLevelSelector
thoughtOption={thoughtOption({ currentValue: "max" })}
- modelOption={claudeModelOption("claude-fable-5")}
+ modelOption={claudeModelOption("claude-fable-5-1")}
adapter="claude"
onChange={onChange}
onModelChange={onModelChange}
@@ -746,7 +746,7 @@ describe("ReasoningLevelSelector", () => {
<Theme>
<ReasoningLevelSelector
thoughtOption={thoughtOption({ currentValue: "max" })}
- modelOption={claudeModelOption("claude-fable-5")}
+ modelOption={claudeModelOption("claude-fable-5-1")}
adapter="claude"
onChange={onChange}
onModelChange={onModelChange}
@@ -808,7 +808,7 @@ describe("ReasoningLevelSelector", () => {
<Theme>
<ReasoningLevelSelector
thoughtOption={thoughtOption({ currentValue: "max" })}
- modelOption={claudeModelOption("claude-fable-5")}
+ modelOption={claudeModelOption("claude-fable-5-1")}
adapter="claude"
fastModeOption={fast}
resetToDefaultDisabled
diff --git a/products/posthog_ai/frontend/utils/composerModels.ts b/products/posthog_ai/frontend/utils/composerModels.ts
index cedefd81e3fd..b6f6c3aed621 100644
--- a/products/posthog_ai/frontend/utils/composerModels.ts
+++ b/products/posthog_ai/frontend/utils/composerModels.ts
@@ -93,7 +93,7 @@ const CAPABILITY_LADDERS: Record<RuntimeAdapterEnumApi, CapabilityNotch[]> = {
{ model: 'claude-sonnet-5', effort: ReasoningEffortEnumApi.High },
{ model: 'claude-opus-5', effort: ReasoningEffortEnumApi.Medium },
{ model: 'claude-opus-5', effort: ReasoningEffortEnumApi.Xhigh },
- { model: 'claude-fable-5', effort: ReasoningEffortEnumApi.Max },
+ { model: 'claude-fable-5-1', effort: ReasoningEffortEnumApi.Max },
],
[RuntimeAdapterEnumApi.Codex]: [
{ model: 'gpt-5.6-terra', effort: ReasoningEffortEnumApi.Low },