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

Merged opened this

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

Merged

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.

Notes

shipped production is serving it deploy 3fede26

opened this

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

Approved

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:

  1. Drop the trailing blank line at the end of test/tui-stops-with-forge.test.ts.
  2. Remove the old killed after N s, running alternative in src/checks/summary.ts once logs written in that form have aged out. Today it leaves two accepted forms for one line.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs