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(desktop): offer claude sonnet 5.5 (#108407)

Brandon32af212a103f
diff --git a/products/desktop/packages/harness/src/extensions/posthog-provider/models.test.ts b/products/desktop/packages/harness/src/extensions/posthog-provider/models.test.ts
index f95b14436330..542820f57042 100644
--- a/products/desktop/packages/harness/src/extensions/posthog-provider/models.test.ts
+++ b/products/desktop/packages/harness/src/extensions/posthog-provider/models.test.ts
@@ -247,6 +247,19 @@ describe("fallbackModelConfigs", () => {
);
});
+ it.each(["claude-opus-5-5", "claude-sonnet-5-5"])(
+ "never offers disabled thinking for %s",
+ (id) => {
+ const config = fallbackModelConfigs("us").find((m) => m.id === id);
+ expect(config?.contextWindow).toBe(1000000);
+ expect(config?.thinkingLevelMap).toEqual({
+ off: null,
+ xhigh: "xhigh",
+ max: "max",
+ });
+ },
+ );
+
it("produces a non-empty, region-scoped model list", () => {
const configs = fallbackModelConfigs("us");
expect(configs.length).toBeGreaterThan(0);
diff --git a/products/desktop/packages/harness/src/extensions/posthog-provider/models.ts b/products/desktop/packages/harness/src/extensions/posthog-provider/models.ts
index 9e0799972202..034f4a3b1ec8 100644
--- a/products/desktop/packages/harness/src/extensions/posthog-provider/models.ts
+++ b/products/desktop/packages/harness/src/extensions/posthog-provider/models.ts
@@ -31,6 +31,7 @@ const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
const THINKING_LEVEL_MAP_OVERRIDES: Record<string, ThinkingLevelMap> = {
"claude-fable-5-1": { off: null, xhigh: "xhigh", max: "max" },
"claude-opus-5-5": { off: null, xhigh: "xhigh", max: "max" },
+ "claude-sonnet-5-5": { off: null, xhigh: "xhigh", max: "max" },
"gpt-6.1-sol": {
off: null,
minimal: null,
@@ -170,6 +171,12 @@ const FALLBACK_GATEWAY_MODELS: GatewayModel[] = [
context_window: 1000000,
supports_vision: true,
},
+ {
+ id: "claude-sonnet-5-5",
+ owned_by: "anthropic",
+ context_window: 1000000,
+ supports_vision: true,
+ },
{
id: "claude-sonnet-5",
owned_by: "anthropic",
diff --git a/products/desktop/packages/ui/src/features/loops/loopModels.test.ts b/products/desktop/packages/ui/src/features/loops/loopModels.test.ts
index 503d743557eb..2a8179f95d67 100644
--- a/products/desktop/packages/ui/src/features/loops/loopModels.test.ts
+++ b/products/desktop/packages/ui/src/features/loops/loopModels.test.ts
@@ -135,6 +135,7 @@ describe("loopModelOptions", () => {
"claude-opus-5",
"claude-opus-5-5",
"claude-sonnet-5",
+ "claude-sonnet-5-5",
"claude-fable-5",
"claude-fable-5-1",
"zai-org/glm-5.3",
diff --git a/products/desktop/packages/ui/src/features/loops/loopModels.ts b/products/desktop/packages/ui/src/features/loops/loopModels.ts
index ad664eb91739..e1d08e994b26 100644
--- a/products/desktop/packages/ui/src/features/loops/loopModels.ts
+++ b/products/desktop/packages/ui/src/features/loops/loopModels.ts
@@ -63,6 +63,7 @@ const FALLBACK_MODEL_IDS: Record<
"claude-opus-5",
"claude-opus-5-5",
"claude-sonnet-5",
+ "claude-sonnet-5-5",
"claude-fable-5",
"claude-fable-5-1",
"zai-org/glm-5.3",
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 395241fbeb71..7411719a10d1 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
@@ -28,6 +28,7 @@ function groupedModelOption(currentValue: string): SessionConfigOption {
options: [
option("claude", "claude-fable-5-1", "Claude Fable 5.1"),
option("claude", "claude-opus-5-5", "Claude Opus 5.5"),
+ option("claude", "claude-sonnet-5-5", "Claude Sonnet 5.5"),
option("claude", "claude-sonnet-5", "Claude Sonnet 5"),
],
},
@@ -50,15 +51,18 @@ function groupedModelOption(currentValue: string): SessionConfigOption {
} as unknown as SessionConfigOption;
}
+// One entry per selector option, so every selection resolves to a current model.
const piModels = [
- {
- provider: "posthog" as const,
- id: "claude-opus-5-5",
- name: "Claude Opus 5.5",
- },
- { provider: "posthog" as const, id: "gpt-5.6-terra", name: "GPT-5.6 Terra" },
- { provider: "posthog" as const, id: "zai-org/glm-5.3", name: "GLM-5.3" },
-];
+ ["claude-fable-5-1", "Claude Fable 5.1"],
+ ["claude-opus-5-5", "Claude Opus 5.5"],
+ ["claude-sonnet-5-5", "Claude Sonnet 5.5"],
+ ["claude-sonnet-5", "Claude Sonnet 5"],
+ ["gpt-6-sol", "GPT-6 Sol"],
+ ["gpt-6-luna", "GPT-6 Luna"],
+ ["gpt-5.6-terra", "GPT-5.6 Terra"],
+ ["gpt-5.5", "GPT-5.5"],
+ ["zai-org/glm-5.3", "GLM-5.3"],
+].map(([id, name]) => ({ provider: "posthog" as const, id, name }));
function Harness(): ReactElement {
const [modelId, setModelId] = useState("gpt-5.6-terra");
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 c0935190578b..1937d5856120 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
@@ -26,6 +26,7 @@ const ANTHROPIC_MODELS = [
harnessOption("claude", "claude-fable-5-1", "Claude Fable 5.1"),
harnessOption("claude", "claude-opus-5-5", "Claude Opus 5.5"),
harnessOption("claude", "claude-opus-4-8", "Claude Opus 4.8"),
+ harnessOption("claude", "claude-sonnet-5-5", "Claude Sonnet 5.5"),
harnessOption("claude", "claude-sonnet-5", "Claude Sonnet 5"),
];