Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/server/src/orchestration-v2/RestartContinuation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
]);
}),
);

Expand Down Expand Up @@ -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.",
]);
}),
);

Expand Down
3 changes: 2 additions & 1 deletion apps/server/src/orchestration-v2/RestartContinuation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading