Skip to content

feat: a room moves with its agents - #981

Merged
badcuban merged 2 commits into
mainfrom
feat/move-step4b-rooms
Nov 18, 2026
Merged

badcuban merged 2 commits into
mainfrom
feat/move-step4b-rooms

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

A thread with several agents (a room) couldn't move to another computer. This is the first of three parts of step 4b. The plan is docs/design/fleet.md Part 3f, written by Fable and reviewed by Sol, and it's included here.

What it does

  • Who comes along. Each room agent with a match on the other computer comes: the same driver, with that model or the driver's default. It brings its own native session where the driver allows. The move dialog has a row per agent: pick its agent there, or leave it out.
  • Who doesn't. An agent with no match, or one you leave out, arrives as having left. Both computers say which and why. Queued messages for it arrive written into the chat, not sent.
  • What each agent knows. Each one is caught up on exactly what its own session never saw: the full conversation when its session didn't come or won't reopen, and only the later room replies when it did.
  • The stop. It covers every side answer and ends the agents' chain. While a move waits, the room's queued hand-offs keep draining, so "Move when it's done" can finish.
  • Outside-assistant limits (outsideWork marks) now travel with a move. Before, an agent that outside text had reached could arrive without its limits, even in a one-agent thread.

Safety

  • Every agent arrives behind the moved-thread fence.
  • Carried queued messages never carry a sentFrom stamp (the fix(server): a moved thread's fence lifts only for a message a person sent from the app #979 rule is kept).
  • The receiver refuses unknown agents, more than 16, and agent instances it doesn't have.
  • New behavior is gated by the moveRooms and moveOutsideWork capabilities. Everything new is an optional field, with a decode test using the old schemas.
  • The lead chat is still refused.

Checks

  • Outside review of the plan (5 findings), then of the diff (4 findings, no security holes). All fixed, with tests that fail without the fix.
  • Live test on two local servers with fake agents: a room of three moved. Two arrived, the third (no match) arrived as having left, with words at both ends, and the room kept working there.
  • fmt, lint, typecheck; server 4,044 (replays included), web unit 3,261, move browser spec 18, shared 672, contracts 113, desktop 397.

Not checked: a real Claude or Codex resume of a room agent's carried session, since only fake agents ran.

Step 4b, first part (docs/design/fleet.md, Part 3f, planned by Fable and reviewed by Sol). A thread with several agents can now move: each agent with a match on the other computer comes along with its own session where the driver allows, the others arrive as having left with words on both ends, and each agent is caught up on exactly what it never saw. The move's stop covers every side answer and the agents' chain, queued hand-offs drain while the move waits, outside-assistant marks travel with it, and every agent arrives behind the moved-thread fence. Includes the step 4b plan.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 17, 2026 9:55pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 36eaf53 Nov 18, 2026
24 checks passed
@badcuban
badcuban deleted the feat/move-step4b-rooms branch November 18, 2026 03:17
badcuban added a commit that referenced this pull request Nov 18, 2026
Step 4b, second part (docs/design/fleet.md, Part 3f). A parent moves with its family: ids derived on the receiving side from a family key and each member's source thread, checkouts first then threads parent-first, children waiting off the import slots, shared folders kept shared with guest markers derived on arrival, children left behind becoming their own threads, and children on another computer staying where they are. Rebuilt on main after #981; migration renumbered to 119.

This branch was previously deployed

1 inactive deployment
Preview — 919ae488 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant