Repository navigation
Conversation
…esize (nbplugins#176) Resolves: nbplugins#176 - ModelMenuParser: some Claude Code CLI versions add an extra space after the option ordinal ("1. Default (recommended)" instead of "1. Default (recommended)"), which broke the regex used to locate the name/description column boundary and caused the entire line (including the checkmark and description) to be captured as the "model name". The same newer format also sometimes omits the separate "· version" column entirely, putting the version directly in the name slot. Fixed by stripping the ordinal prefix before locating the boundary, and by choosing the model id based on whether a "·" separator is present and whether the name itself looks like a bare version string. - ClaudeSessionTab: modelCombo's minimum width is now computed dynamically via a getMinimumSize() override (capped at 100px, never exceeding its own live preferred width) instead of relying on JComboBox's default minimum (which equals preferred size). This means the status bar can always be shrunk regardless of what ends up in the parsed model list — including any future parser regression — while the combo still grows with its content, up to its existing maximum, when the window is widened. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
oleg68
deleted the
bugfix/issue-176-model-menu-parsing-and-combo-min-width
branch
September 30, 2026 17:48
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
ModelMenuParsermisparsing newer Claude Code CLI/modeloutput that adds an extra space after the option ordinal ("1. Default (recommended)"), which caused the entire line (checkmark + description) to be captured as the "model name" instead of just the short name.getMinimumSize()override, so the status bar (and therefore the panel) can always be shrunk, while the combo still grows with its content when the window is widened.Resolves #176
Test plan
mvn test— new fixtureformat3-double-space-ordinalreproduces the reported bug (confirmed failing before the fix, passing after); full suite green (1031 tests)mvn package— full build succeeds🤖 Generated with Claude Code