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.

fix(pi): test bundled agent model assignments (#96427)

Jonathan Mieloo759b963aba73
diff --git a/products/desktop/packages/harness/src/extensions/orchestration/agents.test.ts b/products/desktop/packages/harness/src/extensions/orchestration/agents.test.ts
index 3bec8e22240e..7c7d1abe0c25 100644
--- a/products/desktop/packages/harness/src/extensions/orchestration/agents.test.ts
+++ b/products/desktop/packages/harness/src/extensions/orchestration/agents.test.ts
@@ -34,19 +34,19 @@ describe("agents", () => {
expect(general?.source).toBe("bundled");
});
- it("Explore is read-only and pinned to Sol", () => {
+ it("Explore is read-only and pinned to Luna", () => {
const explore = findBundledAgent("Explore");
expect(explore?.tools).toEqual(["read", "bash", "grep", "find", "ls"]);
- expect(explore?.model).toBe("gpt-5.6-sol");
+ expect(explore?.model).toBe("gpt-5.6-luna");
});
- it("Plan is read-only and inherits the parent's model", () => {
+ it("Plan is read-only and pinned to Sol", () => {
const plan = findBundledAgent("Plan");
expect(plan?.tools).toEqual(["read", "bash", "grep", "find", "ls"]);
- expect(plan?.model).toBeUndefined();
+ expect(plan?.model).toBe("gpt-5.6-sol");
});
- it("General is the only bundled agent with write access, and inherits the parent's model", () => {
+ it("General is the only bundled agent with write access and is pinned to Terra", () => {
const general = findBundledAgent("General");
expect(general?.tools).toEqual([
"read",
@@ -57,7 +57,7 @@ describe("agents", () => {
"find",
"ls",
]);
- expect(general?.model).toBeUndefined();
+ expect(general?.model).toBe("gpt-5.6-terra");
for (const agent of loadBundledAgents()) {
if (agent.name === "General") continue;
expect(agent.tools).not.toContain("edit");
diff --git a/products/desktop/packages/harness/src/extensions/orchestration/tools/workflow-tool.test.ts b/products/desktop/packages/harness/src/extensions/orchestration/tools/workflow-tool.test.ts
index ed63bb6b0be4..3a1a859a2b89 100644
--- a/products/desktop/packages/harness/src/extensions/orchestration/tools/workflow-tool.test.ts
+++ b/products/desktop/packages/harness/src/extensions/orchestration/tools/workflow-tool.test.ts
@@ -294,7 +294,7 @@ return { count: inv.files.length }`,
fakeCtx,
);
const passedAgent = runAgentMock.mock.calls[0][0].agent;
- expect(passedAgent.model).toBe("gpt-5.6-sol");
+ expect(passedAgent.model).toBe("gpt-5.6-luna");
});
it("can dispatch to the General (read-write) persona by name", async () => {