Skip to content

Commit 20bdaeb

Browse files
committed
Fix prettier formatting in cancelled-worker salvage
1 parent f82d437 commit 20bdaeb

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

src/subagent/index.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ describe("sub-agent stop helpers", () => {
442442
expect(stopReasonFromReport(cancelled)).toBe("cancelled — Session closed");
443443
// Without a detail the line is the bare reason token.
444444
expect(stopReasonFromReport(forcedStopReport("cancelled", "partial"))).toBe("cancelled");
445-
expect(
446-
stopReasonFromReport(forcedStopReport("deadline", "x", { detail: "30s elapsed" })),
447-
).toBe("deadline — 30s elapsed");
445+
expect(stopReasonFromReport(forcedStopReport("deadline", "x", { detail: "30s elapsed" }))).toBe(
446+
"deadline30s elapsed",
447+
);
448448

449449
// A nested forced-stop quoted in Findings must not leak its Stopped line
450450
// as the outer report's reason.
@@ -459,7 +459,11 @@ describe("sub-agent stop helpers", () => {
459459

460460
test("salvagePathsFromThrash prefers edited paths then collapses chunked reads", () => {
461461
const state = nextThrashState(EMPTY_THRASH_STATE, [
462-
{ type: "tool_call", name: "read_file", arguments: { path: "src/a.ts", offset: 0, limit: 10 } },
462+
{
463+
type: "tool_call",
464+
name: "read_file",
465+
arguments: { path: "src/a.ts", offset: 0, limit: 10 },
466+
},
463467
{
464468
type: "tool_call",
465469
name: "edit_file",

src/subagent/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ export {
2121
type FleetObservation,
2222
type FleetWatch,
2323
} from "./fleet-report.js";
24-
export { EMPTY_THRASH_STATE, nextThrashState, salvagePathsFromThrash, type ThrashState } from "./thrash.js";
24+
export {
25+
EMPTY_THRASH_STATE,
26+
nextThrashState,
27+
salvagePathsFromThrash,
28+
type ThrashState,
29+
} from "./thrash.js";
2530
export {
2631
appendActivitySummary,
2732
buildDispatchBrief,

src/subagent/nudge-director.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import type {
1515
} from "@intx/types/runtime";
1616
import { createCompactionGovernor, type CompactionGovernor } from "../agent/compaction.js";
1717
import { onTurnBoundary } from "../agent/reactor-events.js";
18-
import { EMPTY_THRASH_STATE, nextThrashState, salvagePathsFromThrash, type ThrashState } from "./thrash.js";
18+
import {
19+
EMPTY_THRASH_STATE,
20+
nextThrashState,
21+
salvagePathsFromThrash,
22+
type ThrashState,
23+
} from "./thrash.js";
1924
import { NOOP_INTERVENTION_SINK, type InterventionSink } from "./intervention-log.js";
2025
import {
2126
evaluateSubAgentStop,

0 commit comments

Comments
 (0)