Repository navigation
test(computers): isolate cursor handoff from revision recovery - #521
Merged
Merged
Conversation
This was referenced Nov 13, 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.
The native cursor-handoff test can overlap the five-second durable revision probe while its turn runs. Probe deadlines align to wall-clock intervals, so this can happen even during a short test. The gateway supervisor correctly opens a new
WatchThreadwhen the revision advances, but the test counted that new RPC's initial snapshot against the original subscription's native-event assertion. CI attempt 1 showsreason: "revision"immediately before the failure: https://github.com/itsoltech/canopy/actions/runs/42855632346/attempts/1.Observe a single home
WatchThreadover the real gateway link, wait for its initial delta against the committed mirror cursor, and then require both a completed turn and an advancedwatch_cursor. Liveness and coalescing stay enabled. Keep the native-event assertion and the prohibition on any further snapshot or delta, including across that revision heartbeat. The existing mirror-first/UI-checkpoint tests and the separate liveness suite retain coverage of routed reads and automatic recovery. Document this distinction indocs/linked-computers.md.This is a test race with intentional recovery, with no production or protocol change. PR #484 fixed the separate ended-stream readiness race in this file. PR #509's bot-list cache invalidations do not enter this thread revision path; the shared probe in #410 compares durable revisions against snapshot checkpoints even when native events arrived successfully.
Verification
reason: "revision"; the revised test passed with the same fast probe and liveness/coalescing enabled. The timing override was removed.bun install,bun run format,bun run typecheck,bun run lint,bun run format:check, andgit diff --checkpassed. Self-review covered the test boundary, cursor acknowledgement, native-event coverage, revision heartbeat, cancellation, and unchanged recovery behavior. No UI copy changed.All repeated file runs used
TMPDIR=/var/tmp bun run check:tmp tests/integration/thread-mirror-deltas.test.ts, one test process at a time. Broader unfiltered tests, generation checks, and the web build were not run under the workspace's focused verification limits. Based on latestdevat task start,7317c3bc6.Related: #484
Related: #410
Related: #509