Skip to content

Improve hook selector readability with responsive option preview#852

Draft
sonhyrd wants to merge 1 commit intocan1357:mainfrom
sonhyrd:fix/hook-selector-preview-readability
Draft

Improve hook selector readability with responsive option preview#852
sonhyrd wants to merge 1 commit intocan1357:mainfrom
sonhyrd:fix/hook-selector-preview-readability

Conversation

@sonhyrd
Copy link
Copy Markdown

@sonhyrd sonhyrd commented Apr 28, 2026

Summary

  • add a selected-option preview pane to HookSelectorComponent so long choices are readable before selection
  • keep the option list compact/single-line while rendering wrapped preview content
  • use responsive layout: split list/preview on wide terminals, stacked layout on narrow terminals
  • keep existing selector behavior (up/down, enter, left/right, cancel, timeout) intact

Verification

  • bun test packages/coding-agent/test/hook-selector-overflow.test.ts
  • bun test packages/coding-agent/test/tools/ask.test.ts

@sonhyrd sonhyrd changed the title Improve selector readability with responsive preview pane Improve hook selector readability with responsive option preview Apr 28, 2026
@sonhyrd sonhyrd marked this pull request as draft April 28, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant