Skip to content

Fixed "Continue last" and "Resume specific" staying enabled when no sessions exist - #109

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/resume-disabled-when-no-sessions
May 7, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/resume-disabled-when-no-sessions

Conversation

@oleg68

@oleg68 oleg68 commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Disabled "Continue last" and "Resume specific" radio buttons when the selected directory/profile has no past sessions
  • Falls back to "New session" automatically to avoid a misleading --continue/--resume launch
  • When switching to a directory with sessions, radios re-enable and the preferred mode (from Tools → Options) is restored

Test plan

  • Open session selector, pick a dir with no sessions → "Continue last" and "Resume specific" are grayed out, "New session" is selected
  • Switch profile to one with no sessions for that dir → same state, no surprise selection
  • Switch to a dir with sessions → radios re-enable, "Continue last" auto-selected
  • With "Start new session" checked in Options → dir with sessions → "New session" selected
  • mvn test passes (738 tests)

🤖 Generated with Claude Code

…essions exist

When a directory or profile with no previous sessions is selected in the
session selector, the "Continue last" and "Resume specific" radio buttons
are now disabled and the selection falls back to "New session". When
switching to a directory that has sessions, the radios re-enable and the
preferred mode (from settings) is restored.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 4b402a9 into nbplugins:main May 7, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/resume-disabled-when-no-sessions branch May 7, 2026 16:57
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