fix(webui): surface OAuth model catalog authorization failures

This commit is contained in:
Xubin Ren committed 2026-09-21 00:13:46 +08:00
1 parent a478c96bde
commit 024fe8f636
26 files changed
+585 -34

No files matched your search

@@ -35,7 +35,6 @@ export function useProviderOAuthPolling({
const {
providerOAuthFlow,
providerOAuthFlowRef,
setExpandedProvider,
} = state;
useEffect(() => {
@@ -57,8 +56,7 @@ export function useProviderOAuthPolling({
timer = window.setTimeout(() => void poll(), 1000);
return;
}
applyPayload(payload);
setExpandedProvider(providerOAuthFlow.provider);
applyPayload(payload, { preserveAgentForm: true });
setError(null);
closeProviderOAuthFlow();
} catch (err) {