fix(task): append plan delegation prompt requirements

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-03-06 22:56:51 +09:00
parent 898b628d3d
commit 20b185b59f
8 changed files with 61 additions and 6 deletions
+3 -1
View File
@@ -11,6 +11,7 @@ import { formatDuration } from "./time-formatter"
import { syncContinuationDeps, type SyncContinuationDeps } from "./sync-continuation-deps"
import { setSessionTools } from "../../shared/session-tools-store"
import { normalizeSDKResponse } from "../../shared"
import { buildTaskPrompt } from "./prompt-builder"
export async function executeSyncContinuation(
args: DelegateTaskArgs,
@@ -82,6 +83,7 @@ export async function executeSyncContinuation(
}
const allowTask = isPlanFamily(resumeAgent)
const effectivePrompt = buildTaskPrompt(args.prompt, resumeAgent)
const tools = {
...(resumeAgent ? getAgentToolRestrictions(resumeAgent) : {}),
task: allowTask,
@@ -97,7 +99,7 @@ export async function executeSyncContinuation(
...(resumeModel !== undefined ? { model: resumeModel } : {}),
...(resumeVariant !== undefined ? { variant: resumeVariant } : {}),
tools,
parts: [{ type: "text", text: args.prompt }],
parts: [{ type: "text", text: effectivePrompt }],
},
})
} catch (promptError) {