Repository navigation
fix(desk): recover phone wake and unseen command receipts - #128
Merged
Merged
Conversation
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Detect suspended JavaScript by wall clock rather than buffered frame freshness. Fence stale socket generations, resnapshot on wake, and preserve healthy short tab switches. Persist only browser-owned unseen command nonces and reconcile real hub outcomes after a fresh page. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Keep the snapshot-delay tests active while time advances; fastForward models JavaScript suspension and correctly triggers the new wake reconnect. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
After RPC freshness expires, use a completed join replay to distinguish recovered command ops from missing outcomes. Show an honest terminal fallback for unseen browser ownership without re-executing; preserve live RPCs, queued starts, and late real ends. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Deduplicate each connection's recovered nonces by the newest saved timestamp covered, instead of a page-global boolean. Later recovered batches and other projects still get a visible post-freshness replay without periodic polling. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Restore the three transcript paths to master. Preserve the ongoing scroll work on desk-transcript-free-scroll for separate review and desktop verification; keep wake, unseen receipts, and active-timer fixture changes in this PR. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Distinguish waiting for the newest nonce's freshness bound from waiting for page visibility, so the grace regression proves both constraints independently. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Record aggregate snapshot behavior in real and fake producers and the separate post-snapshot delta burst exposure without claiming production latency from the synthetic fixture. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Reset fake subscription generation after closing the original page. Pause the reopened-start case at the last chunk before turn-end, then verify the real terminal row and command end arrive live without an unrelated bulk-stream workload. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
This was referenced Oct 23, 2026
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.
Why
The owner's home-screen phone app remained around sentence 426 after waking during a 1,000-sentence reply, kept
/color orangequeued despite its real row-confirmed outcome, then lost the receipt on reopen. The separately observed streaming-scroll problem is now tracked on its own branch/PR because it touches shared desktop virtualizer behavior.Changes
Command outcome unavailable · may not have run; check the session. A bounded visible-only rejoin observes fresh restored batches without re-executing commands; live RPCs and real op receipts always win.Verification
Ran · Session color set to: orange · confirmed by its rowreceipt.fc5697e51721798dc5f75828201f657e60118784: static, all four unit shards, and e2e:desk-web. Green run 39873504020. The coordinator ownse2e:desk-web-huband independent review.CDP frozen→active did not resume even a trivial empty page in the installed headless system Chrome. That unusable harness result supplies no app evidence; it is logged in MAWS #92. Browser proof uses the authorized offline transport path, with wall-clock/iOS buffered-frame ordering tested separately. The physical iPhone lock/unlock re-check remains for the owner's post-deploy walk. Scroll/momentum acceptance belongs to the separate transcript change, not this PR.
Separate latency observation: a synchronous post-join burst of 574 live chunks delayed receipt visibility past five seconds in both engines. Initial snapshots aggregate prior chunks on both real and fake paths; however, the real plane can accumulate and individually drain post-snapshot deltas too. This is not dismissed as fake-only exposure or claimed as a production measurement. The Decision Log records the follow-up; the receipt test isolates a restored start followed by live terminal events.
No sminos change, merge, deployment, or real-hub call.
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)