Skip to content

Fixed profile combo not refreshing when profiles are added or removed after session start - #134

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/stale-profile-combo
May 22, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/stale-profile-combo

Conversation

@oleg68

@oleg68 oleg68 commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • ClaudeSessionSelectorPanel.populateProfileCombo() was called only once at construction time, leaving the combo stale if profiles were changed in Tools → Options
  • Added a PopupMenuListener that refreshes the profile list each time the dropdown opens, preserving the current selection if the profile still exists

Test plan

  • Open a Claude Code session tab
  • Go to Tools → Options → Claude Code → Profiles, add a new profile, save
  • Click the profile combo — the new profile should appear
  • Remove a profile in Options, reopen the combo — the removed profile should be gone

🤖 Generated with Claude Code

… after session start

Added a PopupMenuListener to profileCombo in ClaudeSessionSelectorPanel that calls
populateProfileCombo() each time the dropdown opens, preserving the current selection.
This ensures the list always reflects the current state of ClaudeProfileStore.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit bfd8a73 into nbplugins:main May 22, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/stale-profile-combo branch May 22, 2026 06:39
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