# ✗ A mounted PR stops idle linked-thread reads and receives another client's unlink

`scenarios/linked-threads-push.e2e.ts` · target `web` · failed · 1m 21s

Ran on: browser `chromium 156.0.8078.4` · user agent `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/156.0.8078.4 Safari/537.36`

**ASSERTION_FAILED**

```text
expected 3 to be 0
```

Look at: `scenarios/linked-threads-push.e2e.ts:112`  

## Steps

1. ✓ `browser.addInitScript` `source` (2ms, video 0:05) — `scenarios/linked-threads-push.e2e.ts:10`
2. ✓ `browser.emulateMedia` `colorScheme: dark` (2ms, video 0:05) — `scenarios/linked-threads-push.e2e.ts:19`
3. ✓ `app.open` `<pairing credential omitted>` (280ms, video 0:05) — `scenarios/t3.ts:131`
   - screen: 3 nodes at `<pairing credential omitted>`
4. ✓ `browser.waitForURL` `/\/draft\//` (8.6s, video 0:05) — `scenarios/linked-threads-push.e2e.ts:21`
   - ℹ console: `%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold (at /node_modules/.vite/deps/client-BbKUKddU.js?v=c8b4a0e4:15558)`
   - ↪ navigated to <pairing credential omitted>
   - ↪ navigated to /pair
   - ↪ navigated to /
   - ↪ navigated to /
   - ℹ console: `%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold (at /node_modules/.vite/deps/client-BbKUKddU.js?v=c8b4a0e4:15558)`
   - ↪ navigated to /draft/0eda07bc-8a84-4c53-b465-3f642ddf6841
5. ✓ `browser.evaluate` (948ms, video 0:14) — `scenarios/linked-threads-push.e2e.ts:22`
6. ✓ `app.open` `/pull-requests?repository=pingdotgg%2Ft3code&number=35865&selectedUrl=https%3A%2F%2Fgithub.com%2Fpingdotgg%2Ft3code%2Fpull%2F35865&selectedProjectId=fdd32dd0-7640-46d8-b5d4-6245e396a1ad&selectedEnvironmentId=9f66662b-c1f7-4d39-8a95-586b100…` (125ms, video 0:15) — `scenarios/linked-threads-push.e2e.ts:33`
   - screen: unchanged since step 3 at `/pull-requests?repository=pingdotgg%2Ft3code&number=35865&selectedUrl=https%3A%2F%2Fgithub.com%2Fpingdotgg%2Ft3code%2Fpull%2F35865&selectedProjectId=fdd32dd0-7640-46d8-b5d4-6245e396a1ad&selectedEnvironmentId=9f66662b-c1f7-4d39-8a95-586b100…`
7. ✓ `locator.tap` `getByRole("button", name: "Linked from 2 threads")` (4.3s, video 0:15) — `scenarios/linked-threads-push.e2e.ts:34`
   - tap button "Linked from 2 threads" (appeared after 3945ms) (4.3s)
   - ℹ console: `%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold (at /node_modules/.vite/deps/client-BbKUKddU.js?v=c8b4a0e4:15558)`
   - ↪ navigated to /pull-requests?repository=pingdotgg%2Ft3code&number=35865&selectedUrl=https%3A%2F%2Fgithub.com%2Fpingdotgg%2Ft3code%2Fpull%2F35865&selectedProjectId=fdd32dd0-7640-46d8-b5d4-6245e396a1ad&selectedEnvironmentId=9f66662b-c1f7-4d39-8a95-586b1004cefc&selectedHost=github…
   - ↪ navigated to /pull-requests?involvement=all&state=open&repository=pingdotgg%2Ft3code&number=35865&selectedHost=github.com&selectedProjectId=fdd32dd0-7640-46d8-b5d4-6245e396a1ad&selectedEnvironmentId=9f66662b-c1f7-4d39-8a95-586b1004cefc
   - ⚠ console warning: `[legend-list] recycleItems was not provided, so it defaults to false. Set recycleItems explicitly to true for better performance with recycling-aware rows, or false to preserve remount-on-reuse behavior. (at /node_modules/.vite/deps/@legendapp_list_react.js?v=5866ecdd:480)`
   - screen: 17 changes since step 6 at `/pull-requests?involvement=all&state=open&repository=pingdotgg%2Ft3code&number=35865&selectedHost=github.com&selectedProjectId=fdd32dd0-7640-46d8-b5d4-6245e396a1ad&selectedEnvironmentId=9f66662b-c1f7-4d39-8a95-586b1004cefc`, 16 nodes
     - `added dialog "Command palette" testid="command-palette"`
     - `added combobox "Search commands, projects, and threads..." value="https://github.com/pingdotgg/t3code/pull/35865" [expanded]`
     - `added listbox`
     - `added presentation text="Threads"`
     - `added option "Newer linked thread Linked thread"`
     - `added text="Newer linked thread"`
     - `added text="Linked thread"`
     - `added option "Earlier linked thread Linked thread"`
     - `added text="Earlier linked thread"`
     - `added text="Linked thread"`
     - `added text="Navigate"`
     - `added text="Enter"`
     - 5 more
8. ✓ `browser.keyboard.press` `Escape` (147ms, video 0:19) — `scenarios/linked-threads-push.e2e.ts:35`
9. ✓ `browser.keyboard.press` `Tab` (18ms, video 0:20) — `scenarios/linked-threads-push.e2e.ts:36`
10. ✓ `browser.mouse.move` (47ms, video 0:20) — `scenarios/linked-threads-push.e2e.ts:37`
11. ✓ `browser.evaluate` (45ms, video 0:20) — `scenarios/linked-threads-push.e2e.ts:38`
12. ✓ `browser.evaluate` (19ms, video 0:20) — `scenarios/linked-threads-push.e2e.ts:39`
13. ✓ `browser.evaluate` (11.0s, video 0:20) — `scenarios/linked-threads-push.e2e.ts:46`
   - ↪ frame "clientB" loaded /
   - ↪ frame "clientB" loaded /
   - ↪ frame "clientB" loaded /draft/0eda07bc-8a84-4c53-b465-3f642ddf6841
14. ✓ `browser.evaluate` (11.0s, video 0:31) — `scenarios/linked-threads-push.e2e.ts:46`
15. ✓ `browser.evaluate` (11.0s, video 0:42) — `scenarios/linked-threads-push.e2e.ts:46`
16. ✓ `browser.evaluate` (4ms, video 0:53) — `scenarios/linked-threads-push.e2e.ts:47`
17. ✓ `app.screenshot` `33-seconds-idle` (133ms, video 0:53) — `scenarios/linked-threads-push.e2e.ts:48`
   - [screenshot](capture artifact) [capture artifact]
18. ✓ `browser.evaluate` (7ms, video 0:53) — `scenarios/linked-threads-push.e2e.ts:49`
19. ✓ `browser.evaluate` (1.0s, video 0:53) — `scenarios/linked-threads-push.e2e.ts:50`
20. ✓ `app.screenshot` `one-second-after-unlink` (97ms, video 0:54) — `scenarios/linked-threads-push.e2e.ts:61`
   - [screenshot](capture artifact) [capture artifact]
21. ✓ `browser.evaluate` (5ms, video 0:54) — `scenarios/linked-threads-push.e2e.ts:62`
22. ✓ `browser.evaluate` (1.5s, video 0:54) — `scenarios/linked-threads-push.e2e.ts:63`
23. ✓ `browser.evaluate` (1.0s, video 0:59) — `scenarios/linked-threads-push.e2e.ts:75`
24. ✓ `app.screenshot` `concurrent-turn-refresh-volume` (110ms, video 1:00) — `scenarios/linked-threads-push.e2e.ts:76`
   - [screenshot](capture artifact) [capture artifact]
25. ✓ `browser.evaluate` (7ms, video 1:00) — `scenarios/linked-threads-push.e2e.ts:77`
26. ✓ `browser.evaluate` (6.0s, video 1:00) — `scenarios/linked-threads-push.e2e.ts:80`
   - ✗ network error: `POST /api/observability/v1/traces 502 Bad Gateway`
   - ✗ network error: `GET /.well-known/t3/environment 502 Bad Gateway`
   - ✗ network error: `GET /.well-known/t3/environment 502 Bad Gateway`
   - ✗ network error: `POST /api/observability/v1/traces 502 Bad Gateway`
   - ✗ network error: `POST /api/observability/v1/traces 502 Bad Gateway`
   - ✗ network error: `POST /api/observability/v1/traces 502 Bad Gateway`
   - ✗ network error: `POST /api/observability/v1/traces 503 Service Unavailable`
27. ✓ `browser.evaluate` (215ms, video 1:06) — `scenarios/linked-threads-push.e2e.ts:81`
28. ✓ `locator.tap` `getByRole("button", name: "Linked from 2 threads")` (620ms, video 1:06) — `scenarios/linked-threads-push.e2e.ts:91`
   - tap button "Linked from 2 threads" (620ms)
   - screen: unchanged since step 7 at `/pull-requests?involvement=all&state=open&repository=pingdotgg%2Ft3code&number=35865&selectedHost=github.com&selectedProjectId=fdd32dd0-7640-46d8-b5d4-6245e396a1ad&selectedEnvironmentId=9f66662b-c1f7-4d39-8a95-586b1004cefc`
29. ✓ `browser.mouse.move` (49ms, video 1:07) — `scenarios/linked-threads-push.e2e.ts:92`
30. ✓ `browser.evaluate` (5ms, video 1:07) — `scenarios/linked-threads-push.e2e.ts:93`
31. ✓ `app.screenshot` `restart-visits-before-pin` (202ms, video 1:07) — `scenarios/linked-threads-push.e2e.ts:94`
   - [screenshot](capture artifact) [capture artifact]
32. ✓ `browser.keyboard.press` `Escape` (66ms, video 1:07) — `scenarios/linked-threads-push.e2e.ts:95`
33. ✓ `browser.evaluate` (48ms, video 1:07) — `scenarios/linked-threads-push.e2e.ts:96`
34. ✓ `browser.evaluate` (11.1s, video 1:07) — `scenarios/linked-threads-push.e2e.ts:97`
35. ✓ `locator.tap` `getByRole("button", name: "Linked from 2 threads")` (210ms, video 1:18) — `scenarios/linked-threads-push.e2e.ts:108`
   - tap button "Linked from 2 threads" (210ms)
   - screen: unchanged since step 28 at `/pull-requests?involvement=all&state=open&repository=pingdotgg%2Ft3code&number=35865&selectedHost=github.com&selectedProjectId=fdd32dd0-7640-46d8-b5d4-6245e396a1ad&selectedEnvironmentId=9f66662b-c1f7-4d39-8a95-586b1004cefc`
36. ✓ `browser.mouse.move` (32ms, video 1:18) — `scenarios/linked-threads-push.e2e.ts:109`
37. ✓ `browser.evaluate` (5ms, video 1:18) — `scenarios/linked-threads-push.e2e.ts:110`
38. ✓ `app.screenshot` `restart-pin-order` (193ms, video 1:18) — `scenarios/linked-threads-push.e2e.ts:111`
   - [screenshot](capture artifact) [capture artifact]

