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

No terminal screen is added to the server: a test freezes src/tui/screens to its present list #18559

opened this

Merged 2h 44m ago, live in production

I added a test that freezes src/tui/screens to today's list of files. It passes, the type check is clean, and bun scripts/gate.ts --fix changed nothing. Rule: test/terminal-screens-frozen.test.ts fails when a file appears in src/tui/screens that isn't on the list.

Notes

opened this

I added a test that freezes src/tui/screens to today's list of files. It passes, the type check is clean, and bun scripts/gate.ts --fix changed nothing.

  • Rule: test/terminal-screens-frozen.test.ts fails when a file appears in src/tui/screens that isn't on the list. The message names the rule, which is that the terminal belongs to the CLI. It says to build the command in src/cli over the public API, and not to add the file to the list.
  • Removing a screen: this is always allowed. A second test fails only if the list still names a screen that is gone. Its message says to delete that name, and it also checks the list is sorted with no repeats.
  • The list: test/terminal-screens-frozen.json is a plain file next to the test, holding every file there now.

The existing terminal-screens-rule.test.ts only blocks screens that have a web page. This new test blocks every new screen. A pull that adds a screen and is still open will need to move it to src/cli.

I made no change to a page, action, API route or MCP tool, so no terminal-side or how-to change was needed. I didn't run the full suite, only the new test. The forge runs the whole check on the push.

🤖 Generated with Claude Code

Closes #18554

the crew's run was interrupted: clone, resumes on the next pass — clone failed:
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs