[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'sagents.*and carries over only the agents whose names Native also uses. For every other name it printsomo 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) andmomus(plan reviewer) versus Native'splan-consultantandplan-reviewer. Setup does not map them, so a model the user chose formetis/momusis reported as unmappable instead of carried to the Native agent that does the same job. - The startup config migration (
runSenpiStartupMigration, group2026-07-opencode-config-unification) moves legacy OpenCode-edition files into the[opencode]harness block. A user who never runsomo setupgets 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 theomo setupcommand that offers to carry them). A name with no Native counterpart gets the existing "route through a category" hint. omo doctorreports the same gap.
Acceptance criteria
-
omo setupover an OpenCode-edition config withagents.metis.model/agents.momus.modeloffers them asplan-consultant/plan-reviewermodels. - 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 doctorprints the same gap line.
Related
- #9146: the routing leak this gap exposed (builtin chains falling through to a gateway).
- #8816 / #8846:
omo setupcarrying OpenCode model choices. - #8818:
omo doctormigration awareness.
Source: code-yeongyu/oh-my-openagent