fix(task): report non-isolated cleanup state (#7488)

This commit is contained in:
metaphorics
2026-08-03 22:26:24 +09:00
parent d563e25cfe
commit e42b95bcae
2 changed files with 8 additions and 2 deletions
@@ -358,7 +358,9 @@ describe("runSubprocess async quiescence fresh-yield contract", () => {
expect(result.exitCode).toBe(1);
expect(result.aborted).toBe(true);
expect(result.abortReason).toBe("cleanup exceeded 10000 ms");
expect(result.error).toContain("Cleanup did not finish within 10000 ms");
expect(result.error).toBe(
"Task aborted. Cleanup did not finish within 10000 ms. This task was not isolated, so its changes may remain in the working directory.",
);
expect(result.output).toContain("yielded output");
expect(result.usage?.totalTokens).toBe(7);
expect(lateJobId).toBeDefined();