@@ -1084,7 +1084,7 @@ export function getRateLimitDedupWindowMs(pluginConfig: PluginConfig): number {
10841084 return resolveNumberSetting (
10851085 "CODEX_AUTH_RATE_LIMIT_DEDUP_WINDOW_MS" ,
10861086 pluginConfig . rateLimitDedupWindowMs ,
1087- DEFAULT_PLUGIN_CONFIG . rateLimitDedupWindowMs ,
1087+ DEFAULT_PLUGIN_CONFIG . rateLimitDedupWindowMs ?? 2_000 ,
10881088 { min : 0 } ,
10891089 ) ;
10901090}
@@ -1093,7 +1093,7 @@ export function getRateLimitStateResetMs(pluginConfig: PluginConfig): number {
10931093 return resolveNumberSetting (
10941094 "CODEX_AUTH_RATE_LIMIT_STATE_RESET_MS" ,
10951095 pluginConfig . rateLimitStateResetMs ,
1096- DEFAULT_PLUGIN_CONFIG . rateLimitStateResetMs ,
1096+ DEFAULT_PLUGIN_CONFIG . rateLimitStateResetMs ?? 120_000 ,
10971097 { min : 1_000 } ,
10981098 ) ;
10991099}
@@ -1102,7 +1102,7 @@ export function getRateLimitMaxBackoffMs(pluginConfig: PluginConfig): number {
11021102 return resolveNumberSetting (
11031103 "CODEX_AUTH_RATE_LIMIT_MAX_BACKOFF_MS" ,
11041104 pluginConfig . rateLimitMaxBackoffMs ,
1105- DEFAULT_PLUGIN_CONFIG . rateLimitMaxBackoffMs ,
1105+ DEFAULT_PLUGIN_CONFIG . rateLimitMaxBackoffMs ?? 60_000 ,
11061106 { min : 1_000 } ,
11071107 ) ;
11081108}
@@ -1113,7 +1113,7 @@ export function getRateLimitShortRetryThresholdMs(
11131113 return resolveNumberSetting (
11141114 "CODEX_AUTH_RATE_LIMIT_SHORT_RETRY_THRESHOLD_MS" ,
11151115 pluginConfig . rateLimitShortRetryThresholdMs ,
1116- DEFAULT_PLUGIN_CONFIG . rateLimitShortRetryThresholdMs ,
1116+ DEFAULT_PLUGIN_CONFIG . rateLimitShortRetryThresholdMs ?? 5_000 ,
11171117 { min : 0 } ,
11181118 ) ;
11191119}
@@ -1842,11 +1842,20 @@ export function getPluginConfigExplainReport(): ConfigExplainReport {
18421842 const stored = resolveStoredPluginConfigRecord ( ) ;
18431843 const storedRecord = stored . record ?? null ;
18441844 const entries = CONFIG_EXPLAIN_ENTRIES . map ( ( entry ) => {
1845- const value = entry . getValue ( pluginConfig ) ;
1845+ const rawValue = entry . getValue ( pluginConfig ) ;
1846+ const rawDefaultValue = DEFAULT_PLUGIN_CONFIG [ entry . key ] ;
1847+ const value =
1848+ entry . key === "retryAllAccountsMaxRetries" && rawValue === 0
1849+ ? Number . POSITIVE_INFINITY
1850+ : rawValue ;
1851+ const defaultValue =
1852+ entry . key === "retryAllAccountsMaxRetries" && rawDefaultValue === 0
1853+ ? Number . POSITIVE_INFINITY
1854+ : rawDefaultValue ;
18461855 return {
18471856 key : entry . key ,
18481857 value : normalizeConfigExplainValue ( value ) ,
1849- defaultValue : normalizeConfigExplainValue ( DEFAULT_PLUGIN_CONFIG [ entry . key ] ) ,
1858+ defaultValue : normalizeConfigExplainValue ( defaultValue ) ,
18501859 source : resolveConfigExplainSource (
18511860 entry ,
18521861 pluginConfig ,
0 commit comments