Skip to content

Fixed Default profile settings not saving in Tools → Options → Profiles - #31

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/default-no-apply
Apr 13, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/default-no-apply

Conversation

@oleg68

@oleg68 oleg68 commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

Previously saveProfiles() discarded all Default profile fields except extraCliArgs; getProfiles() only restored that one field. Now the full Default profile is serialised to a dedicated NbPreferences key (KEY_DEFAULT_PROFILE) and restored on load, with extraCliArgs still written to the legacy key for back-compat.

Previously saveProfiles() discarded all Default profile fields except
extraCliArgs; getProfiles() only restored that one field. Now the full
Default profile is serialised to a dedicated NbPreferences key
(KEY_DEFAULT_PROFILE) and restored on load, with extraCliArgs still
written to the legacy key for back-compat.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 166921d into nbplugins:main Apr 13, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/default-no-apply branch April 13, 2026 17:13
oleg68 added a commit to oleg68/NetbeansPluginClaudeCodeGui that referenced this pull request Apr 13, 2026
…es (nbplugins#31)

Previously saveProfiles() discarded all Default profile fields except
extraCliArgs; getProfiles() only restored that one field. Now the full
Default profile is serialised to a dedicated NbPreferences key
(KEY_DEFAULT_PROFILE) and restored on load, with extraCliArgs still
written to the legacy key for back-compat.

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
oleg68 pushed a commit to oleg68/NetbeansPluginClaudeCodeGui that referenced this pull request Apr 14, 2026
…es (nbplugins#31)

Backport of 166921d to 0.20.

Serialises the full Default profile to a dedicated NbPreferences key
(KEY_DEFAULT_PROFILE) so that all fields (API key, proxy, Extra CLI args,
etc.) survive a save/load cycle. Back-compat: the legacy KEY_DEFAULT_EXTRA_CLI_ARGS
key is still written and read as a fallback.

Resolves: nbplugins#31

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
oleg68 added a commit that referenced this pull request Apr 14, 2026
…es (#38)

Backport of 166921d to 0.20.

Serialises the full Default profile to a dedicated NbPreferences key
(KEY_DEFAULT_PROFILE) so that all fields (API key, proxy, Extra CLI
args, etc.) survive a save/load cycle. Back-compat: the legacy
KEY_DEFAULT_EXTRA_CLI_ARGS key is still written and read as a fallback.

Resolves: #31

Co-authored-by: Oleg Samarin <osamarin@openintegration.inc>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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