Skip to content

Backport/issue 23/0.20 - #37

Merged
oleg68 merged 2 commits into
nbplugins:release/0.20from
oleg68:backport/issue-23/0.20
Apr 14, 2026
Merged

oleg68 merged 2 commits into
nbplugins:release/0.20from
oleg68:backport/issue-23/0.20

Conversation

@oleg68

@oleg68 oleg68 commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

autoStart(File, String) was passing null as extraCliArgs to the
three-argument overload, so the profile's Extra CLI args setting
(configured in Tools → Options → Profiles) was silently discarded when
launching from the project context menu.

Fix: resolve the profile via ClaudeProfileStore.findByName() and forward
its extraCliArgs. The IDE-restore path (autoStart with three args)
already passes savedExtraCliArgs correctly and is unaffected.

ClaudeProfile.createDefault() constructs a profile with all fields set
to
empty defaults without reading NbPreferences. As a result,
findByName(null/blank)
returned a bare Default profile, silently discarding the user's
configured
API key, proxy, extraCliArgs, and other settings.

Fix:

  • Added ClaudeProfileStore.getDefaultProfile() that goes through
    getProfiles(),
    which applies stored settings from NbPreferences to the Default profile.
  • findByName() now delegates to getDefaultProfile() for null/blank
    names,
    and uses it as the fallback for unknown named profiles.
  • Removed unused resolveProfile() from ClaudeProjectProperties (dead
    code).

Resolves: #23


Co-authored-by: Oleg Samarin osamarin@openintegration.inc
Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com

Oleg Samarin and others added 2 commits April 14, 2026 09:28
autoStart(File, String) was passing null as extraCliArgs to the
three-argument overload, so the profile's Extra CLI args setting
(configured in Tools → Options → Profiles) was silently discarded
when launching from the project context menu.

Fix: resolve the profile via ClaudeProfileStore.findByName() and
forward its extraCliArgs. The IDE-restore path (autoStart with three
args) already passes savedExtraCliArgs correctly and is unaffected.

Resolves: nbplugins#23

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…cked Default

ClaudeProfile.createDefault() constructs a profile with all fields set to
empty defaults without reading NbPreferences. As a result, findByName(null/blank)
returned a bare Default profile, silently discarding the user's configured
API key, proxy, extraCliArgs, and other settings.

Fix:
- Added ClaudeProfileStore.getDefaultProfile() that goes through getProfiles(),
  which applies stored settings from NbPreferences to the Default profile.
- findByName() now delegates to getDefaultProfile() for null/blank names,
  and uses it as the fallback for unknown named profiles.
- Removed unused resolveProfile() from ClaudeProjectProperties (dead code).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 197936a into nbplugins:release/0.20 Apr 14, 2026
4 checks passed
@oleg68
oleg68 deleted the backport/issue-23/0.20 branch April 14, 2026 06:59
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