Skip to content

Revert #2420, #2408 and #2375: a second computer writes to a held chat's relay cell - #2422

Merged
santoshkumarradha merged 3 commits into
app/v3from
c27/revert-2375
Nov 5, 2026
Merged

santoshkumarradha merged 3 commits into
app/v3from
c27/revert-2375

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

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.

  1. TestTheFreshChatBesideAHeldOneWorksOnItsOwnSeat (cmd/codeaf, heldchat_drive_test.go:392) fails every run with:

    P2 made 1 writes to P1's relay cell; want 0

    A follow-up diagnosis found that the counted write is the holding computer renewing its own lease (internal/cellsync/batch.go:590, through socketMoved), 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.

  2. TestEveryGoroutineInTheGuardedTreeIsGuarded fails 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

  • The tree equals 06c72bf, which passed the full gate.
  • TestTheFreshChatBesideAHeldOneWorksOnItsOwnSeat passes on 06c72bf.
  • internal/guard passes on 06c72bf.

🤖 Generated with Claude Code

@santoshkumarradha
santoshkumarradha merged commit 9316d94 into app/v3 Nov 5, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the c27/revert-2375 branch November 5, 2026 18:26
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant