fix: allow orchestrator-sisyphus model override from config #603
+277
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #601
The
orchestrator-sisyphusagent was not respecting model overrides configured inoh-my-opencode.json. Users configuring a custom model would still see the error: "Agent orchestrator-sisyphus's configured model anthropic/claude-sonnet-4-5 is not valid."Root Cause
The
orchestrator-sisyphusagent was missing from two places in the config schema:OverridableAgentNameSchema- the Zod enum listing which agents can be overriddenAgentOverridesSchema- the Zod object schema that actually parses theagentsconfig sectionWithout being in
AgentOverridesSchema, any config override fororchestrator-sisyphuswas silently ignored during config parsing, and the agent always used the hardcoded default model.Changes
src/config/schema.ts: Added"orchestrator-sisyphus"to bothOverridableAgentNameSchemaandAgentOverridesSchemasrc/agents/orchestrator-sisyphus.ts: ExtractedDEFAULT_MODELconstant for consistency with other agentssrc/agents/utils.test.ts: Added 2 new tests verifying model override behaviorassets/oh-my-opencode.schema.json: Regenerated schemaTesting
src/agents/utils.test.tspass (including 2 new tests)bun run buildbun run typecheck/start-workcommand now uses the configured model overrideVerification Evidence
When running
/start-workwith config override"orchestrator-sisyphus": { "model": "cliproxy/gemini-claude-opus-4-5-thinking" }:The agent now correctly picks up the configured model instead of the hardcoded default.
Summary by cubic
Model overrides for the orchestrator-sisyphus agent now work. The agent reads its model from oh-my-opencode.json and falls back to claude-sonnet-4-5 by default.
Written for commit 47953f1. Summary will update on new commits.