Skip to content

Commit 810fd77

Browse files
fix(ci): format stall-bound and compact-continue tests (#1104)
Main CI static-analysis failed oxfmt on two test files from the last merges.
1 parent e5bf142 commit 810fd77

2 files changed

Lines changed: 22 additions & 20 deletions

File tree

‎src/subagent/run-ask-director-continue.test.ts‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ describe("runSubAgent ask_director compact-continue wiring", () => {
168168
capturedFactory = opts.factory;
169169
return real.defineDirector(opts);
170170
},
171-
stringTool: (
172-
args: Parameters<typeof real.stringTool>[0],
173-
) => {
171+
stringTool: (args: Parameters<typeof real.stringTool>[0]) => {
174172
const tool = real.stringTool(args);
175173
if (args.definition.name === "ask_director") {
176174
capturedAskHandler = args.handler;
@@ -236,17 +234,15 @@ describe("runSubAgent ask_director compact-continue wiring", () => {
236234
throw new Error("ask_director tool was not mounted");
237235
}
238236

239-
const director = capturedFactory(
240-
{},
241-
{} as never,
242-
{
243-
systemPrompt: "system",
244-
toolDefinitions: [],
245-
compactorNames: [],
246-
},
247-
);
237+
const director = capturedFactory({}, {} as never, {
238+
systemPrompt: "system",
239+
toolDefinitions: [],
240+
compactorNames: [],
241+
});
248242
if (!(director instanceof SubAgentDirector)) {
249-
throw new Error("factory did not return SubAgentDirector");
243+
throw new Error(
244+
"factory did not return SubAgentDirector",
245+
);
250246
}
251247
if (requestContinuation === undefined) {
252248
throw new Error("requestContinuation was not captured");

‎src/tui/runner/wiring.stall-bound.test.ts‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ describe("stall-bound primary turn (CL-8016)", () => {
149149
"stall-abort:awaiting-first-token",
150150
);
151151
// ... the hung inference was interrupted before any new deliver ...
152-
const interruptAt = port.calls.findIndex((call) => call.op === "interrupt");
152+
const interruptAt = port.calls.findIndex(
153+
(call) => call.op === "interrupt",
154+
);
153155
expect(interruptAt).toBeGreaterThanOrEqual(0);
154156
const wakeAfterInterrupt = port.calls
155157
.slice(interruptAt + 1)
@@ -231,14 +233,18 @@ describe("stall-bound primary turn (CL-8016)", () => {
231233
// Production abort is the #1095 monitor tick → doInterrupt, not the
232234
// 5s fleet poll. Occupancy must win that next turn; a re-surface wake
233235
// must not start processing first.
234-
const interruptAt = port.calls.findIndex((call) => call.op === "interrupt");
236+
const interruptAt = port.calls.findIndex(
237+
(call) => call.op === "interrupt",
238+
);
235239
expect(interruptAt).toBeGreaterThanOrEqual(0);
236240
expect(
237-
port.calls.slice(interruptAt + 1).some(
238-
(call) =>
239-
call.op === "deliver" &&
240-
call.item.text.includes(ASK_DIRECTOR_WAKE_PREFIX),
241-
),
241+
port.calls
242+
.slice(interruptAt + 1)
243+
.some(
244+
(call) =>
245+
call.op === "deliver" &&
246+
call.item.text.includes(ASK_DIRECTOR_WAKE_PREFIX),
247+
),
242248
).toBe(false);
243249
expect(mailDrives).toBe(1);
244250
expect(wakeDeliveries(port)).toHaveLength(1);

0 commit comments

Comments
 (0)