Repository navigation
chat: message a chat working on another computer; it waits in the queue there - #2408
Merged
Merged
Conversation
…eue there The sender seals the message into its own device record's outbox; the computer holding the chat queues it after the current turn and lists the id in its record's took, and the sender drops it. chats.send is the app door, and rows carry notes with waiting and delivered states. Relays advertise Codeaf-Chat-Notes: 1 and the client never writes the new fields to one that does not. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
santoshkumarradha
force-pushed
the
feat/message-elsewhere
branch
from
November 5, 2026 16:19
3f9795a to
1644333
Compare
This was referenced Nov 5, 2026
santoshkumarradha
added a commit
that referenced
this pull request
Nov 5, 2026
…t's relay cell (#2422) * Revert "manual: the desktop composer's destination chip (#2420)" This reverts commit 046003e. * Revert "chat: message a chat working on another computer; it waits in the queue there (#2408)" This reverts commit ba629a3. * Revert "Say when a turn is running on the computer that holds a chat (#2375)" This reverts commit 8200ddb.
santoshkumarradha
added a commit
that referenced
this pull request
Nov 5, 2026
…at, destination chip (#2425) * Revert "Revert #2420, #2408 and #2375: a second computer writes to a held chat's relay cell (#2422)" This reverts commit 9316d94. * chats: guard the note goroutines and count only other computers' writes on a held cell The re-land of #2375, #2408 and #2420 after #2422. Both note goroutines now run through guard.Go, and the held-chat drive test no longer counts the holder's own heartbeat (cellsync's socketMoved renewal when the second window re-dials the watch socket) as another computer writing to its cell. Co-Authored-By: Claude Opus 5.5 <[email protected]> * changes: entry for the re-land (#2425) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A chat that is open or working on another computer now takes messages. Each message goes into that chat's queue on the holding computer and runs after the current turn. The chat stays where it is.
chats.sendseals the message into this device's own directory record underoutbox. The row lists it undernotesaswaitingand later asdelivered.agents.queuewith client idnote:<id>. It then lists the id undertookin its own record, and the sender drops the message.Codeaf-Chat-Notes: 1. A client never writesoutbox/tookto a relay that doesn't advertise it. The hosted relay capsoutboxat 8 andtookat 64.Stacked on #2375 (working flag). The desktop side is codeaf-desk #196.
Proof
internal/syncsetup/notes_test.go(round-trip and refusals).cmd/codeaf/app_notes_test.go(wire: waiting → delivered, outbox drained).relay/hosted/test/lease.test.jscaps.desktop-sync.Sending to caf-b, thenDelivered to caf-babout 4 s later.0e7e4be Add MIT LICENSE.Manual
desktop-sync.mdhas a new section, "Send a message to a chat working on another computer". It covers the composer lines, the limits and refusal sentences quoted exactly, and the wait-for-the-turn behavior of Continue here. The old claim "There is no automatic retry" is corrected.🤖 Generated with Claude Code