Skip to content

fix(mobile): keep ordered lists inside user bubbles - #6154

Merged
shivamhwp merged 4 commits into
pingdotgg:mainfrom
none23:t3code/fix-android-ordered-lists
Aug 12, 2026
Merged

fix(mobile): keep ordered lists inside user bubbles#6154
shivamhwp merged 4 commits into
pingdotgg:mainfrom
none23:t3code/fix-android-ordered-lists

Conversation

@none23

@none23 none23 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

What Changed

Extended fixed-width Markdown detection to recognize ordered-list markers in user messages.
Ordered lists now use the same definite-width Android bubble layout already used for fenced code blocks and GFM tables.

Why

Android can incorrectly measure list-item flex rows inside shrink-to-content user bubbles, causing ordered-list content to render outside the bubble and overlap subsequent messages.

A small regular-expression heuristic keeps the fix focused and avoids changing the shared list renderer. It trades some precision for simplicity, favoring harmless wider bubbles over false negatives that leave messages unreadable.

Fixes #6109.

UI Changes

Before After
Ordered list escaping an Android user-message bubble image

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes - (not applicable)

Note

Low Risk
Small mobile UI heuristic change scoped to Android chat bubble width. No auth, data, or shared renderer changes.

Overview
Fixes an Android layout bug where ordered lists in user chat bubbles could overflow and overlap nearby content.

Extends hasWideMarkdownBlock to detect ordered-list markers (including nested and blockquoted lists), then pins those bubbles to a definite width—the same path already used for fenced code and tables. Ordered-list detection is enabled only on Android via includeOrderedLists, so iOS bubble sizing stays unchanged.

Reviewed by Cursor Bugbot for commit 3b35142. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Keep ordered lists inside user message bubbles on Android

  • Extends hasWideMarkdownBlock in wideMarkdownBlocks.ts to detect ordered lists (including nested and blockquoted items) and return true by default via a new includeOrderedLists option.
  • On Android, messages with ordered lists are treated as wide blocks (keeping them inside the user bubble); iOS opts out via WIDE_MARKDOWN_BLOCK_OPTIONS in ThreadFeed.tsx.
  • A stripBlockquotePrefixes helper and hasOrderedListItem function handle edge cases like blockquoted lists and indented code blocks.

Macroscope summarized 3b35142.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c9f4c797-cc84-448c-a3d9-884f736dbf74

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 11, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Aug 11, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved 3b35142

This is a targeted Android mobile UI bug fix that adds ordered list detection for proper message bubble sizing. The changes are self-contained, well-tested, and limited to layout rendering logic with no security or data implications.

You can customize Macroscope's approvability policy. Learn more.

@macroscopeapp
macroscopeapp Bot dismissed their stale review August 12, 2026 08:53

Dismissing prior approval to re-evaluate 3b35142

@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Aug 12, 2026
@shivamhwp
shivamhwp merged commit e1378a1 into pingdotgg:main Aug 12, 2026
19 checks passed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 12, 2026
## What's Changed
* feat(mobile): add thread title regeneration by @chrisdeeming in pingdotgg/t3code#6253
* chore: add dara to vouched by @maria-rcks in pingdotgg/t3code#6259
* fix(web): align the composer model picker by @t3-code[bot] in pingdotgg/t3code#6252
* fix(mobile): keep ordered lists inside user bubbles by @none23 in pingdotgg/t3code#6154
* feat(web): a better right panel empty state by @StiensWout in pingdotgg/t3code#6258
* fix(web): align mobile onboarding header by @t3-code[bot] in pingdotgg/t3code#6293
* fix(connect): preserve CLI OAuth parameters through browser sign-in by @juliusmarminge in pingdotgg/t3code#6285

## New Contributors
* @none23 made their first contribution in pingdotgg/t3code#6154

**Full Changelog**: pingdotgg/t3code@v0.0.34-nightly.20260812.1072...v0.0.34-nightly.20260812.1076

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.34-nightly.20260812.1076
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 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]: Ordered lists escape user-message bubbles on Android

2 participants