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

Talk no longer lists, selects or routes to the captain on the web #18326

opened this

Green, waits for a review (no review yet), 8h 37m

The Captain is renamed to Routines, not deleted, so the issue's first checkbox is not met as written. bun x tsc --noEmit, bun scripts/design-lint.ts and the dead-code and duplicate-import tests are green. 106 tests across the nine talk, routine, palette and looks files I ran also pass.

Notes · 30 files · +265 −207

opened this

The Captain is renamed to Routines, not deleted, so the issue's first checkbox is not met as written. bun x tsc --noEmit, bun scripts/design-lint.ts and the dead-code and duplicate-import tests are green. 106 tests across the nine talk, routine, palette and looks files I ran also pass. I did not run the whole suite.

Why a rename. Talk's web code no longer mentions a captain, so the list, default selection and routes were already clear (part 1, #18322). What was left was /settings/captain, which holds the owner's memory rules, routines and watches. That page is the only place to edit them. src/crew/routines.ts and src/crew/watches.ts also post into a thread named "Captain", so deleting the files would have broken them.

What changed

  • /settings/captain is now /settings/routines, with its nav row, admin mark and lazy-list entries. The old URL answers 404; I did not add a redirect.
  • Renamed modules and callers, with routineThread replacing captainThread:
    • src/web/pages/captain.ts is now routines.ts.
    • src/crew/captain_thread.ts and captain_cost.ts are now routine_thread.ts and routine_cost.ts.
    • src/tui/screens/captain.ts is now routines.ts, so the terminal still matches the page.
  • The thread routines and watches post into is titled "Routines". A stored thread titled "Captain" is found and renamed in place, so no row is duplicated and no migration is touched.
  • docs/features/talk-captain.md is now talk-routines.md, and the three talk-captain* tests were renamed. Mentions in forge.json looks, the generated screens list and the design docs were updated.
  • The new test/routine-thread.test.ts has two tests:
    • A stored "Captain" thread is renamed, not duplicated.
    • No file under src/web, src/tui or src/http contains "captain". It fails without the rename.

Not done

  • The files in the issue's checkbox were renamed, not removed, because routines and watches still need them.
  • Nothing the Captain did was dropped, so there is nothing to move to an ordinary conversation.
  • Migrations still say Captain, as the issue asked. src/web/og/vendor/resvg.wasm also matches the word "captain", but it is a binary vendor file.

Try it: as the owner, open /settings/routines (cost, memory, routines, watches). Then open /talk and find the thread titled "Routines".

The pre-push hook demanded a Try: commit line, so the branch carries a second, empty commit for it.

🤖 Generated with Claude Code

Closes #18318

5 earlier comments · 1 event
commented

The Captain is renamed to Routines, not deleted, so the issue's first checkbox is not met as written. bun x tsc --noEmit, bun scripts/design-lint.ts and the dead-code and duplicate-import tests are green. 106 tests across the nine talk, routine, palette and looks files I ran also pass. I did not run the whole suite.

Why a rename. Talk's web code no longer mentions a captain, so the list, default selection and routes were already clear (part 1, #18322). What was left was /settings/captain, which holds the owner's memory rules, routines and watches. That page is the only place to edit them. src/crew/routines.ts and src/crew/watches.ts also post into a thread named "Captain", so deleting the files would have broken them.

What changed

  • /settings/captain is now /settings/routines, with its nav row, admin mark and lazy-list entries. The old URL answers 404; I did not add a redirect.
  • Renamed modules and callers, with routineThread replacing captainThread:
    • src/web/pages/captain.ts is now routines.ts.
    • src/crew/captain_thread.ts and captain_cost.ts are now routine_thread.ts and routine_cost.ts.
    • src/tui/screens/captain.ts is now routines.ts, so the terminal still matches the page.
  • The thread routines and watches post into is titled "Routines". A stored thread titled "Captain" is found and renamed in place, so no row is duplicated and no migration is touched.
  • docs/features/talk-captain.md is now talk-routines.md, and the three talk-captain* tests were renamed. Mentions in forge.json looks, the generated screens list and the design docs were updated.
  • The new test/routine-thread.test.ts has two tests:
    • A stored "Captain" thread is renamed, not duplicated.
    • No file under src/web, src/tui or src/http contains "captain". It fails without the rename.

Not done

  • The files in the issue's checkbox were renamed, not removed, because routines and watches still need them.
  • Nothing the Captain did was dropped, so there is nothing to move to an ordinary conversation.
  • Migrations still say Captain, as the issue asked. src/web/og/vendor/resvg.wasm also matches the word "captain", but it is a binary vendor file.

Try it: as the owner, open /settings/routines (cost, memory, routines, watches). Then open /talk and find the thread titled "Routines".

The pre-push hook demanded a Try: commit line, so the branch carries a second, empty commit for it.

🤖 Generated with Claude Code

commented

<!-- look-pages d6b7de047696 --> Look pages for d6b7de0, from the gate:

  • look pages (none): this pull changes src/web/pages/origins.ts, src/web/pages/captain.ts, src/web/pages/routines.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

The check failed because src/generated/screens.ts was stale after I renamed the terminal screen. I regenerated it with bun scripts/own-source.ts, committed it and pushed. test/own-source.test.ts now passes locally. I have not seen the forge's check run on the new push.

The description is otherwise unchanged. The Captain is renamed to Routines, not deleted, so the first checkbox is not met as written. The page and terminal screen now live at /settings/routines. A stored "Captain" thread is renamed in place, and migrations are untouched.

🤖 Generated with Claude Code

commented

I pushed an empty commit with the line Looks: /settings/routines. The look-pages gate asked for it because it could not trace which page the changed files serve. That page is the renamed settings page. No code changed, and I did not wait for the forge's check on the new push.

Nothing else changes. The Captain is renamed to Routines, not deleted, so the issue's first checkbox is still not met as written. I did this because routines and watches still post into that thread and the settings page is the only place to edit them.

Review block

[
  {"go": "/settings/routines", "look": "the owner's settings page: cost, memory rules, routines and watches", "expect": "the page and the settings nav say Routines, and the word Captain appears nowhere"},
  {"go": "/talk", "look": "the conversation list", "expect": "the thread routines post into is titled Routines; an older Captain thread has been renamed, not duplicated"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages 7a2c225f74a5 --> Look pages for 7a2c225, from the gate:

  • look pages (named): this pull changes src/web/pages/origins.ts, src/web/pages/captain.ts, src/web/pages/routines.ts; a commit names /settings/routines
the crew's run was interrupted: provider limit, resumes 00:52 UTC — every subscription this repository may use is resting (API Error: 402 This request requires more credits, or fewer max_tokens. You requested up to 128000 tokens, but can only afford 4000. To increase, visit https://)
commented

Parked, offered to the crew again: it sat 6 h with no push, so sentinel has it now (to review it). No verdict yet. Still parked 6 h from now, it is closed; the branch stays and Reopen restores it. (The forge posts this; nobody wrote it by hand.)

the crew's run was interrupted: provider limit, resumes 06:43 UTC — every subscription this repository may use is resting (API Error: 402 This request requires more credits, or fewer max_tokens. You requested up to 128000 tokens, but can only afford 4000. To increase, visit https://)
Sign in to join this conversation.

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

Keyboard shortcuts

Docs