1import { OPENCODE2_BACKGROUND_PROMPT, type OrchestratorFixtureInput } from "../shared.ts";
2
3/**
4 * The parent's turn ends while its background subagent runs. When the
5 * subagent ends, OpenCode starts a parent execution of its own, which T3
6 * replays as a continuation run.
7 */
8export function openCode2BackgroundInput(): OrchestratorFixtureInput {
9 return {
10 steps: [
11 { type: "message", text: OPENCODE2_BACKGROUND_PROMPT },
12 { type: "await_run_status", targetRunIndex: 2, status: "completed" },
13 ],
14 };
15}