Skip to content

test(web): the move-thread family specs no longer race the parent link - #995

Merged
badcuban merged 1 commit into
mainfrom
fix/move-thread-tests-timeout
Nov 18, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/move-thread-tests-timeout

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Two move-thread browser specs failed in the merge queue for #994: "moves a family as one group" and "groups one computer's moves under Allow all".

The family spec raced the parent link. The fake shell stream in ChatView.browser-harness.tsx dropped each thread's family fields (parentThreadId, attachedToParent, parentTurnId, handedBackAt, handedBackTurnId), though the real server's shell carries them. A child only learned its parent about 160ms later, from another stream. The Move threads dialog fixes its families when it opens, so on a slow runner it opened first and left the children unticked. toShellThread now passes those fields through, so the app knows the family from the first snapshot.

The Allow all spec was collateral. The Move threads dialog keeps its open state in a module store, and the per-spec reset never closed it. After the family spec failed with the dialog open, the dialog reopened over the next mounts and covered the Allow all button. The reset now closes it like the other dialogs.

Checked: a temporary probe showed the child's parent link went from "set 161ms in" to "set at mount". The full web browser suite passes (1109 tests), and so do fmt, lint and typecheck.

The fake shell stream in the ChatView browser harness dropped each
thread's family fields (parentThreadId, attachedToParent and the rest),
though the real server's shell carries them. A child learned its parent
only ~160ms later from another stream. The Move threads dialog fixes its
families when it opens, so on a slow runner the dialog could open first
and leave the children unticked ("moves a family as one group" failed
in the merge queue for #994).

The harness now also left the Move threads dialog open across specs: its
open state lives in a module store the per-spec reset never closed. After
the family spec failed with it open, it reopened over the next mounts
and blocked the Allow all click in "groups one computer's moves".

toShellThread now passes the family fields through, and the per-spec
reset closes the Move threads dialog like the other dialogs.
@badcuban
badcuban enabled auto-merge November 18, 2026 18:08
@vercel

vercel Bot commented Nov 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 18, 2026 6:08pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit a46f409 Nov 18, 2026
24 checks passed
@badcuban
badcuban deleted the fix/move-thread-tests-timeout branch November 18, 2026 18:19

This branch was previously deployed

1 inactive deployment
Preview — afa8288a Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant