Repository navigation
Say when a turn is running on the computer that holds a chat - #2375
Merged
Merged
Conversation
A chat row's `running` status only meant another computer held the chat open. Now the holder tells the relay whether a turn is running there: - The seal watch's turn start and end reach the sync drive. The batcher beats as soon as the state changes, and its tick skips a beat only when the directory already has the current flag. - A beat carries `working` only to a relay that answers Codeaf-Working-Beats: 1. The lease keeps it through publishes, and an acquire or a release clears it. The Go relay and the hosted relay both keep it and advertise it. - Chat rows carry `working` (hello: chats.working), and home says "working on <device>" while a turn runs there. PROTOCOL.md, the manual page and a change entry say the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Another computer reads "not working" as "take it now", and a take that names the save point before the turn's own publish is refused as superseded. Found live: Bring here when it finishes failed with "another device continued this chat first". Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
|
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.
A chat's
runningstatus only meant that another computer held the chat open. Nothing said whether a turn was actually running there, so home saidheld on <device>either way and the desktop app couldn't tell "open there" from "working there". Now the holder says so in its beat.What changes
internal/cellsync): the seal watch's turn start and end reach the batcher through the sync drive (SealWatch.OnTurnStart/OnTurnEnd→liveDrive.Working→Batcher.Working). The batcher beats as soon as the state changes. A tick skips its beat only when the directory already has the current flag.internal/directory,internal/clusterstate):Beat.Working, sent only to a relay that answersCodeaf-Working-Beats: 1, because older relays decode strictly.Lease.Workingis kept through publishes (a turn publishes as it goes) and cleared by an acquire or a release.handler.go,rules.go) and the hosted relay (relay/hosted/src/rules.js,identity.js). Every member of a relay cluster must run a build that keeps the flag before any member advertises it.chatlist.Row.Working(running rows only), appChatRow.working, andhelloadvertiseschats.working. Home saysworking on <device>.continuing-a-chat-on-another-computer.md) and a change entry say the same.It is display only:
agents.takedoes not consult it.Tests
TestBatcherBeatsWhenATurnStartsOrEnds,TestLeaseKeepsWorkingUntilTheNextBeatReleaseOrAcquire,TestHTTPBeatWorkingOnlyWhereAdvertised, and aworking oncase inTestStatusLineCopy. Hosted: a lease test checking that a beat which flips the flag is a change even while a socket vouches for the hold, that a publish keeps the flag, and that a release clears it.go testfor clusterstate, directory, chatlist, appwire and cellsync passes, and the manual gate passes. The hosted relay'snpm testran 253 of 253.cellstorefails 3 furrow-build tests identically on the base.🤖 Generated with Claude Code