-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Prerequisites
- I will write this issue in English (see our Language Policy)
- I have searched existing issues to avoid duplicates
- I am using the latest version of oh-my-opencode
- I have read the documentation
Bug Description
When using delegate_task with the category parameter (e.g., category="quick"), the task fails with JSON Parse error: Unexpected EOF.
Root cause investigation reveals:
- The category system ignores the
categoriesconfiguration inoh-my-opencode.json - Instead, it falls back to a hardcoded model (
opencode/claude-haiku-4-5) which doesn't exist for users without OpenCode Zen access - This causes the agent to fail immediately with EOF error (no response from non-existent model)
Additionally: The disabled_hooks: ["category-skill-reminder"] config option appears to not work - the hook still fires despite being in the disabled list.
Steps to Reproduce
-
Configure
oh-my-opencode.jsonwith custom category models:{ "categories": { "quick": { "model": "openai/gpt-5.2" }, "visual-engineering": { "model": "google/antigravity-gemini-3-pro-high" } }, "disabled_hooks": ["category-skill-reminder"] } -
Use delegate_task with category:
delegate_task(category="quick", load_skills=[], prompt="Say hello", run_in_background=false) -
Observe error:
Send prompt failed **Error**: JSON Parse error: Unexpected EOF **Agent**: sisyphus-junior (category: quick) -
Note that the
[Category+Skill Reminder]hook output still appears despite being indisabled_hooks.
Expected Behavior
delegate_task(category="quick", ...)should use the model configured incategories.quick.model- The
disabled_hooksconfiguration should prevent the specified hooks from running
Actual Behavior
- Category-based delegation fails with
JSON Parse error: Unexpected EOF - The system appears to ignore the
categoriesconfig and fall back to a hardcoded default model disabled_hooks: ["category-skill-reminder"]has no effect - the hook still runs
Workaround
Using subagent_type instead of category works correctly:
delegate_task(subagent_type="general-gemini-3-flash", ...) # Works
delegate_task(category="quick", ...) # Fails
Doctor Output
Installation
────────────────────────────────────────
✓ OpenCode Installation → 1.1.42
✓ Plugin Registration → Registered (pinned: latest)
Configuration
────────────────────────────────────────
✓ Configuration Validity → Valid JSON configError Logs
SyntaxError: JSON Parse error: Unexpected EOF
at <parse> (:0)
at parse (unknown)
at processTicksAndRejections (native:7:39)
Configuration
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
"disabled_hooks": ["category-skill-reminder"],
"categories": {
"quick": { "model": "openai/gpt-5.2" },
"visual-engineering": { "model": "google/antigravity-gemini-3-pro-high" },
"ultrabrain": { "model": "openai/gpt-5.2" },
"artistry": { "model": "google/antigravity-gemini-3-pro-high" },
"unspecified-low": { "model": "google/antigravity-gemini-3-flash" },
"unspecified-high": { "model": "google/antigravity-gemini-3-pro-high" },
"writing": { "model": "google/antigravity-gemini-3-pro-high" }
},
"agents": {
"sisyphus-junior": { "model": "openai/gpt-5.2" }
}
}Additional Context
Related issues:
- [Bug]: Agents fallback to default model despite valid configuration for google/antigravity-gemini-3-flash #1253 - Agents fallback to default model despite valid configuration
- Feature Request: Support for custom provider in default categories #1071 - Feature Request: Support for custom provider in default categories
- [Feature]: No config option to disable built-in delegation categories. #1078 - No config option to disable built-in delegation categories
Investigation notes:
- The
sisyphus-junioragent is used for category-based delegation - Both
agents.sisyphus-junior.modelandcategories.*.modelconfigs are ignored - The fallback chain appears to select
opencode/claude-haiku-4-5regardless of config - Users without direct Anthropic/OpenCode Zen access cannot use categories at all
Operating System
macOS
OpenCode Version
3.1.7
Metadata
Metadata
Assignees
Labels
No labels