The provider editor mixes two kinds of control. An account's auto-switch,
a key's concurrency and spend pills and the Claude Code rows act at once
and say so in the status pill, while the rest waits for Save. Its Cancel
said Cancel either way, so after a switch that had already been made, it
read as if Cancel would take it back. The button now says Close while
the draft matches what is saved (providerDirty, the same check Cancel's
discard question asks), and Cancel once a field waits for Save. It is
read again after each input, change and click in the editor. A new
provider's editor keeps Cancel. Escape and the backdrop are unchanged.
Tests: six files that pressed the editor's Cancel on a clean editor press
its .ed-cancel now. lane-limit's draft-pill test brings the pill into
sight before opening its menu: under four files at once a scroll landing
after the click closed it (Chromium, 2 of 4).
Run (mote, at this tree):
- lane-limit.test.cjs: 24 pass.
- the 29 GUI files that press an editor's Cancel, Chromium and WebKit, four
at a time: 491 pass, 13 red. 12 are red on 68dd531c6 the same way
("Working only unpicks", "Try again takes the models unticked", #4392,
#4410). The other is login-import, Chromium en, once per run under the
four-way run, at a different line each time. It passed 3 of 3 alone, and
at 6x and 12x CPU throttling, here and on 68dd531c6. Already filed under
load: #5035, #5597.
- go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok.
Broken by hand: lane-limit against the old app.js, 8 of 24 red (no
Close, in the Relay and the Codex editor, both engines, en and zh).
Not tried: the real app window, and the whole GUI suite.