agent: a field label with no TUI Chinese fails internal/agent's tests
A new agent field's label with no entry in internal/tui's zh map left TestEveryWordHasZh red on main twice (e9fcc6229on 11-15 for "permission mode",618bfc1a9on 11-17 for "subagent pool"), each by a change that ran internal/agent but not internal/tui. TestEveryFieldLabelHasTUIZh reads tui's i18n.go and keepAsIs (tui imports agent) and fails in the package such a change runs. LESSONS and the code standards' criterion 3 name it. Run: on mote, go test ./internal/agent: ok (250s). The new test on Linux (wsl-run) and Windows (win-run): ok. gofmt -l: clean. Broken by hand: with "subagent pool" taken out of i18n.go, red ("kimi's field \"subagent_pool\" (label \"subagent pool\") has no Chinese").
This commit is contained in:
@@ -77,7 +77,8 @@ listed as not run, never left out.
|
||||
A guard that keeps being missed gets a twin in the package the change
|
||||
runs: internal/gui's TestEveryRouteIsNamedForTheCLI for a new route,
|
||||
internal/agent's TestEveryAgentNamedForTheLibrary for a new agent
|
||||
(red on main four times before it, last at 00b2c11a6, 11-17).
|
||||
(red on main four times before it, last at 00b2c11a6, 11-17), and
|
||||
its TestEveryFieldLabelHasTUIZh for a new field's label (618bfc1a9).
|
||||
A change under `site/public/docs` ends with `node llms-full.mjs` and
|
||||
`node search-index.mjs` in site/, then `node --test site/*.test.mjs`
|
||||
from the repo root: both files are built from those pages and
|
||||
|
||||
Reference in New Issue
Block a user