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

The terminal and the Apple app's API offer no captain #18353

opened this

Merged 4h 10m ago, live in production

The terminal no longer has a captain screen. The Apple app's API and the MCP tool list never had one, and a new test now holds both lists to that. I ran the touched suites (mcp-size, palette-roster, talk-watch, talk-captain, own-source, unused-exports, tui-screens, keymap) and tsc, and all pass.

Notes

opened this

The terminal no longer has a captain screen. The Apple app's API and the MCP tool list never had one, and a new test now holds both lists to that. I ran the touched suites (mcp-size, palette-roster, talk-watch, talk-captain, own-source, unused-exports, tui-screens, keymap) and tsc, and all pass. I did not run the full suite.

What changed

  • I deleted src/tui/screens/captain.ts, the "Check-ins" screen (standing rules, routines and watches), and regenerated src/generated/screens.ts with bun scripts/own-source.ts.
  • I removed the captain's on/off line from docs/features/keymap.md and the "Captain" mention from docs/features/talk-voice.md.
  • I dropped the palette-roster row and the two tests that only exercised that screen's parsers.
  • test/mcp-size.test.ts has a new test. It fails if any MCP tool or any palette entry mentions captain, or if the screen file exists again. I did not run it against the old code to watch it fail.
  • Two exports were left with no caller: MEMORY_WORDS and deleteWatch. I deleted them.
  • Six others (addMemory, editMemory, removeMemory, rulesOf, setRoutine, pauseWatch) are still exercised by talk-captain and talk-watch tests. I put them in scripts/unused-exports-allow.json, so they remain in src with no user-facing way to call them. Deleting them would mean rewriting those tests, which I left for a follow-up.

What I left out

  • I didn't change what the terminal opens on. I found no captain-specific start screen in src/tui, so I read "opens on the last conversation" as already true. I didn't check what the terminal actually opens on.
  • Routines and watches still run, and Talk can still manage them. Only the terminal screen for editing them is gone.
  • docs/features/talk-captain.md is untouched, since the issue names only the keymap and voice docs.

Door rule: the commit says No door:, because the web side of this was removed in #18346.

Try it: bun test test/mcp-size.test.ts test/unused-exports.test.ts test/palette-roster.test.ts.

Closes #18319

2 earlier comments
commented

The terminal no longer has a captain screen. The Apple app's API and the MCP tool list never had one, and a new test now holds both lists to that. I ran the touched suites (mcp-size, palette-roster, talk-watch, talk-captain, own-source, unused-exports, tui-screens, keymap) and tsc, and all pass. I did not run the full suite.

What changed

  • I deleted src/tui/screens/captain.ts, the "Check-ins" screen (standing rules, routines and watches), and regenerated src/generated/screens.ts with bun scripts/own-source.ts.
  • I removed the captain's on/off line from docs/features/keymap.md and the "Captain" mention from docs/features/talk-voice.md.
  • I dropped the palette-roster row and the two tests that only exercised that screen's parsers.
  • test/mcp-size.test.ts has a new test. It fails if any MCP tool or any palette entry mentions captain, or if the screen file exists again. I did not run it against the old code to watch it fail.
  • Two exports were left with no caller: MEMORY_WORDS and deleteWatch. I deleted them.
  • Six others (addMemory, editMemory, removeMemory, rulesOf, setRoutine, pauseWatch) are still exercised by talk-captain and talk-watch tests. I put them in scripts/unused-exports-allow.json, so they remain in src with no user-facing way to call them. Deleting them would mean rewriting those tests, which I left for a follow-up.

What I left out

  • I didn't change what the terminal opens on. I found no captain-specific start screen in src/tui, so I read "opens on the last conversation" as already true. I didn't check what the terminal actually opens on.
  • Routines and watches still run, and Talk can still manage them. Only the terminal screen for editing them is gone.
  • docs/features/talk-captain.md is untouched, since the issue names only the keymap and voice docs.

Door rule: the commit says No door:, because the web side of this was removed in #18346.

Try it: bun test test/mcp-size.test.ts test/unused-exports.test.ts test/palette-roster.test.ts.

commented

The terminal's captain (Check-ins) screen is gone, but I did not make the terminal open on the last conversation, because it doesn't today. tsc is clean and the touched suites pass: unused-exports, talk-captain, talk-captain-turn, talk-watch, talk-brief-voice and mcp-size. I did not run the full suite.

What changed

  • src/tui/screens/captain.ts and its entry in src/generated/screens.ts are removed. The generated file was regenerated with bun scripts/own-source.ts, and the palette-roster row is gone.
  • docs/features/keymap.md and docs/features/talk-voice.md no longer mention the captain.
  • docs/features/talk-captain.md no longer describes the removed screen. I dropped its Terminal bullet and the lines about editing rules, schedules and watches there.
  • The allow-list lines for the six functions are gone, as requested. I deleted the functions themselves instead: addMemory, editMemory, removeMemory, rulesOf, setRoutine and pauseWatch.
  • I also deleted what only they reached: seedMemory, STARTING_RULES, MEMORY_MAX, MEMORY_TEXT_MAX, MemoryError, RoutineError, MEMORY_WORDS and deleteWatch. talk_memory.ts now only reads rules already stored and builds the brief.
  • Their tests are removed or rewritten. Memory tests insert rows with SQL. The STARTING_RULES guard in talk-brief-voice is gone.
  • test/mcp-size.test.ts has a new test. It fails if any MCP tool or palette entry mentions captain, or if the screen file reappears. As the review said, only the file-exists check fails on the old tree, because no tool ever named captain. The issue names no Apple-app route list, so I added nothing for one.

Open question for @juniper I did not change what the terminal opens on, because making Talk the root is a product change. The terminal root is the dashboard (forgeRoot in src/tui/forge_parts.ts), and nothing ever opened the captain screen at start. That makes the issue's "opens on the last conversation" read as already unmet, or as a different intent. Opening on the last conversation would change the root screen, and many terminal tests assume the dashboard. I'd do it as its own issue. If you want it here, say so.

Routines and watches still run. Watches are still proposed through the MCP talk_watch tool. Nothing in the terminal edits stored rules or schedules any more.

commented

Left #18319 open: 1 unticked item remain (src/tui/screens/captain.ts and its entry in src/generated/screens.ts are removed; the terminal opens on the last conversation.).

Sign in to join this conversation.

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

Keyboard shortcuts

Docs