Description
Three issues with the experimental planning mode:
-
Subagents can escape plan mode: When the plan agent spawns subagents (explore/general), those child sessions have access to plan_exit, allowing them to accidentally trigger a switch to build mode. A user could then accidentally confirm, putting the session into build mode prematurely.
-
Plan not shown before asking to proceed: When plan_exit is called, the question just says "Plan at X is complete. Would you like to switch?" but doesn't show the plan content. The user must blindly decide whether to approve.
-
Question text renders as plain text: The question dock renders question.question as raw text, not markdown. Even if the plan content were included, it would display unformatted — no headers, lists, code blocks, etc.
Steps to reproduce
- Enable experimental plan mode (
OPENCODE_EXPERIMENTAL_PLAN_MODE=1)
- Start a planning session — the plan agent spawns explore subagents
- Observe that subagents can call
plan_exit and offer to switch to build mode
- When the plan agent completes and calls
plan_exit, the question dock shows a generic message without the plan content
- Any markdown in question text (headers, code, lists) appears as raw plain text
OpenCode version
Latest dev
Operating System
Linux
Description
Three issues with the experimental planning mode:
Subagents can escape plan mode: When the plan agent spawns subagents (explore/general), those child sessions have access to
plan_exit, allowing them to accidentally trigger a switch to build mode. A user could then accidentally confirm, putting the session into build mode prematurely.Plan not shown before asking to proceed: When
plan_exitis called, the question just says "Plan at X is complete. Would you like to switch?" but doesn't show the plan content. The user must blindly decide whether to approve.Question text renders as plain text: The question dock renders
question.questionas raw text, not markdown. Even if the plan content were included, it would display unformatted — no headers, lists, code blocks, etc.Steps to reproduce
OPENCODE_EXPERIMENTAL_PLAN_MODE=1)plan_exitand offer to switch to build modeplan_exit, the question dock shows a generic message without the plan contentOpenCode version
Latest dev
Operating System
Linux