Repository navigation
Revert #2420, #2408 and #2375: a second computer writes to a held chat's relay cell - #2422
Merged
Merged
Conversation
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 changes
This reverts #2420, #2408 and #2375, in that order. All three merged without a gate run, and app/v3 has failed two checks since they landed.
TestTheFreshChatBesideAHeldOneWorksOnItsOwnSeat(cmd/codeaf,heldchat_drive_test.go:392) fails every run with:A follow-up diagnosis found that the counted write is the holding computer renewing its own lease (
internal/cellsync/batch.go:590, throughsocketMoved), not the second computer. The test counts every write to the held cell, so Say when a turn is running on the computer that holds a chat #2375's timing change brought that renewal inside the test's count. The test fails either way. The test passes on 06c72bf and starts failing at Say when a turn is running on the computer that holds a chat #2375 (8200ddb), which added the "working" heartbeat to the sync batcher. Fixing the test's attribution belongs in the re-land, which the owner reviews.TestEveryGoroutineInTheGuardedTreeIsGuardedfails because chat: message a chat working on another computer; it waits in the queue there #2408 added two goroutines without the panic guard.#2408 and #2420 build on #2375, so all three go together. After this revert, app/v3's tree is byte-identical to 06c72bf, which passed the full merge-train gate.
The three changes should come back as one re-land, with the held-chat write fixed and the goroutines guarded.
Tests
TestTheFreshChatBesideAHeldOneWorksOnItsOwnSeatpasses on 06c72bf.internal/guardpasses on 06c72bf.🤖 Generated with Claude Code