mirror of
https://github.com/THU-MAIC/OpenMAIC.git
synced 2026-10-17 05:29:46 +08:00
ServerProvidersInit fetches /api/server-providers on mount, which on an ACCESS_CODE-gated deployment happens before any access cookie exists. The middleware answers 401 and fetchServerProviders returns early, leaving the settings store on its blank defaults. AccessCodeModal calls onSuccess without reloading and nothing else calls fetchServerProviders, so every server-configured provider reads as unconfigured for the whole session until the user manually reloads. Re-run the fetch from AccessCodeGuard's onSuccess, once the cookie makes the request authorizable. Co-authored-by: thanos-openclaw <thanos@openclaw.local> Co-authored-by: wyuc <wang-yc24@mails.tsinghua.edu.cn>