Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): prevent overlapping text and UI on Android chat messages #11611

MergedExotic209093(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/11611/headmerged by juliusmarminge View on GitHub

Assistant message containers had no width constraint, so Android Yoga unclamped-pass layout caused timestamps and copy buttons to overlap message text. List item content columns also lacked flexShrink, letting favicon icons bleed into text. Applied the same hasWideMarkdownBlock width-pinning already used for user bubbles, added flexShrink and overflow hidden to list content, and pinned favicon images to fixed size.

Fixes #11119

Summary by CodeRabbit

  • Bug Fixes
    • Improved Markdown rendering in assistant messages to prevent wide content from breaking the message layout.
    • Preserved link icon sizing and contained oversized list content for more consistent display.
    • Improved assistant message width handling when Markdown includes wide blocks, helping maintain alignment and readability across different screen sizes.
    1. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

    2. chatgpt-codex-connector[bot](GitHub profile, opens in a new tab)commented

      Codex Review Summary

      This comment shows the latest Codex review activity on this pull request.

      ReviewStatusCommitReview trigger
      📝 Code Review✅ Completed 2026-09-13T18:20:12.239781Za38624bPR opened
      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review" or "@codex security review".

      Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    3. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    4. Approvability

      Verdict: Approved at a38624b

      Macroscope's review found this PR approvable — This is a focused Android/mobile rendering fix that constrains markdown layout and preserves fixed-size icons to prevent chat text and controls from overlapping. It changes only localized presentation behavior and introduces no schema, security, billing, infrastructure, or product-default changes.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. 💡 Codex Review

      Here are some automated review suggestions for this pull request.

      Reviewed commit: a38624ba75

      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review".

      If Codex has suggestions, it will comment; otherwise it will react with 👍.

      Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

      @@ -1119,3 +1120,8 @@
      11191120 return null;
      11201121 }
      11211122
      1123+ // Assistant messages hit the same Android unclamped-pass bug as user
      1124+ // bubbles: wide markdown blocks cause children to be positioned at
      1125+ // intrinsic width before the container is clamped, overlapping the
      1126+ // timestamp/copy button row. Pinning the width removes that pass.
      1127+ const assistantHasWideBlock = hasWideMarkdownBlock(message.text, WIDE_MARKDOWN_BLOCK_OPTIONS);

      P2 Badge Reuse the existing wide-block result

      For every assistant-message render, this repeats the identical hasWideMarkdownBlock call already made in hasWideBlock above. On Android, ordinary long messages without an early match make the helper split and scan the entire message twice; while an assistant response is streaming, that redundant linear work and allocation recurs on every update in the performance-sensitive feed. Use the existing hasWideBlock value for the assistant width condition instead.

      AGENTS.md reference: AGENTS.md:L15-L17

      Useful? React with 👍 / 👎.

    6. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review Change StackReview Change Stack

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Advanced

      Run ID: bd844c7a-72fc-422b-a387-2bf80967122f

      📥 Commits

      Reviewing files that changed from the base of the PR and between da090342c22c147adf6e0cc038be38e84e5f29a0 and 66f3d9040ae6da092862a95a4499146096ef0c5a.

      📒 Files selected for processing (1)
      • apps/mobile/src/features/threads/ThreadFeed.tsx

      Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


      📝 Walkthrough

      Walkthrough

      The mobile thread feed prevents inline link icons from shrinking, contains wide markdown list content, and applies full width to assistant rows with wide markdown blocks.

      Changes

      Android message layout

      Layer / File(s)Summary
      Markdown and assistant layout containment
      apps/mobile/src/features/threads/ThreadFeed.tsx
      Inline link icons no longer shrink. Markdown list content uses shrink and overflow utility classes. Assistant rows with wide markdown blocks use w-full.

      Priority: ⬆️ High

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix · Severity of issue fixed: High

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 66f3d

      The Android layout containment changes have no identified correctness, availability, security, or data-integrity risk.

      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Title check✅ PassedThe title clearly describes the primary change: preventing overlapping text and UI in Android chat messages.
      Description check✅ PassedThe description explains the layout problem, the implemented fix, and the linked issue. It does not use the template headings or include the required before-and-after screenshots for this UI change.
      Linked Issues check✅ PassedThe PR addresses the coding requirements in issue #11119. ThreadFeed.tsx applies w-full to assistant rows when wide Markdown blocks exist. List content uses shrink and overflow containment. Inline…
      Out of Scope Changes check✅ PassedThe PR changes only apps/mobile/src/features/threads/ThreadFeed.tsx. The width, shrink, overflow, and icon sizing changes directly support the Android chat overlap fixes in issue #11119. No unrelate…
      • Fix all pre-merge checks with AI
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR

      Comment `@coderabbitai help` to get the list of available commands.
    7. Rebased onto latest main and resolved the conflict in ThreadFeed.tsx (kept main's mb-1 spacing together with the width-pinning style).

    8. juliusmarminge merged this8db3c25

    9. juliusmarminge closed this

Sign in to join this conversation.