Files
magpie/internal
yetone ec8fe29b89 routing: the row smart routing's intent chose says the intent where its allowance goes (joey_xue on Discord)
joey_xue (#feedback) asked that the Routing stage's row a smart-routing
decision picked say why, in the spot that shows the account's allowance
("剩余 90% · …"). When a group's rule by intent (the decision model's
answer, recorded in the trace as the rule's `intent "…"` condition, in the
group or a group in it) put the request's first where it is, that row now
says "picked for “<intent>”" in place of what it has left; while it
answers or once it answered it keeps saying so, the intent after it
("answered this request · picked for “complex”"). Resting, failed, passed
over and every other row, and a rule by no intent, read as before. No
gateway change: the trace already carries the rule step; nothing goes
upstream. New string in zh, zh-TW, ja, de (routing/i18n.js).

Run (Linux, WSL magpie-desktop, Playwright 1.62.0):
- routing-smart-intent.test.cjs, Chromium + WebKit, 5 languages, 1100 and
  390px: 40/40 ok. With client.js at the parent (BROWSER=chromium): 30 red
  ("the chosen row: {a: 20% used, b: 10% used}"), the 10 no-intent cases ok.
- Every GUI file that opens the Routing page (184) + i18n-keys, both
  engines, concurrency 6: 2421/2501 ok, 80 red in 28 files. Those 28
  rerun at concurrency 2 here: 61 red; the same 28 at the parent adc618bbf:
  63 red, the same tests (rule editor, drag, bodies, menu scroll,
  click-scroll …) give or take 5 flaky rule-editor cases each way. Filed
  as #4120/#4121 (WSL reds at main); i18n-keys ok.
- mote: go test ./internal/gui/ ok but TestMainWindowCorners (#3949, macOS
  27 AppKit, untouched). No Go files changed, so no gofmt/vet.
- Rebased on 2768f04f9: routing-smart-intent + i18n-keys, both engines: 44/44 ok.
Not tried: a real request through a real decision model in the app.
2026-10-29 19:51:41 +08:00
..
…
…
…
…
…
…