Repository navigation
Description
Context
The real Chrome parallel-sessions fixture intermittently sends a new-chat message that the scripted host never observes. At main 7e861bdb3 with main's own preload, packages/ui-react/tests/parallel-sessions-runtime.test.ts:1321 fails the host holds the first message unnamed, expected true, received false. The desktop per-session draft case had just called the fixture's newChat and send helpers (lines 533 and 539). A complete unit selection at #4314 also observed a missing new active session after the same helper path at line 872. These are recorded as related symptoms, not a proven common cause.
An isolated full-file main run passed, and an isolated PR-head run passed. A later main nine-file browser selection reproduced the line-1321 failure. The test body is unchanged by #4314. The underlying composer readiness, dispatch or observation ordering has not been established.
Out of scope
Do not retry the send silently, remove the host observation assertion or alter the product's send authority. No native guard changes.
Scope
Determine whether the fixture dispatches before the current composer's readiness or whether the product loses an admitted send; fix the responsible layer.
Acceptance criteria
- A send after New chat reaches the intended host gate exactly once.
- Preserve the unnamed-session, independent draft and refused-save assertions.
- Add a controlled ordering proof with a mutation; no sleep-based concealment.
Verification
Run the real Chrome packages/ui-react/tests/parallel-sessions-runtime.test.ts with main's preload, including its per-session draft cases and the sequence of waiting sessions. Preserve the failure at line 1321 as baseline evidence. The observed additional selection included eight other existing ui-react test files; execution-order attribution remains open.
Found during #4314's full unit proof. Filed without a milestone; not fixed in that guard PR.
Reproduction status
needs: repro. The evidence is one natural failure on unmodified main (a nine-file selection at 7e861bdb3, line 1321) and the related line-872 symptom at the #4314 head, beside passing isolated full-file runs on main and the PR head. No command fails the host holds the first message unnamed on demand or at a recorded rate. Complete it with either a recorded command on unmodified main that fails line 1321 at a stated rate over a stated number of runs, or a controlled ordering gate (for example holding composer readiness or the dispatch) that fails it deterministically, plus the composer, dispatch and host-gate state captured at failure. Keep those receipts separate from passing controls (#2753's evidence rule).
Contract impact
None expected. Preserve exactly-once send and draft ownership behavior.
2026-11-23 triage at main a3395c4: citations hold (newChat and send helpers at packages/ui-react/tests/parallel-sessions-runtime.test.ts:533 and :539, assertions at lines 872 and 1321). Since 7e861bdb3, #4444 added send-timing instrumentation to packages/ui-react/src/components/chat/composer.tsx (noteTurnSend); it records times and does not change dispatch, so the reproduction SHA remains comparable. 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