diff --git a/apps/server/src/orchestration-v2/RestartContinuation.test.ts b/apps/server/src/orchestration-v2/RestartContinuation.test.ts index d2224720b89f1..a318130500b3b 100644 --- a/apps/server/src/orchestration-v2/RestartContinuation.test.ts +++ b/apps/server/src/orchestration-v2/RestartContinuation.test.ts @@ -915,7 +915,9 @@ it.effect("continues a cut run past queued follow-ups, which stay held", () => ...cut, runs: [...cut.runs, queuedFollowUp], } as unknown as OrchestrationV2ThreadProjection); - assert.deepEqual(texts, ["Continue where you left off."]); + assert.deepEqual(texts, [ + "Continue where you left off. Your last turn was cut short, so a command or other action it started may have finished or may still be running. Before you repeat one that changes state, confirm it did not take effect and is not still running; if you cannot tell, say so instead of repeating it.", + ]); }), ); @@ -945,7 +947,9 @@ it.effect("continues a resumed queued run that ran after an earlier continuation ...cut, runs: [...cut.runs, finishedContinuation], } as unknown as OrchestrationV2ThreadProjection); - assert.deepEqual(texts, ["Continue where you left off."]); + assert.deepEqual(texts, [ + "Continue where you left off. Your last turn was cut short, so a command or other action it started may have finished or may still be running. Before you repeat one that changes state, confirm it did not take effect and is not still running; if you cannot tell, say so instead of repeating it.", + ]); }), ); diff --git a/apps/server/src/orchestration-v2/RestartContinuation.ts b/apps/server/src/orchestration-v2/RestartContinuation.ts index e4d7ac2b7f900..8741fb7bc5993 100644 --- a/apps/server/src/orchestration-v2/RestartContinuation.ts +++ b/apps/server/src/orchestration-v2/RestartContinuation.ts @@ -30,7 +30,8 @@ import { restartContinuationNote, } from "./RestartBackgroundNote.ts"; -const CONTINUE_PROMPT = "Continue where you left off."; +const CONTINUE_PROMPT = + "Continue where you left off. Your last turn was cut short, so a command or other action it started may have finished or may still be running. Before you repeat one that changes state, confirm it did not take effect and is not still running; if you cannot tell, say so instead of repeating it."; const MAX_CONTINUATION_CHAIN = 3; const CONTINUATION_LOOP_WINDOW_MS = 5 * 60 * 1_000;