[Bug]: OpenCode -> Native migration drops metis/momus agent models silently; Native plan agents fall back to builtin chains

Author: code-yeongyuCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbug

Summary

A user moving from the OpenCode edition to OmO Native can lose their per-agent model settings without any notice. Native's builtin agents then fall back to their builtin chains, which is how a Native plan-consultant ended up on a gateway model in #9146. #9146 fixes the routing itself; this issue covers the migration gap that let it happen.

What happens today

  • omo setup (since #8846, fixing #8816) reads the OpenCode edition's agents.* and carries over only the agents whose names Native also uses. For every other name it prints omo has no agent of that name ...; route that work through a category instead (packages/omo-native/bin/lib/setup-opencode-models.js:206-214).
  • The OpenCode edition's plan agents have different names from their Native counterparts: metis (pre-planning consultant) and momus (plan reviewer) versus Native's plan-consultant and plan-reviewer. Setup does not map them, so a model the user chose for metis/momus is reported as unmappable instead of carried to the Native agent that does the same job.
  • The startup config migration (runSenpiStartupMigration, group 2026-07-opencode-config-unification) moves legacy OpenCode-edition files into the [opencode] harness block. A user who never runs omo setup gets no message at all: their [opencode] agents.* exist, Native ignores them, and the Native builtin agents silently run their builtin chains.

Expected (ideal state)

  • Setup maps OpenCode-edition agent names to the Native agent that does the same work (metis -> plan-consultant, momus -> plan-reviewer, and any other equivalent pair), with the user's consent like the other carried choices.
  • When a Native session starts and the user's config holds [opencode] agents.<name> model settings that no [native]/shared agent setting replaces, the user sees ONE notice naming those agents and the Native keys to set (or the omo setup command that offers to carry them). A name with no Native counterpart gets the existing "route through a category" hint.
  • omo doctor reports the same gap.

Acceptance criteria

  • omo setup over an OpenCode-edition config with agents.metis.model / agents.momus.model offers them as plan-consultant / plan-reviewer models.
  • A Native session whose config only has [opencode] agent model settings shows one notice listing them; nothing is shown once the Native equivalents are set.
  • omo doctor prints the same gap line.

Related

  • #9146: the routing leak this gap exposed (builtin chains falling through to a gateway).
  • #8816 / #8846: omo setup carrying OpenCode model choices.
  • #8818: omo doctor migration awareness.

Source: code-yeongyu/oh-my-openagent