Files
magpie/internal
yetone 38247dee27 routing: no agent is marked in red, the colour of a failure (zhouatie on X)
zhouatie's Routing map showed an agent named OpenAI (asking for
antigravity/gemini-...) with a red dot before its name and a red dotted
wire from magpie to the seat that answered, and read it as something
wrong: "这个红色颜色,让人以为是状态异常". Nothing was wrong. The dot and
the wire are the agent's own colour (hueOf): an agent with no maker's
colour gets one of SPARE by a hash of its id, and "openai" hashed to rose
#e11d48. omp's #f43f5e was rose too. On this page red means a failure (an
answer ringed red, a failed request), so an agent marked in it reads as
one, and its failures couldn't be told from it either.

SPARE's rose is now teal #0d9488 and omp's is fuchsia #d946ef (omp's
icon is currentColor, so rose wasn't its maker's colour). Claude's clay
stays: Anthropic's own, read as orange, 13-14 degrees of OKLCH hue off
--red where the rose was 7-9. hueOf colours every place an agent is
marked (stage dot, wires, flier, request swatches, timeline marks, the
tray panel's stage), so the one palette covers them all.

routing-agent-hue-not-red.test.cjs checks every HUES and SPARE colour
against app.css's light and dark --red (OKLCH hue within 12 degrees with
chroma > 0.04 fails), and draws the reporter's case on the stage in the
dark theme, checking the agent's dot, --agent and the wires.

Run: the new test, Chromium and WebKit, en/zh/zh-TW/ja/de, 1100 and
420px: 21/21 pass; on the old routing.js 21/21 fail (rgb(225,29,72)).
Screenshots looked at (webkit zh 1100, chromium de 420): the OpenAI node's
dot and the dotted wire are teal. All routing-*/panel-routing* GUI tests
at concurrency 4: 818 pass, 2 fail, both routing-wb-restricted webkit
420px under load, already filed as #1905; that file passes alone (10/10)
and with five routing files at once. go test -tags nogui ./internal/gui
-run 'Asset|Routing' passes.
2026-10-13 12:07:01 +08:00
..
…
…