Files
magpie/internal/gui/assets/plugins
yetone a9b1877cfc routing: a session's name stays when a later poll answers without it (#5365)
refreshOtherNames deleted a name the page had whenever a poll of
/api/gateway/session-titles came back without it, so a read that failed
or ran late (ZCode's database busy or slow, Flandern1211's report) put the
card back to its folder until a later poll named it again. An answer
without a name is unknown, not a session that lost its name: the page now
only takes new names in. 226fc8ea3 makes ZCode's poll fast; this is the
"names that vanish" half of #5365, which that commit leaves alone.

Co-authored-by: Flandern1211 <163982805+Flandern1211@users.noreply.github.com>

Run (mote, via mote-run):
- node --test internal/gui/tests/routing-session-name-kept.test.cjs
  (new; Chromium and WebKit, all five languages, 1100 and 420): 20 pass.
  With client.js at origin/main: red, the card reads "Claude Code ·
  work/zc" after a poll without the name.
- go test ./internal/gui (budgets, i18n guards): ok but
  TestMainWindowCorners/macOS_26_SDK, #3949.

- node --test on the 8 GUI files that fake session-titles
  (claude-subagent-tag, routing-by-key, -credits, -moved-why,
  -request-metrics, -session-folder, -session-title, -sessions) and
  i18n-keys: 185 pass, 1 fail, i18n-keys "a plugin's words are its own"
  on two words in files untouched here (#5332, #5327).

Not tried: the whole GUI suite (one routing file changed by four lines,
no new strings, no new API call).
2026-11-05 17:53:42 +08:00
..