Skip to content

Conversation

@xLillium
Copy link

@xLillium xLillium commented Jan 8, 2026

Summary

Fixes #601

The orchestrator-sisyphus agent was not respecting model overrides configured in oh-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-sisyphus agent was missing from two places in the config schema:

  1. OverridableAgentNameSchema - the Zod enum listing which agents can be overridden
  2. AgentOverridesSchema - the Zod object schema that actually parses the agents config section

Without being in AgentOverridesSchema, any config override for orchestrator-sisyphus was silently ignored during config parsing, and the agent always used the hardcoded default model.

Changes

  • src/config/schema.ts: Added "orchestrator-sisyphus" to both OverridableAgentNameSchema and AgentOverridesSchema
  • src/agents/orchestrator-sisyphus.ts: Extracted DEFAULT_MODEL constant for consistency with other agents
  • src/agents/utils.test.ts: Added 2 new tests verifying model override behavior
  • assets/oh-my-opencode.schema.json: Regenerated schema

Testing

  • All 17 tests in src/agents/utils.test.ts pass (including 2 new tests)
  • Build succeeds: bun run build
  • Typecheck passes: bun run typecheck
  • Manually verified via tmux that /start-work command now uses the configured model override

Verification Evidence

When running /start-work with config override "orchestrator-sisyphus": { "model": "cliproxy/gemini-claude-opus-4-5-thinking" }:

▣  Orchestrator-Sisyphus · 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.

  • Bug Fixes
    • Added "orchestrator-sisyphus" to OverridableAgentNameSchema and AgentOverridesSchema.
    • Extracted DEFAULT_MODEL in orchestrator-sisyphus.ts.
    • Added tests for override and default behavior.
    • Regenerated oh-my-opencode.schema.json.

Written for commit 47953f1. Summary will update on new commits.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

The orchestrator-sisyphus agent was not respecting model overrides from
oh-my-opencode.json because it was missing from:
1. OverridableAgentNameSchema - the Zod enum of overridable agents
2. AgentOverridesSchema - the Zod object that parses the agents config

This caused the config override to be silently ignored, and the agent
always used the hardcoded default model.

Changes:
- Add 'orchestrator-sisyphus' to OverridableAgentNameSchema
- Add 'orchestrator-sisyphus' to AgentOverridesSchema
- Extract DEFAULT_MODEL constant in orchestrator-sisyphus.ts
- Add tests for model override behavior

Fixes code-yeongyu#601
@xLillium xLillium force-pushed the fix/orchestrator-sisyphus-model-override branch from 40f0d78 to 47953f1 Compare January 8, 2026 20:17
@xLillium
Copy link
Author

xLillium commented Jan 8, 2026

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 8, 2026
@xLillium
Copy link
Author

xLillium commented Jan 8, 2026

Closing this PR as the core fix was already merged by the maintainer in commit ef0220e.

The schema changes (adding orchestrator-sisyphus to OverridableAgentNameSchema and AgentOverridesSchema) are now in dev.

Our additional contributions (tests, DEFAULT_MODEL constant) are minor and not worth the merge overhead.

Thanks @code-yeongyu for the quick fix! 🙏

@xLillium xLillium closed this Jan 8, 2026
kdcokenny pushed a commit that referenced this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Agent orchestrator-sisyphus's configured model anthropic/claude-sonnet-4-5 is not valid

1 participant