ppBruce (v0.1.1290): in a routing group's editor "once a rule is added
there is no delete button, and a rule with empty conditions can't be
saved". Two causes:
- The rule's ⋯, the only way to Remove rule (and move a rule), was
opacity 0 unless the row was hovered or focused (538753a7a, chosen "as
the usage rows'", not an owner call). Nobody found it, and on touch
there is no hover. It is now always drawn, in the icons' quiet grey.
- A rule whose only condition was toggled off (the reporter's 带图片)
is refused on Save; provider.cleanRules refuses it too ("it needs a
condition"), so refusing stays. But the refusal was a footer pill that
cleared in 3.5s and named no way out. Save now marks every bare rule:
a line under it (.rt-rneed, until it has a condition again) and the
status line say "Rule {n} has no condition. Add one with its +, or
remove the rule from its ⋯ menu", the first bare rule's + takes the
keyboard (no scroll), and nothing is posted. A pause rule says the same
for hours, days, agents or folders. zh/zh-TW/ja/de in i18n.js; the
two old strings are gone, and routing-pause(-folder) expect the new
wording.
Test: routing-rule-remove.test.cjs, Chromium and WebKit, en zh zh-TW ja
de, 1100 and 390px, with the reporter's group (one "has an image" rule to
Deepseek-V4.1-Flash, WorkBuddy AI): the ⋯ is opaque, visible, inside the
editor and topmost with the pointer elsewhere; mouse and keyboard (Tab,
Option-Tab in WebKit, Enter, ArrowUp, Enter) remove the rule and Save
posts rules: []; the bare rule's line and status, focus on its +, no
post, nothing past the editor, no sideways scroll; its condition back on,
the line goes and Save posts the rule. 20/20, three repeat runs 20/20.
On the old assets (ASSETS=) 0/20: "the rule's ⋯ is there without
hovering", opacity '0'.
Run:
- gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows ok;
builds ok.
- go test -timeout 45m ./...: 63 ok, internal/agent timed out at 45m
under load (~400, the GUI suite beside it; the running test 5s in);
alone: ok 1878s.
- GUI suite, both engines: run under load ~400. My change's files
pass alone: routing-rule-remove 20/20,
routing-pause 14/14, routing-pause-folder 20/20, routing-rules-line
20/20, routing-intent-entry 8/8, i18n-keys, gui-zh-tw, gui-ja, gui-de
3/3 each. The full run: 11064 pass, 111 fail, none in the routing
editor's files.
Reds outside routing's editor, each red the same alone on origin/main
c3b2e6109 and already filed: codex-predictions #2624, lightweight
#2638, name-suffix-no-names #1937, routing-bodies and
routing-keys-fold #2658, routing-model-rest #2115, quota-count-wrap and
quota-name-translated #2228, provider-advanced-fold #2552, segs-glide
#2683. routing-request-metrics' Cost item
(#2571) fails the same on main alone. The rest of the 111 were not
rerun one by one at that load.