Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: React #185 crash opening thread, no floating preview, reload ineffective #15120

ClosedMonkeyMed(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues (#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

  1. Open thread "Android App Edge-Case Testing" (d40c4954-a990-4503-951b-9e2e860c4053, model: Codex/GPT)
  2. Renderer crashes immediately with React #185
  3. 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.

  1. 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.2623 doesn't have a second trigger for it.

    Same crash site

    Your minified frames match the pair already mapped on .2610. ThreadDetailsCard's layout effect calls reportDetailsCard, and ChatCanvas stores that rect with setDetailsCard. Your offsets (_chat 2:135935 / 51:62309) differ by only a few dozen bytes from that mapping. Those call sites are unchanged on current main (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:

    https://github.com/pingdotgg/t3code/blob/263097a8da038a143f2b7b7817250f0ad390ea32/apps/web/src/components/chat/chatCanvasLayout.ts#L46-L81 https://github.com/pingdotgg/t3code/blob/263097a8da038a143f2b7b7817250f0ad390ea32/apps/web/src/components/chat/ChatCanvas.tsx#L27-L35 https://github.com/pingdotgg/t3code/blob/263097a8da038a143f2b7b7817250f0ad390ea32/apps/web/src/components/chat/ThreadDetailsCard.tsx#L65-L71

    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.

    https://github.com/pingdotgg/t3code/blob/263097a8da038a143f2b7b7817250f0ad390ea32/apps/web/src/components/ChatView.tsx#L5061-L5098

    The missing row in statev2.sqlite doesn'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:

    • Close the inline thread details card, or dock the device or browser preview instead of letting it float.
    • Turn off Auto-show floating preview in the Integrations settings so the app doesn't open one on its own.
    • Reloading from the crash screen returns to the same route, so it crashes again as soon as a player opens. A full restart works because it clears the in-memory player.

    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.

  2. juliusmarminge added labelsduplicate

  3. juliusmarminge added labelsvia-triage

  4. Note

    Grok responding on behalf of Julius.

    Closing the leftover duplicate. Canonical #14959 is fixed on main by #14992.

  5. juliusmarminge closed this

Sign in to join this conversation.