Skip to content

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

Open
Exotic209093 wants to merge 1 commit into
pingdotgg:mainfrom
Exotic209093:fix/android-chat-overlap
Open

fix(mobile): prevent overlapping text and UI on Android chat messages#11611
Exotic209093 wants to merge 1 commit into
pingdotgg:mainfrom
Exotic209093:fix/android-chat-overlap

Conversation

@Exotic209093

@Exotic209093 Exotic209093 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

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.
    • Fixed full-width alignment for assistant message bubbles on Android.

@cursor

cursor Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 13, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-13T18:20:12.239781Z a38624b PR 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.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 13, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

// bubbles: wide markdown blocks cause children to be positioned at
// intrinsic width before the container is clamped, overlapping the
// timestamp/copy button row. Pinning the width removes that pass.
const assistantHasWideBlock = hasWideMarkdownBlock(message.text, WIDE_MARKDOWN_BLOCK_OPTIONS);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 👍 / 👎.

@coderabbitai

coderabbitai Bot commented Sep 13, 2026

Copy link
Copy Markdown

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: a7bc1764-499a-4aaf-a835-573207415fdc

📥 Commits

Reviewing files that changed from the base of the PR and between 77bca8b and a38624b.

📒 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; 7 remain after this review.


📝 Walkthrough

Walkthrough

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

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 shrinks and hides overflow. Assistant rows with wide markdown blocks use width: "100%".

Priority: ➖ Normal

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

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: juliusmarminge

Merge Risk: ⚪ Minimal · up to a3862

The Android chat layout changes address the reported overlap paths without an established regression; the PR is mergeable.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring 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 name Status Explanation
Title check ✅ Passed The title clearly identifies the mobile Android chat layout fix and matches the main change.
Description check ✅ Passed The description explains the Android layout problem, the implemented fixes, and the linked issue. It omits the template headings, checklist, and requested before/after UI evidence, but the core inform…
Linked Issues check ✅ Passed The changes address issue #11119. Assistant message rows use width: "100%" when wide Markdown blocks exist, which prevents timestamps and action controls from sharing insufficient text width. Markdo…
Out of Scope Changes check ✅ Passed The reviewed change is limited to apps/mobile/src/features/threads/ThreadFeed.tsx. The width, shrink, overflow, and inline icon changes directly support the Android chat overlap fixes in issue #1111
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch fix/android-chat-overlap
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Android mobile app renders overlapping text and UI elements in chat messages

1 participant