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

Talk: remove the captain; Talk opens on the conversation I was in #18288

opened this in answer to

Green, waits for a review (no review yet), 9h 1m

Talk now opens on the conversation you were last in, and the Captain is removed from Talk. Not verified: the full suite, and the browser test with a sign-out and sign-in. tsc is clean and the files I ran pass, but the first run of the broader batch hit the sandbox timeout and I didn't check its result.

Notes · 60 files · +430 −2964

opened this

Talk now opens on the conversation you were last in, and the Captain is removed from Talk. Not verified: the full suite, and the browser test with a sign-out and sign-in. tsc is clean and the files I ran pass, but the first run of the broader batch hit the sandbox timeout and I didn't check its result.

Opens where you were

  • A new conversation_last table (one row per person) records the conversation you open, and openConversation prefers it. A refresh, a new tab or a new session lands there, even if another thread was written to afterwards.
  • Archived conversations are skipped. With no conversation at all, Talk opens a new empty one with the box focused.
  • The terminal and the API use the same function, so they follow.
  • test/talk-opens-where-left.test.ts checks the empty case, three reloads after a newer write elsewhere, and the archived case. It would fail without the change.
  • It is an HTTP test, not a browser one. A new session stands in for sign-out and sign-in, since the table is keyed on the person, not the session.

What the Captain did, and where it went

  • Memory rules: kept, as an ordinary Settings › Memory page at /settings/memory. The old /settings/captain page and its terminal screen are gone and now answer 404. The terminal screen is now Memory, with add, edit and delete.
  • Check-in, friends watch and morning paper routines: dropped. They only posted into the Captain thread, which no longer exists.
  • Watches and the talk_watch tool: dropped, because they could only wake the agent in that thread. Their confirm and ask entries, the tests and docs/features/talk-captain.md went too.
  • Cost line: dropped with the Captain page and terminal screen it was shown on.
  • Public /edition page: removed. It only reported when the morning paper last ran, so it would have said "none printed" for good.
  • Opening /talk: it no longer lands on the Captain. Existing Captain threads stay as ordinary conversations you can archive. The talk_routine and talk_watch tables are left in place so no data is dropped.
  • Cleanup: the ops_log helpers that only the check-in used are deleted, and so is the brief line about Captain posts.

Left for you

  • v1-probe's default "schedules ran in 24 h" line now answers UNKNOWN, since /edition is gone. --edition <url> still works. I recorded this in docs/OPERATING.md and did not rework the probe.
  • The gate flagged rememberOpened and requireOwner as similar to existing functions. I did not merge them.

To try it, open /talk, switch to another conversation, reload, and Talk opens on that one. Open /settings/memory as the owner.

Docs: talk-memory.md is new, talk-conversation-list.md and talk-voice.md are updated.

Closes #18252

Show 12 earlier items

7 earlier comments · 1 event
commented

<!-- look-pages a57061e4f28d --> Look pages for a57061e, from the gate:

  • look pages (named): this pull changes src/web/pages/memory.ts, src/web/pages/origins.ts, src/web/pages/talk.ts; a commit names /settings/memory
commented

Nothing here asks for a change. This is the same look-pages note as before, now stamped for a57061e.

  • Look pages: the note is informational. The rule wants a commit line Looks: <path> naming a page in app.looks. Commit 451a752 on this branch already has Looks: /settings/memory and Looks: /talk, and both paths are in forge.json app.looks and looksAsOwner. The merge of main didn't change the pages, so the note is still satisfied.
  • Recurring refusals: the dead-code, duplicate-import and job-timing tests passed on this branch earlier, and the merge from main only touched test/talk-preview-frame.test.ts. The commit subject has the issue number: "Direction: … (#18252)".

I pushed nothing new.

commented

I merged main into the branch and pushed it. The merge conflicted only in src/generated/marks.ts.

I resolved it by regenerating the file with bun scripts/own-source.ts rather than merging by hand. git merged the other files that changed on both sides (src/http/lazy_lists.ts, src/http/marks/settings.json, src/http/settings_routes.ts) without conflict.

  • Run: bun x tsc --noEmit is clean, and test/own-source.test.ts passes, which is the test that fails when the generated file is stale.
  • Not run: the wider suite. scripts/fast.ts exited 2 ("forge.json changed; the diff is not bounded"), so it named no tests for me to run. The forge will run the full check on this push.
commented

<!-- look-pages 5e822149a021 --> Look pages for 5e82214, from the gate:

  • look pages (named): this pull changes src/web/pages/memory.ts, src/web/pages/origins.ts, src/web/pages/talk.ts; a commit names /settings/memory
commented

Nothing to change: the gate has no failures, and the pull's commits name the issue as (#18252). The four rules the check refuses most often all pass here. I didn't push, since there was no change to push.

The "look pages" comment only says that this pull touches src/web/pages/memory.ts, origins.ts and talk.ts, and that a commit names /settings/memory. It's a notice, not a failure.

I ran bun scripts/gate.ts and it read 39 rules with 0 failures. That includes:

  • dead code: every export under src/ has a caller, or is allowed
  • no duplicate import beyond the allowlist
  • every job run under during is timed or named in UNTIMED
  • every page has a terminal door

The gate printed three notes. I left all three alone:

  • Comment width: 8 files have a comment line over 100 columns, none in the pages this pull changes. The gate says the nightly rewrap handles them on main.
  • Similar functions: it flags rememberOpened as 0.84 like notePasskeyUsed, and requireOwner in memory.ts as 0.82 like requireAdmin. These are different checks on different data, so I did not merge them.

I did not rerun bun x tsc --noEmit or the wider suite. The last merge ran tsc clean, and the forge runs the full check on every push.

To look at the pages, open /talk and /settings/memory on the preview at https://lab--18288--forge-trevato-apps.open-platform.sh.

commented

I merged main into the branch and pushed it. bun x tsc --noEmit is clean. The two test files I ran, test/talk-opens-where-left.test.ts and test/talk-preview-frame.test.ts, give 11 pass, 3 skip and 0 fail. The 3 skipped are the chromium frame tests, which can't start a browser in this sandbox. I did not run the rest of the suite. The forge runs the full check on the push.

main had added its own "Talk opens on the conversation you last visited" (#18317, talk_place) while this branch added the same thing with a conversation_last table. I kept main's mechanism and dropped mine.

  • Conflicts: in src/core/conversations.ts, src/web/pages/talk.ts and test/talk-preview-frame.test.ts I took main's side.
  • Dropped from this branch: rememberOpened, the conversation_last migration and its pin file.
  • Doc fix: docs/features/talk-conversation-list.md now points at talk_place instead of conversation_last.
  • Kept: the rest of the Captain removal, and test/talk-opens-where-left.test.ts, which passes against main's mechanism.
commented

<!-- look-pages efc3e081408e --> Look pages for efc3e08, from the gate:

  • look pages (named): this pull changes src/web/pages/memory.ts, src/web/pages/origins.ts; a commit names /settings/memory
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 juniper 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