The retry ported from Fldicoahkiin's 165e33d89 (the commit before this)
reran a case only when the helper said "showed no prompt". The "banner,
no /usage panel" case, added after that fix was written, can be cut off
one step later on a loaded machine: Claude Code is up, "/usage" is
typed, and the deadline comes before the banner is drawn again. The
helper then says "hadn't drawn /usage's panel in the 6s …: ❯ /usage",
the right words with none of the case's screen, and the case failed.
With FAKE_SLOW_START=3500ms it was red 2 runs of 2 at the ported commit.
A case with a screen of its own now runs again, with twice the time up
to 12s, whenever that screen isn't in what the helper said; a case with
none (no prompt, no /usage panel) as before, on "showed no prompt". One
whose screen is there with the wrong words still fails at once.
Ran at this head (origin/main 3173c4f41 + 165e33d89 + this), on mote:
- go test -count=1 ./internal/claudetui: ok (195s)
- FAKE_SLOW_START=3500ms go test -count=3 -run
TestShimEndsAtItsCallersDeadline: ok (203s)
- wsl-run: the test, and again with FAKE_SLOW_START=3500ms: ok
- gofmt -l internal/claudetui: clean
The full go test ./... at 30de93e9e had this test red (no_/usage_panel,
"nothing on its screen (0 bytes read)"), the shape #5429 names.
Broken by hand: the retry capped at 3s, with FAKE_SLOW_START=3500ms:
all 7 cases red; restored, green.
Not tried: Windows (the test needs a pty).