Files
magpie/docs
JoeyWu-tech 6f0e40572c gui tests: a plugin's words are its own when said as words (#3897)
yetone (#3897): i18n-keys' "a plugin's words are its own" is red on main
since 7f827b3b0, with 'plugins/library/i18n.js "Runs as":
internal/cli/claude_code_cli.go says it too'. claude_code_cli.go doesn't
say Library's "Runs as": 7f827b3b0's comment "// fetchClaudeRuns asks
the gateway at base for its Claude Code runs" holds it, across a
function's name and the next word, and the check took a key found
anywhere in a file's text, inside a longer word too, as said there.
internal/gateway/claude_runs_test.go's "listClaudeRuns asks" holds it
as well.

The check now counts a plugin's word where it stands as words: a
letter, digit or _ just before a key that starts with one, or just
after a key that ends with one, makes it part of a longer word. A key
said in a string, a comment or markup counts as before, and goes back
to i18n.js. docs/subsystems/plugin-runtime.md says so.

What was run (tree 26d67096, on origin/main e056779a, Node 22.22.1):
- i18n-keys (Node's test runner, no browser) at e056779a, twice: "a
  plugin's words are its own" red with #3897's line, the other three
  tests ok. Here, 6 runs: 4 of 4 each.
- Broken by hand in claude_code_cli.go, a line added and then removed:
  - "// Runs as the gateway asks.", the key said as words: red, with
    'plugins/library/i18n.js "Runs as": internal/cli/claude_code_cli.go
    says it too'.
  - "// fetchClaudeRuns as the gateway asks." and "// Runs asks the
    gateway.", the key glued to a longer word before it or after it:
    4 of 4.
- No Go file is changed and no other test reads this file, so the Go
  suite was not run for it.

Taken from JoeyWu-tech's patch on #3897 (fd49dcc0f; the format-patch
sha256 matches the one posted there), cherry-picked as is onto origin/main
7dcc0aedc. Run again on mote at that head: i18n-keys 4 of 4; with
"// Runs as the gateway asks." added to claude_code_cli.go by hand, red
with #3897's line.
2026-10-28 12:01:47 +08:00
..