Skip to content

ui-react: waiting update can stay blocked after staged track release #4477

Open

Description

@schlessera

Context

The unchanged real Chrome parallel-sessions fixture sometimes fails to reload after a staged track stops holding a waiting service-worker update. packages/ui-react/tests/parallel-sessions-runtime.test.ts:1544 reports the update reloads once the track is gone, expected true, received false. This affects the removed and sent variants on phone and desktop in a complete unit selection.

The same assertion reproduces at main 7e861bdb3 with main's own preload and hosted environment flags. The phone removed and sent cases both fail there. One earlier full-file main run passed, twelve isolated loaded repetitions passed, and a later nine-file selection reproduced the failures. The PR-head isolated full file also passed. The test and service-worker hook are unchanged by #4314. The exact underlying ordering cause is unresolved; this receipt establishes a baseline failure rather than a native-guard attribution.

Out of scope

Do not remove the hold, force a reload while work is staged, or weaken the exactly-one reload and no-dialog assertions. No native guard changes.

Scope

Determine which hold or update-registration state prevents the idle reload and make the responsible behavior deterministic.

Acceptance criteria

  • Keep the update pending while a staged track is held in another session.
  • Removing or sending the last track permits exactly one reload without a confirmation dialog.
  • Prove the failing ordering with state/transition evidence and a mutation.

Verification

Run the whole packages/ui-react/tests/parallel-sessions-runtime.test.ts under real Chrome, preserving main's own preload. The baseline failing selection also names file-request-ownership, github-details, graph-node-size-scale, handoff-lib, inbox-store, live-service-runtime, map-block and mermaid-content-renderer from the same directory. Bun determines execution order; the selection alone is not a claimed ordering proof. Use the unchanged line-1544 assertion as the receipt.

Found during #4314's full unit proof. Filed without a milestone; not fixed in that guard PR.

Reproduction status

needs: repro. The evidence is natural failure receipts on unmodified main (one nine-file selection at 7e861bdb3, phone removed and sent cases) beside passing controls (one full-file run, twelve isolated loaded repetitions, one PR-head full-file run). No command fails the line-1544 assertion on demand or at a recorded rate, so the scope's ordering question cannot yet be checked. Complete it with either a recorded command on unmodified main that fails the update reloads once the track is gone at a stated rate over a stated number of runs, or a controlled ordering gate that fails it deterministically, together with the hold and waiting-registration state captured at failure. Keep those receipts separate from passing controls (#2753's evidence rule).

Contract impact

None expected. Preserve staged-work containment and automatic update semantics.

2026-11-23 triage at main a3395c4: citations hold (assertion at packages/ui-react/tests/parallel-sessions-runtime.test.ts:1544). Added needs: repro (above) and attached to #2753, whose outcome covers real-Chrome Bun runtime suites failing without an attributed cause. No duplicate found.

Activity

  1. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    needs: reproBlocked on a reproduction.
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.needs: reproBlocked on a reproduction.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: fixSomething is broken and must behave the way it is documented.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions