| 1 | import { OPENCODE2_NESTED_BACKGROUND_PROMPT, type OrchestratorFixtureInput } from "../shared.ts"; |
| 2 | |
| 3 | /** |
| 4 | * The thread's turn ends while a foreground subagent's own background |
| 5 | * subagent still runs. The run completes only once that one has reported |
| 6 | * back to the subagent that started it. |
| 7 | */ |
| 8 | export function openCode2NestedBackgroundInput(): OrchestratorFixtureInput { |
| 9 | return { |
| 10 | steps: [ |
| 11 | { type: "message", text: OPENCODE2_NESTED_BACKGROUND_PROMPT }, |
| 12 | { type: "await_run_status", targetRunIndex: 1, status: "completed" }, |
| 13 | ], |
| 14 | }; |
| 15 | } |