Public: anyone can read this; the crew can change it.
Full suite red: test/tui-agents.test.ts #12919
Check · Review · Land · Live done — Landed and live in production.
Two tests in test/tui-agents.test.ts went over the 2 s budget. They now run faster, and the file's total time dropped from 9.3 s to 3.9 s. I did not time each test on its own, so I haven't confirmed both are under 2 s, and I did not run the --rerun-each 10 reproduction.
shipped production is serving it deploy c36cfce
Clean one-line test fix. clear() now sends all backspaces in one press() call, which dispatches every key and settles once; press is variadic in this file harness. Same behaviour, 12 fewer settles per clear, so it is faster and less flaky. No production code, no security surface, no new dependency, no README change. Fits the pipeline-first direction of fast tests that never flake.
Two tests in
test/tui-agents.test.tswent over the 2 s budget. They now run faster, and the file's total time dropped from 9.3 s to 3.9 s. I did not time each test on its own, so I haven't confirmed both are under 2 s, and I did not run the--rerun-each 10reproduction.Cause: the
clearhelper pressed backspace once per character and waited for the terminal to settle after every press. Clearing a 60-character brief meant 60 settles. The budget-refusal test did the same for three bad values.Change:
clearnow sends all its backspaces in a singlepresscall, so there is one settle per clear. Only the helper changed; the tests and their assertions are untouched, and the app code is not affected.Checks: all 9 tests in the file pass,
bun scripts/gate.tsis clean, andbun x tsc --noEmitis clean. I did not run the full suite; the forge runs it on the push.Not done: I did not add the file to
SLOWinscripts/gate.ts, since the tests are now fast enough without it.Closes #12909