Skip to content

[Bug] Browser profile driver "openclaw" rejected by Zod schema (only accepts legacy "clawd") #35620

@ingyukoh

Description

@ingyukoh

Bug Description

The browser profile driver schema in zod-schema.ts only accepts "clawd" (legacy project name) and "extension", but:

  1. The TypeScript type at types.browser.ts:7 defines driver?: "openclaw" | "extension"
  2. The runtime code at browser/config.ts:320 normalizes to "openclaw" as the default
  3. Tests at browser/config.test.ts:16,21 expect "openclaw" as the resolved driver value

Users setting browser.profiles.*.driver: "openclaw" get a validation error because the schema only accepts "clawd".

Steps to Reproduce

browser:
  profiles:
    default:
      cdpPort: 9222
      driver: "openclaw"
      color: "#ff0000"

This config is rejected by validateConfigObject().

Root Cause

The project was renamed from "clawd" to "openclaw" but the Zod schema wasn't updated to accept the new name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions