Repository navigation
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-openagent
- I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer
Bug Description
When an orchestrator (e.g. Atlas) delegates via task(category="unspecified-high", ...), the spawned subagent is always labeled "Sisyphus-Junior" in the TUI — the category that was passed is never surfaced anywhere in the session header. After migrating the categories block so that category→model mappings use plain model IDs (e.g. unspecified-high → opencode-go/kimi-k2.7-code), the category is completely invisible: the subagent header shows only Sisyphus-Junior + a model name that no longer encodes the category.
This makes it look like the orchestrator "delegated without a category" (and therefore without the category-optimized model), when in fact the category is being passed and the correct model is being used.
Evidence that the category IS passed (from OpenCode session DB)
Atlas session ses_0053ab72 (oh-my-openagent 4.19.4, model opencode-go/minimax-m3): all 24 task() calls carry category: "unspecified-high" + load_skills + description + prompt + run_in_background. The spawned child sessions all have agent = "Sisyphus-Junior" and model = {"id":"kimi-k2.7-code","providerID":"opencode-go"} (the category's configured model) — i.e. category routing works correctly at runtime, but nothing in the UI tells the user which category was used.
The only calls ever recorded without category/subagent_type were aborted tool executions (status: "error", "Tool execution aborted", empty input) — not real delegations.
Root cause
-
TUI label comes from
subagent_type, notcategory. Per PR fix(tool-execute-before): resolve subagent_type for TUI display #1810, the OpenCode TUI renders the task header frominput.subagent_type(title={"# " + Locale.titlecase(props.input.subagent_type ?? "unknown") + " Task"}). For category-only delegation,tool-execute-beforeforcessubagent_type = "sisyphus-junior"— so the header always reads "Sisyphus-Junior" regardless of the category. -
The category used to be discoverable only via the resolved model name. In earlier configs (omniroute-era), category→model mappings produced ids that contained the category name (
combo/unspecified-low/claude-sonnet-4-6, or literallyquick/deep/unspecified-highas the model id), so the TUI showed the category embedded in the model. After migrating categories to plain provider model ids (quick/unspecified-low/writing→deepseek-v4-flash, etc.), the model name no longer contains the category. Several categories even collapse to the same model as the defaultsisyphus-junioragent, so atask(category="quick")subagent is visually indistinguishable from a genuinely category-less delegation.
Steps to Reproduce
- Configure
categoriesin~/.omo/omo.jsonc(oroh-my-openagent.json) with plain model ids, e.g.:"categories": { "unspecified-high": { "model": "opencode-go/kimi-k2.7-code" }, "quick": { "model": "opencode-go/deepseek-v4-flash" } }, "agents": { "sisyphus-junior": { "model": "opencode-go/deepseek-v4-flash" } }
- Run a plan with Atlas as the executor.
- Observe the delegated subagents in the TUI: every one is labeled
Sisyphus-Junior(noquick/unspecified-high/deepindicator), even though Atlas passedcategory=in everytask()call.
Expected Behavior
The category used in task(category=...) should be visible in the TUI for the spawned subagent — e.g. in the task header (# Sisyphus-Junior (category: quick) Task), in the session title, or as a distinct label. Users should be able to tell at a glance which category-optimized model profile a delegation used, and to distinguish a categorized delegation from a category-less one (which currently resolves to the same display when the category model equals the default sisyphus-junior model).
Actual Behavior
The category is silently swallowed from the display. All delegated subagents show the same Sisyphus-Junior label; the category is only recoverable by inspecting the resolved model id, and even that no longer encodes the category after the config migration.
Configuration
// ~/.omo/omo.jsonc (unified config, migrations: 2026-07-opencode-config-unification, 2026-08-reasoning-unification)
{
"[opencode]": {
"agents": {
"atlas": { "model": "opencode-go/minimax-m3", "variant": "high" },
"sisyphus-junior": { "model": "opencode-go/deepseek-v4-flash", "reasoning": "high" }
},
"categories": {
"visual-engineering": { "model": "opencode-go/kimi-k2.7-code" },
"ultrabrain": { "model": "opencode-go/deepseek-v4-pro" },
"deep": { "model": "opencode-go/deepseek-v4-pro" },
"quick": { "model": "opencode-go/deepseek-v4-flash" },
"unspecified-low": { "model": "opencode-go/deepseek-v4-flash" },
"unspecified-high": { "model": "opencode-go/kimi-k2.7-code" },
"writing": { "model": "opencode-go/deepseek-v4-flash" }
}
}
}Related Issues
- fix(tool-execute-before): resolve subagent_type for TUI display #1810 — PR that fixed the "Unknown Task" header by always setting
subagent_type = "sisyphus-junior"for category delegation (the mechanism that hides the category today) - [Bug/Feature]: Status bar model display not synced with oh-my-openagent configuration #3516 — model display not synced with OMO config in the status bar (adjacent display-visibility issue)
- [Bug]: Retry guidance examples present 'general' as a valid task() category, causing orchestrators to bypass the category system and delegate to the generic 'general' agent #6730 — retry guidance suggests
category='general', causing orchestrators to bypass the category system entirely (also makes the category label wrong in the TUI) - task(category) should resolve to stack-local agents before permission checks #5986 / bug(team-mode): category members fail with "Agent Sisyphus-Junior not found" — SISYPHUS_JUNIOR_AGENT hardcodes default display name at import #6543 — category resolution / display-name hardcoding in the category spawn path
Suggested fix direction
Surface the resolved category in the subagent display: e.g. include (category: <name>) in the task header text next to the resolved subagent_type, or append it to the generated subagent session title (<description> (@Sisyphus-Junior · quick subagent)). This is display-only and does not change routing behavior.
Environment
- Operating System: macOS
- OpenCode Version: 1.18.x
- oh-my-openagent Version: 4.19.4
Activity