X Tutup
Skip to content

fix(agent): don't overwrite existing vscode git auth settings#22871

Draft
zedkipp wants to merge 1 commit intomainfrom
zedkipp/vscode-settings
Draft

fix(agent): don't overwrite existing vscode git auth settings#22871
zedkipp wants to merge 1 commit intomainfrom
zedkipp/vscode-settings

Conversation

@zedkipp
Copy link
Contributor

@zedkipp zedkipp commented Mar 9, 2026

OverrideVSCodeConfigs previously unconditionally set git.useIntegratedAskPass and github.gitAuthentication to false, clobbering any values provided by template authors via module settings (e.g. the vscode-web module's settings block). This change only set these keys when they are not already present, so template-provided values are preserved.

Registry PR #758 fixed the module side (run.sh merges template-author settings into the existing settings.json instead of overwriting the file). But the agent still unconditionally stamped false onto both keys before the script ran, so the merge base always contained the agent's values and template authors couldn't set them to anything else. This change fixes the agent side by only writing defaults when the keys are absent.

#19007

OverrideVSCodeConfigs previously unconditionally set
git.useIntegratedAskPass and github.gitAuthentication to false,
clobbering any values provided by template authors via module
settings (e.g. the vscode-web module's settings block).

Change mutate to only set these keys when they are not already
present, so template-provided values are preserved.

Fixes #19007
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

X Tutup