Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Mobile app chat messages render overlapping / garbled text #10846

ClosedSunsilkk(GitHub profile, opens in a new tab) opened this issue 4 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Connect with the mobile app (iOS, T3 Code app) to an environment (cpamp · orangepi5-max) via T3 Connect / direct pairing.
  2. Open a thread with long agent output — e.g. thread titled "Architecture desi..." with 7 subagents, tool-call summary rows ("Used 4 tools, ran 19 commands...", "Ran 9 commands, changed 6 files...", "Ran 17 commands..."), and "Working for 52m 30s" indicator.
  3. Scroll through assistant messages containing Vietnamese text.
  4. Observe the message bubbles.

Expected behavior

Each assistant message renders as readable, non-overlapping text lines, same as web/desktop.

Actual behavior

Assistant message text sometimes renders overlapped / garbled — multiple lines drawn on top of each other, unreadable. Looks like stacked text layers / incorrect line-height/layout in the chat bubble. Collapsible rows ("7 subagents", "Used 4 tools...") render fine, but the body paragraphs (Vietnamese content about BFF / plan Markdown / JWT / gateway etc.) are a jumble of overlapping glyphs.

Note: this is temporary, not permanent — go back out of the thread and re-enter, and the text renders normally again.

Screenshot: https://files.catbox.moe/04rzrw.png

Overlapping garbled chat text on iOS mobile app

Impact

Minor bug or occasional failure — text is temporarily unreadable but recovers after back + re-enter thread.

Version or commit

Server: 0.0.41-nightly.20260908.1414 (also seen on t3 v0.0.38 lineage) — mobile app version unknown (App Store latest)

Environment

  • Mobile app (iOS, iPhone — see status-bar screenshot, dark mode)
  • Server: Linux ARM64 (Orange Pi 5 Max), Node v26.5.0, provider opencode / muse-spark-1.3-contributor
  • Thread: long-running agent session (7 subagents, 52m30s, Vietnamese output)

Logs or stack traces

N/A — pure UI rendering bug, no crash. Happy to provide screen recording if needed.

Screenshots, recordings, or supporting files

Screenshot (mirror of IMG_2062.png): https://files.catbox.moe/04rzrw.png

Workaround

Go back out of the thread and re-enter — text renders normally again. Alternatively open the same thread in web app / desktop app.

  1. Thanks for the detailed repro — this looks like a real iOS chat-body rendering bug, not a server/provider issue. Web/desktop reading the same thread is the expected split: mobile iOS draws assistant prose through a custom native markdown UITextView, not the web renderer.

    What we think is going on

    Assistant body markdown on iOS goes through:

    • apps/mobile/src/features/threads/ThreadFeed.tsx (AssistantMarkdownContent → SelectableMarkdownText)
    • apps/mobile/modules/t3-markdown-text/ (SelectableMarkdownText.ios.tsx, NativeMarkdownSelectableText.ios.tsx, T3MarkdownText.mm / T3MarkdownTextShadowNode.mm)

    That native path measures and paints with usesFontLeading = NO and a fixed body line box (16/23). It also only rebuilds the attributed string during native layout. Work-log rows (“7 subagents”, “Used 4 tools…”, “Working for …”) use a different component (thread-work-log.tsx) and ordinary RN Text, which matches “chrome is fine, body paragraphs are a jumble.”

    Vietnamese stacked diacritics plus mixed inline markdown (code/bold) is a strong trigger for either:

    1. Forced min+max lineHeight colliding with TextKit glyph metrics, or
    2. A stale attributed string left on a recycled/un-relayouted native view (stacked layers).

    LegendList estimated/fixed row sizes are unlikely to be the primary cause here: message rows are measured, not given a fixed height. The overlap is described inside the bubble, not as whole feed rows sliding over each other.

    Not a duplicate of

    • #5340 — Android, after switching threads; whole timeline overlaps; reopen clears it
    • #8195 — Android DeX / windowed-desktop type clip
    • #10156 — CarPlay widget double-draw
    • #7929 — raw HTML shown as source text

    Related but not a fix: open #9664 (keep markdown views stable while streaming).

    Next

    Accepted as an iOS native-markdown layout bug. Engineering should repro on device with a long Vietnamese (or other stacked-diacritic Latin) assistant reply and inspect T3MarkdownText line metrics / attributed-string updates. Workaround remains: read the thread on web or desktop.

    A couple of extras that would help if you have them:

    • iOS version and T3 Code App Store / build number
    • Whether English-only assistant bubbles in the same thread also overlap
    • Whether leaving the thread and opening it again clears it (that would lean recycle/stale layout rather than always-on line metrics)
    • A screen recording, if the catbox still shows the garbled body (the linked PNG is currently empty from here)
  2. juliusmarminge added labelsbug

  3. juliusmarminge added labelsaccepted

  4. juliusmarminge added labelsvia-triage

  5. Note

    Grok responding on behalf of Julius.

    Closing because #16979 replaced the mobile Markdown renderer, the native text layer these message bodies were drawn with, with Enriched Markdown. If overlapping text still shows up on a build that includes #16979, comment here and we'll reopen.

  6. juliusmarminge closed this

  7. Note

    🤖 GPT 6.1 Sol reporting on behalf of NikitaMGrimm

    Reporting a possible recurrence after #16979, in response to the closure comment's request for reports on newer builds.

    The user saw temporarily overlapping chat text on their physical iPhone on October 20, 2026, using their recently installed developer/test app. They associate it with scrolling upward quickly while chat content loads. Waiting long enough or switching chats and back clears the layout. They have tried to reproduce it again but cannot do so reliably.

    The latest saved build manifest and installation/migration records identify:

    • T3 Code Lab 2.0.0 (7), built and installed October 20; iOS 27.2 in the device records.
    • Source: 6bad9da7ef0ccf03a4383cc4177e2c741ad79ccb, from build 39446666881.
    • An isolated, locally signed arm64 Release app with embedded JavaScript and OTA updates disabled. Its source includes the merged #16979 renderer replacement.

    Those are saved installation records, not a live verification of the app at the instant of failure. A read-only query of the phone's current metadata timed out, so the exact build active during the incident is not independently confirmed.

    There is no iOS capture or deterministic reproduction. The user also supplied a desktop screenshot for a similar Windows occurrence on October 21, reported in #16650; that is desktop evidence only, and a shared cause has not been established.

    Please reassess whether this report should be reopened for investigation.

  8. afrojun(GitHub profile, opens in a new tab)commented

    Seeing this on the Android app (2.0.0 alpha, Pixel 11 Pro XL), connected to desktop/server 0.1.1-nightly.20261017.3238 on Linux.

    Trigger: I expanded a collapsed thinking/tool-calls section in a thread. The rows below it didn't move down, so the expanded content was drawn on top of the assistant messages that follow. Two paragraphs ended up drawn over each other, along with the "Ran N commands" rows.

    Leaving the thread and coming back fixes it.

    This looks like the stale row-height case: the row grows on expand, but the rows after it keep their old positions. The desktop version of this is #16650.

    Screenshot_20261022-001821.png

Sign in to join this conversation.