From e67f813b0ecb8667842c18ac5a560e10caddd8e1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 08:30:05 +0000 Subject: [PATCH] test(core): continue reset-to-clear cleanup in subagent focus and web fetch --- src/agents/tools/web-fetch.ssrf.e2e.test.ts | 2 +- src/auto-reply/reply/commands-subagents-focus.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agents/tools/web-fetch.ssrf.e2e.test.ts b/src/agents/tools/web-fetch.ssrf.e2e.test.ts index fd4593c22ad..af3d934c208 100644 --- a/src/agents/tools/web-fetch.ssrf.e2e.test.ts +++ b/src/agents/tools/web-fetch.ssrf.e2e.test.ts @@ -74,7 +74,7 @@ describe("web_fetch SSRF protection", () => { afterEach(() => { global.fetch = priorFetch; - lookupMock.mockReset(); + lookupMock.mockClear(); vi.restoreAllMocks(); }); diff --git a/src/auto-reply/reply/commands-subagents-focus.test.ts b/src/auto-reply/reply/commands-subagents-focus.test.ts index a165acf0886..34183c75294 100644 --- a/src/auto-reply/reply/commands-subagents-focus.test.ts +++ b/src/auto-reply/reply/commands-subagents-focus.test.ts @@ -163,7 +163,7 @@ async function focusCodexAcpInThread(fake = createFakeThreadBindingManager()) { describe("/focus, /unfocus, /agents", () => { beforeEach(() => { resetSubagentRegistryForTests(); - hoisted.callGatewayMock.mockReset(); + hoisted.callGatewayMock.mockClear(); hoisted.getThreadBindingManagerMock.mockClear().mockReturnValue(null); hoisted.resolveThreadBindingThreadNameMock.mockClear().mockReturnValue("🤖 codex"); });