KKKKKKKEM (#1397, on v0.1.1164): plan, vision and advisor work on the
Mac, but the commit and tiny roles were still missing.
omp's own list of chat roles is CHAT_MODEL_ROLE_IDS in pi-tui's
overlays/model-browser.ts (read in the installed 18.6.1 and in 18.8.8 from
npm, the same list): default, smol, slow, vision, plan, commit, tiny,
memory, task, advisor. fc5dfa3c covered all but commit, tiny and memory;
this adds the three the same way (ompAt's role(), Quiet, a "<role>
thinking" field each, written under modelRoles in ~/.omp/agent/config.yml,
a value the user set off magpie stashed and put back on reset). omp's
other roles (KIND_ROLE_IDS: image, web, speech, dictation, judge) are for
kinds of model other than the chat models magpie writes for omp and are
left out.
In the GUI they join the roles square. Unset, each says what omp does
instead, from omp's source: commit and tiny take the smol role's model
(commit/model-selection.ts tries commit then smol; ROLE_CONFIGURED_FALLBACK
tiny → smol), memory the tiny role's, else smol's (memory → tiny). New
strings in zh, zh-TW, ja and de.
Tests:
- TestOmpEveryChatRole (Go): every chat role in omp's list is a field,
set to a magpie model and to a level; the user's own tiny role comes
back on reset. Red on the old omp.go (commit role: nil).
- omp-roles.test.cjs: the square lists commit, tiny and memory with their
unset notes, and commit's picker leads with "the smol role's model";
now in en, zh, ja and de, Chromium and WebKit, 1100px and 390px (16/16).
Red on the old app.js.
- i18n-keys, gui-ja, gui-de, gui-zh-tw pass; gofmt -l, GOOS=linux and
GOOS=windows go vet on internal/agent and internal/gui pass.
- go test -tags nogui ./... at load ~170: all packages pass except
internal/agent, gateway, library (10m timeouts) and gui
(TestOTelPreferencesAPI) and agent's TestCodexCustomProviderModelHasEfforts
/ TestPiAgentDir in one run each; rerun with -timeout 40m after the
rebase, internal/agent, internal/gui, internal/gateway and
internal/library all pass, and the two agent tests pass alone (-count=3).