KKKKKKKEM (#1397): omp 18.x runs plan mode, images and the advisor on
roles of their own that don't follow the default model, and magpie
offered no way to set them; then, setting slow, they asked to set its
thinking level too (slow at high while sessions start at medium).
omp reads a role's thinking level off the end of its model, "model:level"
(splitThinkingSuffix / parseModelPattern in model-resolver.ts, with
:auto and :max allowed for role values). magpie now has:
- plan, vision and advisor beside subagents, smol and slow (all written
under modelRoles in ~/.omp/agent/config.yml as before);
- a "<role> thinking" field for each of them: the level rewrites the
role's value through the role's own Set, so magpie's provider prefix
and the stash are kept. Offered while the role is one model (auto,
off, minimal…max); a role left unset or set to a list says to pick its
model first, and an unknown level is refused. Unset, the role runs at
the session's level.
In the GUI the roles move into the tiers square ("roles") with each
role's level in its menu; unset roles say what omp does instead (the
advisor: the slow role's model, else omp's own pick). The same holds
for a named profile (omp#<name>) and omp in a WSL distro: ompAgent now
matches those ids, so their rows don't list the roles as loose fields.
New strings in zh, zh-TW, ja and de.
Tests:
- TestOmpRoleThinking (Go): level read and written for each role,
provider prefix kept, unset and list roles refused, unknown level
refused, clearing the level leaves the model.
- omp-roles.test.cjs: the roles square, a role's level picked and
written, and an omp#work profile row drawn the same way. Broken by
hand (ompAgent on the bare id), the profile case goes red.