Describe the bug
The plan-exit question dock (shown when plan_exit is called to switch from plan to build agent) has several UX issues:
- Plan content not rendered as markdown — The plan text in the exit prompt is shown as plain text, making it hard to read structured plans with headings, lists, and code blocks.
- Empty plan not guarded — If the plan is empty, the prompt still shows with no useful content.
- Question dock text not rendered as markdown — The question text in the web UI dock is plain text rather than markdown.
- No scroll for long content — When plan content is long, the question dock overflows without a scrollbar.
- Auto-scroll to focused option — When an option is focused, the dock auto-scrolls to the bottom, making it impossible to read the plan content above.
- No tap-to-collapse — There is no way to collapse the question dock to see the session content behind it.
Steps to reproduce
- Enter plan mode and create a long plan
- Call
plan_exit to switch to build agent
- Observe the question dock: no markdown rendering, no scroll, auto-scrolls away from content
Expected behavior
- Plan content should render as markdown
- Empty plans should be handled gracefully
- Long content should be scrollable
- Focus should not auto-scroll away from content
- Dock should be collapsible by tapping the header
System info
- OpenCode version: v1.15.3
- OS: Linux
Describe the bug
The plan-exit question dock (shown when
plan_exitis called to switch from plan to build agent) has several UX issues:Steps to reproduce
plan_exitto switch to build agentExpected behavior
System info