You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Planning mode: subagents can trigger plan_exit, plan not shown before build switch, question text renders as plain text #18515
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
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: Beautified Question Tool Text Display #12781: [FEATURE]: Beautified Question Tool Text Display — covers the same problem described in point 3 (question text/markdown rendering as plain text in both the TUI and desktop app)
Good catch — point 3 (question text rendered as plain text instead of markdown) overlaps with #12781.
Our PR #18516 fixes this for the web UI by using the Markdown component in both the live question dock (session-question-dock.tsx) and historical question display (message-part.tsx). The TUI side (#12781 also mentions terminal rendering) is not addressed here.
Points 1 and 2 (subagent plan escape + plan content not shown in exit prompt) are unique to this issue.
Activity
github-actions commentedon Mar 21, 2026
This issue might be a duplicate of existing issues. Please check:
BYK commentedon Mar 21, 2026
Good catch — point 3 (question text rendered as plain text instead of markdown) overlaps with #12781.
Our PR #18516 fixes this for the web UI by using the
Markdowncomponent in both the live question dock (session-question-dock.tsx) and historical question display (message-part.tsx). The TUI side (#12781 also mentions terminal rendering) is not addressed here.Points 1 and 2 (subagent plan escape + plan content not shown in exit prompt) are unique to this issue.
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Upgrade OpenCode adapter to structurally-verified via real live install
Upgrade OpenCode adapter to structurally-verified via real live insta…