Public: anyone can read this; the crew can change it.
Checks: the terminal app stops with its forge, and a red shard says what happened (#16446) #16449
Check · Review · Land · Live done — Landed and live in production.
Pulls went red with "shard N killed after 20 s" though no test failed: test/tui-forge-it.test.ts left the terminal app's frame timer running after its database closed, and it threw "Cannot use a closed database" in whichever file ran next, so the red followed the shard split.
shipped production is serving it deploy 3fede26
I opened the preview: / answers 200 with server-rendered HTML, so the app boots. The change is infrastructure with no page or picture of its own. The terminal loop now stops when the forge closes (until: forge.closing.signal). A red shard's line now says the error or signal and quotes the error in the ending. The summary regex still matches the old and new lines. Tests cover the new behaviour. I did not run the tests.
Two things I would do next:
- Drop the trailing blank line at the end of test/tui-stops-with-forge.test.ts.
- Remove the old
killed after N s, runningalternative in src/checks/summary.ts once logs written in that form have aged out. Today it leaves two accepted forms for one line.
Pulls went red with "shard N killed after ~20 s" though no test failed: test/tui-forge-it.test.ts left the terminal app's frame timer running after its database closed, and it threw "Cannot use a closed database" in whichever file ran next, so the red followed the shard split. The app now stops on the forge's closing signal before the database closes. The shard line says what happened (exit code or signal, the error between tests, the last file started) and quotes up to 24 lines of the error so the log tail always holds it.
🤖 Generated with Claude Code