Skip to content

fix(ui): improve plan-exit question dock UX#27890

Open
BYK wants to merge 1 commit into
anomalyco:devfrom
BYK:fix/plan-exit-dock-ux
Open

fix(ui): improve plan-exit question dock UX#27890
BYK wants to merge 1 commit into
anomalyco:devfrom
BYK:fix/plan-exit-dock-ux

Conversation

@BYK
Copy link
Copy Markdown
Contributor

@BYK BYK commented May 16, 2026

Issue for this PR

Closes #27889, closes #18515

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes several UX issues in the plan-exit question dock:

  • Render plan content as markdown in the exit prompt (plan.ts), making structured plans with headings, lists, and code blocks readable. Also guards against empty plans.
  • Render question dock text as markdown in the web UI (session-question-dock.tsx).
  • Restore scroll on question dock for long plan content (dock-surface.css, message-part.css).
  • Prevent auto-scroll to focused option so users can read plan content above the buttons (session-question-dock.tsx).
  • Add tap-to-collapse on the question dock header title, allowing users to minimize the dock to see session content behind it (dock-prompt.tsx, message-part.css).

How did you verify your code works?

Tested locally by entering plan mode, creating a long plan, and triggering plan_exit. Verified markdown renders correctly, scroll works for long content, focus doesn't auto-scroll away, and tap-to-collapse works on the header.

Screenshots / recordings

N/A — behavioral fixes to existing UI components.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

- Render plan content as markdown in the exit prompt and guard empty plan
- Render question dock text as markdown in the web UI
- Restore scroll on question dock for long plan content
- Prevent question dock from auto-scrolling to focused option
- Add tap-to-collapse on question dock header title
@BYK BYK requested a review from adamdotdevin as a code owner May 16, 2026 14:55
@github-actions github-actions Bot added contributor needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant