diff --git a/src/main/agent-hooks/server-interrupt-inference-escape-navigation.test.ts b/src/main/agent-hooks/server-interrupt-inference-escape-navigation.test.ts index aa343969cf8..f594fadde18 100644 --- a/src/main/agent-hooks/server-interrupt-inference-escape-navigation.test.ts +++ b/src/main/agent-hooks/server-interrupt-inference-escape-navigation.test.ts @@ -52,14 +52,13 @@ function ingestWorking( return server.getStatusSnapshot()[0]! } +// Why: take the snapshot row type itself rather than a hand-written structural +// shape - the payload's fields are optional, so a narrower literal type does not +// accept it and typecheck fails (tests are excluded from the mobile tsconfig but +// not from this one). function inferEscape( server: AgentHookServer, - baseline: { - receivedAt: number - stateStartedAt: number - prompt: string - agentType: string | undefined - } + baseline: ReturnType[0] ) { return server.inferInterrupt({ paneKey: PANE,