diff --git a/assets/oh-my-opencode.schema.json b/assets/oh-my-opencode.schema.json index 658e17786..af48d80b4 100644 --- a/assets/oh-my-opencode.schema.json +++ b/assets/oh-my-opencode.schema.json @@ -11,6 +11,9 @@ "new_task_system_enabled": { "type": "boolean" }, + "default_run_agent": { + "type": "string" + }, "disabled_mcps": { "type": "array", "items": { diff --git a/src/config/schema.ts b/src/config/schema.ts index 293435adc..abdfd0048 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -366,6 +366,8 @@ export const OhMyOpenCodeConfigSchema = z.object({ $schema: z.string().optional(), /** Enable new task system (default: false) */ new_task_system_enabled: z.boolean().optional(), + /** Default agent name for `oh-my-opencode run` (env: OPENCODE_DEFAULT_AGENT) */ + default_run_agent: z.string().optional(), disabled_mcps: z.array(AnyMcpNameSchema).optional(), disabled_agents: z.array(BuiltinAgentNameSchema).optional(), disabled_skills: z.array(BuiltinSkillNameSchema).optional(),