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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user