Repository navigation
Description
Before submitting
- I searched existing issues ([Bug]: React #185 loop between ThreadDetailsCard and resolveChatCanvasLayout when a portrait preview floats beside the inline details card #14959 is related but requires a floating portrait preview; here none was floated – different trigger)
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Open thread "Android App Edge-Case Testing" (d40c4954-a990-4503-951b-9e2e860c4053, model: Codex/GPT)
- Renderer crashes immediately with React Add drag-and-drop project reordering to the sidebar #185
- No device preview was floated at crash time
Expected behavior
Thread opens and stays usable.
Actual behavior
Renderer crashes with React error #185 (Maximum update depth exceeded). Reload from the crash screen does NOT help – only a hard restart of the app recovers. Reproducible on every open of this thread.
Version or commit
T3 Code (Nightly) 0.0.46-nightly.20261003.2623
Environment
Time: 2026-10-03T08:32:34.119Z
Path: /8327eebb-bf4c-409c-ae15-27306b5aad20/d40c4954-a990-4503-951b-9e2e860c4053 (= /$environmentId/$threadId)
Logs or stack traces
Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at fi (t3code://app/assets/dist-C9FzM63a.js:26:27482)
at li (t3code://app/assets/dist-C9FzM63a.js:26:27007)
at Is (t3code://app/assets/dist-C9FzM63a.js:26:58530)
at Fs (t3code://app/assets/dist-C9FzM63a.js:26:58152)
at t3code://app/assets/_chat-BNSSvl7Y.js:2:135935
at A (t3code://app/assets/_chat-BNSSvl7Y.js:51:62309)
at Uc (t3code://app/assets/dist-C9FzM63a.js:26:91665)
at sl (t3code://app/assets/dist-C9FzM63a.js:26:96136)
at xl (t3code://app/assets/dist-C9FzM63a.js:26:104930)
at sl (t3code://app/assets/dist-C9FzM63a.js:26:96123)
Note: _chat offsets differ only slightly from #14959 on .2610 (2:135900 / 51:62314), same ThreadDetailsCard/ChatCanvas frames, but without any floating preview here.
Diagnostics
Thread-ID is absent from local statev2.sqlite/state.sqlite (orchestration_v2_projection_threads, projection_threads, orchestration_events) – crash environment-ID differs from local one, so thread content could not be inspected locally.
Workaround
Reload from crash screen: ineffective. Hard app restart required.
Activity
juliusmarminge commentedon Oct 3, 2026
Note
Grok responding on behalf of Julius.
Triage
Thanks for the detailed report and for checking #14959 first, @MonkeyMed! Even though you didn't float a preview yourself, this looks like the same crash as #14959. Nightly
0.0.46-nightly.20261003.2623doesn't have a second trigger for it.Same crash site
Your minified frames match the pair already mapped on
.2610.ThreadDetailsCard's layout effect callsreportDetailsCard, andChatCanvasstores that rect withsetDetailsCard. Your offsets (_chat2:135935/51:62309) differ by only a few dozen bytes from that mapping. Those call sites are unchanged on currentmain(263097a8da).Why a floating preview is still involved
The update loop can only run away while a floating preview is in the canvas state. The details card position is only read inside the preview branch, and a portrait player next to the inline card flips between two positions until React stops with error #185:
t3code/apps/web/src/components/chat/chatCanvasLayout.ts
Lines 46 to 81 in 263097a
t3code/apps/web/src/components/chat/ChatCanvas.tsx
Lines 27 to 35 in 263097a
t3code/apps/web/src/components/chat/ThreadDetailsCard.tsx
Lines 65 to 71 in 263097a
The player doesn't have to be opened by hand, and it often never shows on screen. The loop is a nested
useLayoutEffect, so the crash screen replaces everything before that frame is painted.Auto-show floating preview is on by default. It opens a player when a device session shows up after the first snapshot, including when the device row arrives late, or when an agent opens a browser preview. An Android device is the portrait shape that fails to settle, and this thread is about Android testing.
t3code/apps/web/src/components/ChatView.tsx
Lines 5061 to 5098 in 263097a
The missing row in
statev2.sqlitedoesn't rule this out either way. The mini player only lives in memory, and this thread's environment id isn't the local one, so its contents were never in that database.Status and workarounds
Open PR #14968 fixes this crash, but it isn't in this nightly yet. Until it lands:
If you can still reproduce this with the floating player confirmed closed on a cold open, that would be a new trigger, so please let us know. Otherwise, your canvas width and whether this thread had a device session or browser tab would be useful on #14959.
juliusmarminge commentedon Oct 3, 2026
Note
Grok responding on behalf of Julius.
Closing the leftover duplicate. Canonical #14959 is fixed on main by #14992.