Skip to content

Commit e5efe42

Browse files
committed
feat(instructions): Emphasize need for documentation in plan
prior to proceeding to the next phase
1 parent b075ff9 commit e5efe42

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/core/src/instruction-generator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ export class InstructionGenerator implements IInstructionGenerator {
115115
116116
**ACTION REQUIRED: Focus on "${phaseName}" tasks** and log decisions in "Key Decisions"
117117
118+
**When all tasks are completed**: Make sure that all insights and decisions are captured in \`${conversationContext.planFilePath}\`. Then call proceed_to_phase to move to the next phase.
119+
118120
**CRITICAL: Do NOT use other task/todo tools** - use only the plan file for task tracking`;
119121

120122
// Add file restriction guidance if patterns are restricted

packages/opencode-plugin/src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ export const WorkflowsPlugin: Plugin = async (
480480
Current phase "${state.phase}" only allows editing:
481481
${allowedList}
482482
483-
ACTION REQUIRED: Use transition_phase tool to move to a phase that allows editing this file type, OR focus on files matching the allowed patterns above.`;
483+
ACTION REQUIRED: Use proceed_to_phase tool to move to a phase that allows editing this file type, OR focus on files matching the allowed patterns above.`;
484484

485485
logger.error('BLOCKING edit', {
486486
filePath,

0 commit comments

Comments
 (0)