You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reconnect coalescing drops repeated writes and acknowledges changes the host never applied #928
Priority: P1. Reproduced at commit 6c7a6fbe on 2026-09-05.
In the web client, queued writes are deduplicated like polling reads. An offline true → false → true settings sequence reaches the host as only true → false, while all three callers resolve successfully.
Reproduction
Authenticate createWireCoder against a fake socket, then disconnect.
Invoke settings.set({notifications:true}), settings.set({notifications:false}), settings.set({notifications:true}) while offline.
Reconnect and acknowledge the outgoing requests.
Only two settings:set requests were sent; the final host value is false. The three promises return true, false, true.
Cause
src/wireClient.ts:65 flushQueue groups every request by JSON.stringify([channel,args]), including mutations. The last true write borrows the first write's reply despite an intervening false write. This affects mutation semantics, not just visual refresh.
Acceptance
Preserve every queued mutation and its order, including repeated arguments separated by another write.
Restrict coalescing to explicitly safe read requests; retain bounded queues/timeouts.
Cover true/false/true writes and repeated safe polling in one transport regression test.
Related closed #130 introduced reconnect coalescing to reduce polling stampedes. This is a distinct correctness defect in that behavior.
Source: wireClient.ts.
Runnable audit evidence
Local artifact: docs/issue-drafts/2026-09-05-recovery-reproduce.mjs.
Exited 0 with six CONFIRMED assertions. This is an audit harness asserting existing defects, not passing regression tests for fixes. The artifact is in the audit checkout, not yet committed; the steps above stand alone.
Requested disposition: separate Planboard issue, plan:todo.
Activity
Stop coalescing queued writes on reconnect (#928) (#1651)
Stop coalescing queued writes on reconnect (#928)