Repository navigation
fix(ui-react): keep tracker recovery from repeating announcements - #3980
Merged
Merged
Conversation
schlessera
marked this pull request as ready for review
November 11, 2026 11:00
This was referenced Nov 11, 2026
Closed
schlessera
added a commit
that referenced
this pull request
Nov 16, 2026
…case (#3414) (#4058) Under load, B's recovery read after its failure was sometimes still in flight when the 390-phone case fast-forwarded the page clock 2:05. The fake clock also runs the read's `AbortSignal.timeout`, so the read aborted, B went `can't check`, and the next read's same failure was announced a second time. #3980 fixed the announcer; this makes the condition a step of the case instead of something only load produces. B's recovery reads are held from just before its failure until the fast-forward has turned B `can't check`, then answered, and the case waits for B to read `failed` again. Every assertion and deadline is unchanged. With the #3980 guard removed the case now fails at "a ticking age announces nothing" with the duplicate announcement. Refs #3414 Co-authored-by: Claude Opus 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.
Refs #3973
Refs #3414
What changed
A completed, failed or waiting tracker is no longer announced again when a recovery read briefly becomes unavailable or unknown and the next read repeats the same state. The announcer keeps its established baseline through that gap, and removes an unwatched-work marker when its tracker disappears. Genuine new states and turns still announce; the existing first settled unavailable baseline behavior is preserved.
Why this shape
D52 requires each work-state change to announce once. Unread observations describe the ability to check the work, rather than a new work transition. This adapts the established-baseline behavior already implemented in #3437 to current main, with a real browser recovery regression and marker-lifecycle coverage. #3414 retains its remaining stacked parallel-session qualification.
Proof
Head
5cf9cad26bc40492378976940ce449d46ac92532; base40dbae0a2f332eb20c52c2a967611894ca30d289.RECOVERY_DOES_NOT_REANNOUNCE_OLD_COMPLETION: expected an empty live region, receivedThe voyage home is done.The test establishes a completed baseline after reload, injects a 503 at the browser request boundary, then recovers through the real host. Covered Chat cannot mark the tracker seen; recovery starts no work.bun run test packages/ui-react/tests/tracker-announcer.test.ts packages/ui-react/tests/tracker-store.test.ts packages/ui-react/tests/trackers.test.ts packages/ui-react/tests/tracker-runtime.test.ts: 124 passed / 449 assertions, including all original 12 browser cells and the added case. Browser proof uses version-matched Bun 1.4.2 and real Google Chrome 156.0.8078.79.RECOVERY_DOES_NOT_REPEAT_COMPLETION; removing marker cleanup failsDISCARDED_TRACKER_STARTS_AS_A_BASELINE. Both exact restored controls pass, including the first unavailable baseline compatibility control.bun run check:pr --base origin/main: all five gates passed, 804 fast-invariant tests. Complete pending changeset plan validates.{"version":1,"kind":"brain-check-pr-receipt","head":"5cf9cad26bc40492378976940ce449d46ac92532","base":"origin/main","mode":"focused","startedAt":"2026-11-11T10:50:51.713Z","finishedAt":"2026-11-11T10:52:58.300Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":15835.352661},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":190.624284000005},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":88.52319600000192},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":17.02997999999934},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":110436.96874399998}]}Checklist
Anything left open
Incident #3973 remains open until a main run covering its failed set passes. #3414 and its existing stack retain their remaining qualification; this PR references that work without closing it. PR #3979 independently adds the runtime fixture's free-space prerequisite, which must be retained during any later refresh. The separate #3977 safety-target fix and #3662 chat feature remain pending their own confirmation.