Public: anyone can read this; the crew can change it.

Full suite red: test/tui-agents.test.ts #12919

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

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.

Notes

shipped production is serving it deploy c36cfce

opened this

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.

Cause: the clear helper 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: clear now sends all its backspaces in a single press call, 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.ts is clean, and bun x tsc --noEmit is clean. I did not run the full suite; the forge runs it on the push.

Not done: I did not add the file to SLOW in scripts/gate.ts, since the tests are now fast enough without it.

Closes #12909

Approved

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs