Skip to content

Commit 8bfb106

Browse files
committed
test(subagent): drop stop test that cannot tell paging from a loop
evaluateSubAgentStop returns null on any tool turn, so the chunked-reads case pinned nothing. Chunk keying stays covered in thrash.test.ts and null-on-tools in the keeps-running test.
1 parent 2426e5c commit 8bfb106

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

‎src/subagent/index.test.ts‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -686,27 +686,6 @@ describe("sub-agent stop helpers", () => {
686686
).toBeNull();
687687
});
688688

689-
test("evaluateSubAgentStop does not stop for chunked same-file reads with advancing offsets", () => {
690-
let thrash = EMPTY_THRASH_STATE;
691-
for (let i = 0; i < 12; i++) {
692-
thrash = nextThrashState(thrash, [
693-
{
694-
type: "tool_call",
695-
name: "read_file",
696-
arguments: { path: "src/big.ts", offset: i * 50, limit: 50 },
697-
},
698-
]);
699-
}
700-
expect(thrash.readCounts.size).toBe(12);
701-
expect(
702-
evaluateSubAgentStop({
703-
hasToolCalls: true,
704-
lastAssistantText: "",
705-
thrashState: thrash,
706-
}),
707-
).toBeNull();
708-
});
709-
710689
test("evaluateSubAgentStop keeps running while the worker is still calling tools", () => {
711690
expect(
712691
evaluateSubAgentStop({

0 commit comments

Comments
 (0)