Fix workflow step execution wiring

This commit is contained in:
gsxdsm
2026-04-05 22:28:22 -07:00
parent ef3136d601
commit 6ff6e69e60
9 changed files with 414 additions and 11 deletions

View File

@@ -1539,6 +1539,7 @@ async function executePostMergePromptStep(
rootDir: string,
settings: Settings,
): Promise<{ success: boolean; output?: string; error?: string }> {
const toolMode: "coding" | "readonly" = workflowStep.toolMode || "readonly";
const systemPrompt = `You are a post-merge workflow step agent executing: ${workflowStep.name}
Task Context:
@@ -1567,7 +1568,7 @@ If issues are found that need attention, describe them clearly.`;
const { session } = await createKbAgent({
cwd: rootDir,
systemPrompt,
tools: "readonly",
tools: toolMode,
defaultProvider: stepProvider,
defaultModelId: stepModelId,
fallbackProvider: settings.fallbackProvider,