Skip to content

Commit e5fdfec

Browse files
gambletanaltaywtf
andauthored
fix(config): accept "openclaw" as browser profile driver in Zod schema (#39374)
Merged via squash. Prepared head SHA: 0eba5ab Co-authored-by: gambletan <[email protected]> Co-authored-by: altaywtf <[email protected]> Reviewed-by: @altaywtf
1 parent f73778e commit e5fdfec

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ Docs: https://docs.openclaw.ai
363363
- ACPX/MCP session bootstrap: inject configured MCP servers into ACP `session/new` and `session/load` for acpx-backed sessions, restoring Canva and other external MCP tools. Landed from contributor PR #39337. Thanks @goodspeed-apps.
364364
- Control UI/Telegram sender labels: preserve inbound sender labels in sanitized chat history so dashboard user-message groups split correctly and show real group-member names instead of `You`. (#39414) Thanks @obviyus.
365365
- Agents/failover 402 recovery: keep temporary spend-limit `402` payloads retryable, preserve explicit insufficient-credit billing detection even in long provider payloads, and allow throttled billing-cooldown probes so single-provider setups can recover instead of staying locked out. (#38533) Thanks @xialonglee.
366+
- Browser/config schema: accept `browser.profiles.*.driver: "openclaw"` while preserving legacy `"clawd"` compatibility in validated config. (#39374; based on #35621) Thanks @gambletan and @ingyukoh.
366367

367368
## 2026.3.2
368369

src/config/schema.help.quality.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ const ENUM_EXPECTATIONS: Record<string, string[]> = {
413413
"gateway.bind": ['"auto"', '"lan"', '"loopback"', '"custom"', '"tailnet"'],
414414
"gateway.auth.mode": ['"none"', '"token"', '"password"', '"trusted-proxy"'],
415415
"gateway.tailscale.mode": ['"off"', '"serve"', '"funnel"'],
416-
"browser.profiles.*.driver": ['"clawd"', '"extension"'],
416+
"browser.profiles.*.driver": ['"openclaw"', '"clawd"', '"extension"'],
417417
"discovery.mdns.mode": ['"off"', '"minimal"', '"full"'],
418418
"wizard.lastRunMode": ['"local"', '"remote"'],
419419
"diagnostics.otel.protocol": ['"http/protobuf"', '"grpc"'],

src/config/schema.help.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export const FIELD_HELP: Record<string, string> = {
255255
"browser.profiles.*.cdpUrl":
256256
"Per-profile CDP websocket URL used for explicit remote browser routing by profile name. Use this when profile connections terminate on remote hosts or tunnels.",
257257
"browser.profiles.*.driver":
258-
'Per-profile browser driver mode: "clawd" or "extension" depending on connection/runtime strategy. Use the driver that matches your browser control stack to avoid protocol mismatches.',
258+
'Per-profile browser driver mode: "openclaw" (or legacy "clawd") or "extension" depending on connection/runtime strategy. Use the driver that matches your browser control stack to avoid protocol mismatches.',
259259
"browser.profiles.*.attachOnly":
260260
"Per-profile attach-only override that skips local browser launch and only attaches to an existing CDP endpoint. Useful when one profile is externally managed but others are locally launched.",
261261
"browser.profiles.*.color":

src/config/types.browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type BrowserProfileConfig = {
44
/** CDP URL for this profile (use for remote Chrome). */
55
cdpUrl?: string;
66
/** Profile driver (default: openclaw). */
7-
driver?: "openclaw" | "extension";
7+
driver?: "openclaw" | "clawd" | "extension";
88
/** If true, never launch a browser for this profile; only attach. Falls back to browser.attachOnly. */
99
attachOnly?: boolean;
1010
/** Profile color (hex). Auto-assigned at creation. */

src/config/zod-schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ export const OpenClawSchema = z
315315
.object({
316316
cdpPort: z.number().int().min(1).max(65535).optional(),
317317
cdpUrl: z.string().optional(),
318-
driver: z.union([z.literal("clawd"), z.literal("extension")]).optional(),
318+
driver: z
319+
.union([z.literal("openclaw"), z.literal("clawd"), z.literal("extension")])
320+
.optional(),
319321
attachOnly: z.boolean().optional(),
320322
color: HexColorSchema,
321323
})

0 commit comments

Comments
 (0)