Skip to content

[Bug]: task(category=...) category is invisible in TUI — delegated subagents always labeled "Sisyphus-Junior", making it look like the orchestrator skipped the category #6854

Closed

Description

@itokun99

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

  1. TUI label comes from subagent_type, not category. Per PR fix(tool-execute-before): resolve subagent_type for TUI display #1810, the OpenCode TUI renders the task header from input.subagent_type (title={"# " + Locale.titlecase(props.input.subagent_type ?? "unknown") + " Task"}). For category-only delegation, tool-execute-before forces subagent_type = "sisyphus-junior" — so the header always reads "Sisyphus-Junior" regardless of the category.

  2. 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 literally quick / deep / unspecified-high as 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 default sisyphus-junior agent, so a task(category="quick") subagent is visually indistinguishable from a genuinely category-less delegation.

Steps to Reproduce

  1. Configure categories in ~/.omo/omo.jsonc (or oh-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" } }
  2. Run a plan with Atlas as the executor.
  3. Observe the delegated subagents in the TUI: every one is labeled Sisyphus-Junior (no quick / unspecified-high / deep indicator), even though Atlas passed category= in every task() 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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions