diff --git a/src/features/background-agent/manager.test.ts b/src/features/background-agent/manager.test.ts index bef56a647..44b4c0859 100644 --- a/src/features/background-agent/manager.test.ts +++ b/src/features/background-agent/manager.test.ts @@ -3027,10 +3027,10 @@ describe("BackgroundManager.checkAndInterruptStaleTasks", () => { prompt: "Test", agent: "test-agent", status: "running", - startedAt: new Date(Date.now() - 25 * 60 * 1000), + startedAt: new Date(Date.now() - 50 * 60 * 1000), progress: { toolCalls: 1, - lastUpdate: new Date(Date.now() - 21 * 60 * 1000), + lastUpdate: new Date(Date.now() - 46 * 60 * 1000), }, } diff --git a/src/features/background-agent/task-poller.test.ts b/src/features/background-agent/task-poller.test.ts index 7895dfe09..a39a51b40 100644 --- a/src/features/background-agent/task-poller.test.ts +++ b/src/features/background-agent/task-poller.test.ts @@ -117,13 +117,13 @@ describe("checkAndInterruptStaleTasks", () => { }) it("should use DEFAULT_MESSAGE_STALENESS_TIMEOUT_MS when messageStalenessTimeoutMs is not configured", async () => { - //#given — task started 35 minutes ago, no config for messageStalenessTimeoutMs + //#given — task started 65 minutes ago, no config for messageStalenessTimeoutMs const task = createRunningTask({ - startedAt: new Date(Date.now() - 35 * 60 * 1000), + startedAt: new Date(Date.now() - 65 * 60 * 1000), progress: undefined, }) - //#when — default is 30 minutes (1_800_000ms) + //#when — default is 60 minutes (3_600_000ms) await checkAndInterruptStaleTasks({ tasks: [task], client: mockClient as never,