Conversation
…e disconnected marker last Follow-ups from the Ark0N#506 review. The live-frame queue opened before the fetch, freezing Pane B for the whole round trip. It now opens beside capturedAt; the request uses the shared terminal fetch deadline and the body read a 10 s one. A {t:'r'} refresh queued behind a pull ran its clear() after the disconnected marker was written and wiped it, and a close during a refresh load wrote the marker above the replay. The marker is now an owed flag (_markerOwed) that each load settles in its own finally. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Follow-ups from the #506 review.
capturedAt. Frames from before it are replaced by the capture's\x1bcor written unchanged, so the final buffer is the same. The request uses the primary pane'sCodemanFetchDeadlinebudget, and the body read gets 10 s once headers land, since that is the only window that holds live output.{t:'r'}refresh queued behind a pull ran itsclear()after the marker was written and wiped it. A close during a refresh load also wrote the marker above the replay. The marker is now an owed flag (_markerOwed) that each load settles in its ownfinally, so it is the last thing on screen however the close, the pull and a trailing refresh interleave.Two related items in one PR because they share the marker/queue state machine; happy to split if preferred.
Testing: unit tests drive each ordering. Checked in real Chrome against a beta instance with a delayed pull, old code vs new:
docs/architecture-invariants.mdupdated.🤖 Generated with Claude Code