Skip to content

Added support for long choice dialogs (e.g. /model with more than 9 items) - #185

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/long-choice-menu
Oct 5, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/long-choice-menu

Conversation

@oleg68

@oleg68 oleg68 commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Long menus (e.g. /model) are shown by Claude as a scrolling window; the detector now parses ↑/↓ rows and … +N lines, and a new MenuEnumerator walks the menu with Down arrows (cyclically, restoring the cursor) to collect all items.
  • Items 10+ are selected with arrows + Enter.
  • ChoiceMenuPanel gets a scroll pane capped by the new Choice menu max height setting (General tab, default 320 px); the scrollbar appears/disappears on resize.
  • Model discovery at startup and the model combo include every model.
  • Docs and General settings screenshot updated.

Test plan

  • mvn package (unit tests incl. new MenuEnumeratorTest, detector fixtures, panel tests)
  • claude-launch-tests/test_long_choice_menu.py (PTY check of Down wrap-around)
  • Manual in the IDE: scrolling panel, 10+ selection, combo/discovery lists

🤖 Generated with Claude Code

…tems)

Claude shows long menus as a scrolling window (rows prefixed with ↑/↓ and a
"… +N models" line). The detector now parses such windows, and the new
MenuEnumerator walks the menu with Down arrows (cyclically, returning the
cursor to its original item) to collect every item.

- Items 10 and above are selected with arrows + Enter, since a digit key
  selects immediately.
- ChoiceMenuPanel wraps the options in a scroll pane whose maximum height
  is the new "Choice menu max height" setting (Tools -> Options ->
  Claude Code -> General, default 320 px); the scrollbar appears and
  disappears as the panel is resized.
- Model discovery at startup and the model combo cover all models.
- Docs and General settings screenshot updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 979fdbf into nbplugins:main Oct 5, 2026
3 checks passed
@oleg68
oleg68 deleted the feature/long-choice-menu branch October 5, 2026 07:56
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