Repository navigation
Added support for long choice dialogs (e.g. /model with more than 9 items) - #185
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/model) are shown by Claude as a scrolling window; the detector now parses↑/↓rows and… +Nlines, and a newMenuEnumeratorwalks the menu with Down arrows (cyclically, restoring the cursor) to collect all items.ChoiceMenuPanelgets a scroll pane capped by the new Choice menu max height setting (General tab, default 320 px); the scrollbar appears/disappears on resize.Test plan
mvn package(unit tests incl. newMenuEnumeratorTest, detector fixtures, panel tests)claude-launch-tests/test_long_choice_menu.py(PTY check of Down wrap-around)🤖 Generated with Claude Code