opt: disable GitHub attribution by default (#1173)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinjing 2026-04-27 09:53:33 -07:00 committed by GitHub
parent 830b78e0a7
commit cfe247659a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -344,7 +344,7 @@ export function registerPtyHandlers(
isPackaged: app.isPackaged,
userDataPath: app.getPath('userData'),
selectedCodexHomePath: getSelectedCodexHomePath?.() ?? null,
githubAttributionEnabled: getSettings?.()?.enableGitHubAttribution ?? true
githubAttributionEnabled: getSettings?.()?.enableGitHubAttribution ?? false
}),
onSpawned: (id) => runtime?.onPtySpawned(id),
onExit: (id, code) => {
@ -536,7 +536,7 @@ export function registerPtyHandlers(
isPackaged: app.isPackaged,
userDataPath: app.getPath('userData'),
selectedCodexHomePath: getSelectedCodexHomePath?.() ?? null,
githubAttributionEnabled: getSettings?.()?.enableGitHubAttribution ?? true
githubAttributionEnabled: getSettings?.()?.enableGitHubAttribution ?? false
})
}
const envToDelete = claudeAuth?.stripAuthEnv

View File

@ -117,7 +117,7 @@ export function getDefaultSettings(homedir: string): GlobalSettings {
refreshLocalBaseRefOnWorktreeCreate: false,
branchPrefix: 'git-username',
branchPrefixCustom: '',
enableGitHubAttribution: true,
enableGitHubAttribution: false,
theme: 'system',
editorAutoSave: false,
editorAutoSaveDelayMs: DEFAULT_EDITOR_AUTO_SAVE_DELAY_MS,