Skip to main content

max / alloy

Wait on the erase modal's sentence, not on any modal's footer `enter confirm` is what every modal's footer reads, so matching it would be satisfied by a different modal appearing. On this screen the next keystroke erases a disk, so the wait names the thing it is waiting for.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-26 16:12 UTC
Signed with PGP, not checked
Commit: 1c2515e0fd9cb3c70f2503500ed20d0a3508e427
Parent: 3cd023a
1 file changed, +4 insertions, -1 deletion
@@ -184,7 +184,10 @@
184 184 # `enter install` and means it two keystrokes from now.
185 185 s.wait_for(r"step 6 of 6", 30)
186 186 s.send(ENTER)
187 - s.wait_for(r"(?i)erase|confirm", 30)
187 + # The modal's own sentence, not its footer. `enter confirm` is what any
188 + # modal's footer reads, so waiting on that would also be satisfied by a
189 + # different one — and on this screen the next Enter erases a disk.
190 + s.wait_for(r"Erase .* and install Alloy", 30)
188 191 s.send(ENTER)
189 192
190 193