Skip to content

Fixed disabled models appearing in model selector combo - #158

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/hide-disabled-models
Jun 28, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/hide-disabled-models

Conversation

@oleg68

@oleg68 oleg68 commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Models marked as (disabled) in Claude Code's /model menu (e.g. Fable (disabled)) were being added to the combo box with the full unavailability message as their display name instead of being hidden
  • ModelMenuParser now skips any numbered menu entry whose name portion contains (disabled)
  • Added fixture-based test case format1-with-disabled-model to ModelMenuParserTest

Test plan

  • Run mvn test -Dtest=ModelMenuParserTest — all 13 cases pass
  • In a live session, open the model selector combo — Fable (disabled) should not appear; all other models should be present with correct selection

🤖 Generated with Claude Code

Models marked as "(disabled)" in the /model menu (e.g. "Fable (disabled)")
were being added to the combo box with the full unavailability message as
their display name. ModelMenuParser now skips any numbered menu entry whose
name portion contains "(disabled)".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit cffa442 into nbplugins:main Jun 28, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/hide-disabled-models branch June 28, 2026 12:11
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