feat(gateway, openclaw-auth): add browser config synchronization (#184)

This commit is contained in:
Haze
2026-02-26 14:47:36 +08:00
committed by GitHub
Unverified
parent 402aeeb98b
commit 4f50630291
5 changed files with 62 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ import {
buildDeviceAuthPayload,
type DeviceIdentity,
} from '../utils/device-identity';
import { syncGatewayTokenToConfig } from '../utils/openclaw-auth';
import { syncGatewayTokenToConfig, syncBrowserConfigToOpenClaw } from '../utils/openclaw-auth';
/**
* Gateway connection status
@@ -637,6 +637,12 @@ export class GatewayManager extends EventEmitter {
} catch (err) {
logger.warn('Failed to sync gateway token to openclaw.json:', err);
}
try {
syncBrowserConfigToOpenClaw();
} catch (err) {
logger.warn('Failed to sync browser config to openclaw.json:', err);
}
let command: string;
let args: string[];