diff --git a/extensions/codex/src/app-server/run-attempt.test.ts b/extensions/codex/src/app-server/run-attempt.test.ts index b035246cd60..f1eca61be18 100644 --- a/extensions/codex/src/app-server/run-attempt.test.ts +++ b/extensions/codex/src/app-server/run-attempt.test.ts @@ -7194,7 +7194,7 @@ describe("runCodexAppServerAttempt", () => { try { const sessionFile = path.join(tempDir, "session.jsonl"); const workspaceDir = path.join(tempDir, "workspace"); - createAppServerHarness(async (method) => { + const harness = createAppServerHarness(async (method) => { if (method === "thread/start") { return threadStartResult(); } @@ -7261,15 +7261,6 @@ describe("runCodexAppServerAttempt", () => { expect(startedContent?.systemPrompt).toContain( "You are a personal agent running inside OpenClaw.", ); - expect(startedContent?.toolDefinitions).toContainEqual( - expect.objectContaining({ - name: "message", - parameters: expect.objectContaining({ - type: "object", - additionalProperties: false, - }), - }), - ); expect(completedEvent?.callId).toBe("diagnostic-run-1:codex-model:1"); expect(JSON.stringify(completedEvent)).not.toContain("hello back"); expect(