| 1 | import { |
| 2 | OPENCODE2_REVERT_FIRST_PROMPT, |
| 3 | OPENCODE2_REVERT_SECOND_PROMPT, |
| 4 | type OrchestratorFixtureInput, |
| 5 | } from "../shared.ts"; |
| 6 | |
| 7 | /** Two turns that write the same file, then a rollback to the first. */ |
| 8 | export function openCode2RevertInput(): OrchestratorFixtureInput { |
| 9 | return { |
| 10 | steps: [ |
| 11 | { type: "message", text: OPENCODE2_REVERT_FIRST_PROMPT }, |
| 12 | { type: "message", text: OPENCODE2_REVERT_SECOND_PROMPT }, |
| 13 | { type: "rollback", checkpointScopeSuffix: "root", checkpointSuffix: "1" }, |
| 14 | { type: "await_run_status", targetRunIndex: 2, status: "rolled_back" }, |
| 15 | ], |
| 16 | }; |
| 17 | } |