fix: add missing await for async functions after sync-to-async migration

- getOAuthTokenFromOpenClaw: make async to properly await readAuthProfiles
- secure-storage: add await for getActiveOpenClawProviders call
- ipc-handlers: add await for updateAgentModelProvider in OAuth flow

Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-02-27 12:02:49 +00:00
parent d8be0b085b
commit 786b0de361
3 changed files with 5 additions and 5 deletions

View File

@@ -1192,7 +1192,7 @@ function registerProviderHandlers(gatewayManager: GatewayManager): void {
// authHeader immediately, without waiting for Gateway to sync openclaw.json.
try {
const defaultModelId = provider.model?.split('/').pop();
updateAgentModelProvider(targetProviderKey, {
await updateAgentModelProvider(targetProviderKey, {
baseUrl,
api,
authHeader: targetProviderKey === 'minimax-portal' ? true : undefined,