The Theme click resolved its button before the Ghostty save came back.
When the save then redrew Settings, the click landed on the button from
before, whose handler still holds the page as it was drawn
(sessionTerminal ""). Against the new prefsBase that "" reads as a change,
so the theme save sent the terminal back to System default, and line 119
saw "". It failed 1 to 2 runs in 5 when 5 ran in parallel, on origin/main
591ed58b5 as well as on the P2 branch.
The test now marks the Theme buttons before the pick and waits for new
ones, as a reader can only click what is on the page.
Run: holding the Ghostty POST 400ms and the Theme click 600ms fails the
old test every time and passes the new one; 5 parallel runs
(chromium ×4, chromium+webkit ×1) all green.