From 1bacac5ce1ece943757f18fb2af88a78370e52bf Mon Sep 17 00:00:00 2001 From: Sawyer Cutler Date: Wed, 16 Sep 2026 14:04:25 -0700 Subject: [PATCH] fix(ci): format stall-bound and compact-continue tests Main CI static-analysis failed oxfmt on two test files from the last merges. --- .../run-ask-director-continue.test.ts | 22 ++++++++----------- src/tui/runner/wiring.stall-bound.test.ts | 20 +++++++++++------ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/subagent/run-ask-director-continue.test.ts b/src/subagent/run-ask-director-continue.test.ts index d67997a04..65ce4db1c 100644 --- a/src/subagent/run-ask-director-continue.test.ts +++ b/src/subagent/run-ask-director-continue.test.ts @@ -168,9 +168,7 @@ describe("runSubAgent ask_director compact-continue wiring", () => { capturedFactory = opts.factory; return real.defineDirector(opts); }, - stringTool: ( - args: Parameters[0], - ) => { + stringTool: (args: Parameters[0]) => { const tool = real.stringTool(args); if (args.definition.name === "ask_director") { capturedAskHandler = args.handler; @@ -236,17 +234,15 @@ describe("runSubAgent ask_director compact-continue wiring", () => { throw new Error("ask_director tool was not mounted"); } - const director = capturedFactory( - {}, - {} as never, - { - systemPrompt: "system", - toolDefinitions: [], - compactorNames: [], - }, - ); + const director = capturedFactory({}, {} as never, { + systemPrompt: "system", + toolDefinitions: [], + compactorNames: [], + }); if (!(director instanceof SubAgentDirector)) { - throw new Error("factory did not return SubAgentDirector"); + throw new Error( + "factory did not return SubAgentDirector", + ); } if (requestContinuation === undefined) { throw new Error("requestContinuation was not captured"); diff --git a/src/tui/runner/wiring.stall-bound.test.ts b/src/tui/runner/wiring.stall-bound.test.ts index 805469834..6e97d35ae 100644 --- a/src/tui/runner/wiring.stall-bound.test.ts +++ b/src/tui/runner/wiring.stall-bound.test.ts @@ -149,7 +149,9 @@ describe("stall-bound primary turn (CL-8016)", () => { "stall-abort:awaiting-first-token", ); // ... the hung inference was interrupted before any new deliver ... - const interruptAt = port.calls.findIndex((call) => call.op === "interrupt"); + const interruptAt = port.calls.findIndex( + (call) => call.op === "interrupt", + ); expect(interruptAt).toBeGreaterThanOrEqual(0); const wakeAfterInterrupt = port.calls .slice(interruptAt + 1) @@ -231,14 +233,18 @@ describe("stall-bound primary turn (CL-8016)", () => { // Production abort is the #1095 monitor tick → doInterrupt, not the // 5s fleet poll. Occupancy must win that next turn; a re-surface wake // must not start processing first. - const interruptAt = port.calls.findIndex((call) => call.op === "interrupt"); + const interruptAt = port.calls.findIndex( + (call) => call.op === "interrupt", + ); expect(interruptAt).toBeGreaterThanOrEqual(0); expect( - port.calls.slice(interruptAt + 1).some( - (call) => - call.op === "deliver" && - call.item.text.includes(ASK_DIRECTOR_WAKE_PREFIX), - ), + port.calls + .slice(interruptAt + 1) + .some( + (call) => + call.op === "deliver" && + call.item.text.includes(ASK_DIRECTOR_WAKE_PREFIX), + ), ).toBe(false); expect(mailDrives).toBe(1); expect(wakeDeliveries(port)).toHaveLength(1);