From 76f8c500cbf24409b6f63ceb3d568abf0450863f Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Wed, 28 Jan 2026 12:05:20 +0900 Subject: [PATCH] fix(config): add 'dev-browser' to BrowserAutomationProviderSchema Config validation was failing when 'dev-browser' was set as the browser automation provider, causing the entire config to be rejected. This silently disabled all config options including tmux.enabled. - Add 'dev-browser' as valid option in BrowserAutomationProviderSchema - Update JSDoc with dev-browser description - Regenerate JSON schema --- assets/oh-my-opencode.schema.json | 3 ++- src/config/schema.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/oh-my-opencode.schema.json b/assets/oh-my-opencode.schema.json index 27134431..d9498a73 100644 --- a/assets/oh-my-opencode.schema.json +++ b/assets/oh-my-opencode.schema.json @@ -2768,7 +2768,8 @@ "type": "string", "enum": [ "playwright", - "agent-browser" + "agent-browser", + "dev-browser" ] } } diff --git a/src/config/schema.ts b/src/config/schema.ts index 3c9ab7b5..469e9c59 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -313,13 +313,14 @@ export const GitMasterConfigSchema = z.object({ include_co_authored_by: z.boolean().default(true), }) -export const BrowserAutomationProviderSchema = z.enum(["playwright", "agent-browser"]) +export const BrowserAutomationProviderSchema = z.enum(["playwright", "agent-browser", "dev-browser"]) export const BrowserAutomationConfigSchema = z.object({ /** * Browser automation provider to use for the "playwright" skill. * - "playwright": Uses Playwright MCP server (@playwright/mcp) - default * - "agent-browser": Uses Vercel's agent-browser CLI (requires: bun add -g agent-browser) + * - "dev-browser": Uses dev-browser skill with persistent browser state */ provider: BrowserAutomationProviderSchema.default("playwright"), })