From 93dab2d961286e96566d3f5a0ae249f9fa0f77c2 Mon Sep 17 00:00:00 2001 From: Blomios Date: Sat, 15 Aug 2026 01:08:30 +0200 Subject: [PATCH] =?UTF-8?q?test(web):=20align=20agent=20contract=20expecta?= =?UTF-8?q?tions=20=E2=80=94=20#203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/adapters/agent.test.ts | 1 + frontend/src/adapters/http/agentGateway.test.ts | 1 + frontend/src/features/layout/singletonAgent.test.tsx | 2 ++ 3 files changed, 4 insertions(+) diff --git a/frontend/src/adapters/agent.test.ts b/frontend/src/adapters/agent.test.ts index 4deb627a..3ec7e811 100644 --- a/frontend/src/adapters/agent.test.ts +++ b/frontend/src/adapters/agent.test.ts @@ -315,6 +315,7 @@ describe("TauriAgentGateway invoke payloads", () => { cols: 80, cellKind: "chat", conversationId: "conversation-0", + freshStart: false, nodeId: "node-3", }, onOutput: expect.anything(), diff --git a/frontend/src/adapters/http/agentGateway.test.ts b/frontend/src/adapters/http/agentGateway.test.ts index 9b21c313..b69dcffb 100644 --- a/frontend/src/adapters/http/agentGateway.test.ts +++ b/frontend/src/adapters/http/agentGateway.test.ts @@ -140,6 +140,7 @@ describe("HttpAgentGateway WS round-trip (B6 frames)", () => { rows: 24, cols: 80, conversationId: "resume-9", + freshStart: false, }); expect(handle.sessionId).toBe("sess-1"); // The conversation id minted by the launch is surfaced on the handle. diff --git a/frontend/src/features/layout/singletonAgent.test.tsx b/frontend/src/features/layout/singletonAgent.test.tsx index fb77edaa..88c73c21 100644 --- a/frontend/src/features/layout/singletonAgent.test.tsx +++ b/frontend/src/features/layout/singletonAgent.test.tsx @@ -71,6 +71,7 @@ describe("singleton agent — mock gateway guard (T5)", () => { nodeId: "node-A", sessionId: "mock-agent-session-1", kind: "pty", + runtimeState: "running", }, ]); }); @@ -148,6 +149,7 @@ describe("singleton agent — dropdown guard (T6)", () => { nodeId: leafId, sessionId: "mock-agent-session-1", kind: "pty", + runtimeState: "running", }, ]); });