fix(core): add retry logic for specific fetch errors (#11066)

This commit is contained in:
Sandy Tao
2025-10-14 09:17:31 -07:00
committed by GitHub
parent c86ee4cc83
commit 7c1a90244a
8 changed files with 143 additions and 3 deletions
+1
View File
@@ -760,6 +760,7 @@ export async function loadCliConfig(
settings.tools?.enableMessageBusIntegration ?? false,
codebaseInvestigatorSettings:
settings.experimental?.codebaseInvestigatorSettings,
retryFetchErrors: settings.general?.retryFetchErrors ?? false,
});
}
+1
View File
@@ -106,6 +106,7 @@ const MIGRATION_MAP: Record<string, string> = {
memoryDiscoveryMaxDirs: 'context.discoveryMaxDirs',
model: 'model.name',
preferredEditor: 'general.preferredEditor',
retryFetchErrors: 'general.retryFetchErrors',
sandbox: 'tools.sandbox',
selectedAuthType: 'security.auth.selectedType',
enableInteractiveShell: 'tools.shell.enableInteractiveShell',
+10
View File
@@ -184,6 +184,16 @@ const SETTINGS_SCHEMA = {
'Enable AI-powered prompt completion suggestions while typing.',
showInDialog: true,
},
retryFetchErrors: {
type: 'boolean',
label: 'Retry Fetch Errors',
category: 'General',
requiresRestart: false,
default: false,
description:
'Retry on "exception TypeError: fetch failed sending request" errors.',
showInDialog: false,
},
debugKeystrokeLogging: {
type: 'boolean',
label: 'Debug Keystroke Logging',