| 1 | import { OPENCODE2_PERMISSION_PROMPT, type OrchestratorFixtureInput } from "../shared.ts"; |
| 2 | |
| 3 | /** Supervised: the first command is approved, then it and the model's two retries are declined. */ |
| 4 | export function openCode2PermissionInput(): OrchestratorFixtureInput { |
| 5 | return { |
| 6 | runtimeMode: "approval-required", |
| 7 | steps: [ |
| 8 | { type: "message", text: OPENCODE2_PERMISSION_PROMPT }, |
| 9 | { type: "approve_next_runtime_request" }, |
| 10 | { type: "approve_next_runtime_request", decision: "decline" }, |
| 11 | { type: "approve_next_runtime_request", decision: "decline" }, |
| 12 | { type: "approve_next_runtime_request", decision: "decline" }, |
| 13 | ], |
| 14 | }; |
| 15 | } |