@@ -2075,9 +2075,6 @@ export const OpenAIOAuthPlugin: Plugin = async ({ client }: PluginInput) => {
20752075 const unsupportedCodexFallbackChain =
20762076 getUnsupportedCodexFallbackChain ( pluginConfig ) ;
20772077 const toastDurationMs = getToastDurationMs ( pluginConfig ) ;
2078- const persistAccountFooter = getPersistAccountFooter ( pluginConfig ) ;
2079- const persistAccountFooterStyle =
2080- getPersistAccountFooterStyle ( pluginConfig ) ;
20812078 const fetchTimeoutMs = getFetchTimeoutMs ( pluginConfig ) ;
20822079 const streamStallTimeoutMs = getStreamStallTimeoutMs ( pluginConfig ) ;
20832080
@@ -2176,6 +2173,9 @@ export const OpenAIOAuthPlugin: Plugin = async ({ client }: PluginInput) => {
21762173 init ?: RequestInit ,
21772174 ) : Promise < Response > {
21782175 try {
2176+ // Keep request-time toast behavior and later account.switch refreshes
2177+ // aligned with the latest config/env snapshot.
2178+ syncRuntimePluginConfig ( loadPluginConfig ( ) ) ;
21792179 if ( cachedAccountManager && cachedAccountManager !== accountManager ) {
21802180 accountManager = cachedAccountManager ;
21812181 }
@@ -2506,7 +2506,7 @@ while (attempted.size < Math.max(1, accountCount)) {
25062506 extractAccountEmail ( accountAuth . access ) ?? account . email ;
25072507
25082508 if (
2509- ! persistAccountFooter &&
2509+ ! runtimePersistAccountFooter &&
25102510 accountCount > 1 &&
25112511 accountManager . shouldShowAccountToast (
25122512 account . index ,
@@ -2886,7 +2886,7 @@ while (attempted.size < Math.max(1, accountCount)) {
28862886 }
28872887
28882888 accountManager . recordSuccess ( account , modelFamily , model ) ;
2889- if ( persistAccountFooter ) {
2889+ if ( runtimePersistAccountFooter ) {
28902890 const liveAccountCount = accountManager . getAccountCount ( ) ;
28912891 const persistedAccountCount =
28922892 liveAccountCount > 0
@@ -2899,7 +2899,7 @@ while (attempted.size < Math.max(1, accountCount)) {
28992899 account ,
29002900 account . index ,
29012901 persistedAccountCount ,
2902- persistAccountFooterStyle ,
2902+ runtimePersistAccountFooterStyle ,
29032903 indicatorRevision ,
29042904 ) ;
29052905 }
0 commit comments