Skip to content

[Bug]: iOS shows images that share a line with text as tiny round icons, with no swipe between them #31938

Closed

Description

@Vrejf

Before submitting

Area

apps/mobile

Steps to reproduce

  1. On iPhone, open a thread whose assistant message puts screenshots at the end of caption lines, for example:

    **Petition: empty form** ![](/abs/path/empty.png)
    
    **Petition: after an empty submit.** Errors fill the reserved lines. ![](/abs/path/errors.png)
  2. Wait for the images to load.

  3. Tap one of the images, then try to swipe to the next one.

Expected behavior

  • An image that shares a line with text still shows at a readable size (or as a thumbnail block under the line), like on desktop.
  • Tapping it opens the viewer with every image in the message, and you can swipe to the next or previous one.

Actual behavior

  • Each image shows as a tiny round icon about one line tall, so you can't see what it shows. Agents often post captioned screenshots this way, so a whole message of before/after shots turns into a row of dots.
  • Opening one shows only that image. There's no swiping to the others.

Impact

Major degradation or frequent failure

Version or commit

iOS app (current App Store build); code references are to main @ 86d8838

Environment

iPhone, T3 Code iOS app connected to a remote Linux server

Diagnosis

This comes from reading the code. I haven't reproduced it in a dev build.

  • markdownWithFileEmbeds (apps/mobile/src/lib/markdownDocument.ts) treats an image as standalone only when it's the only child of a top-level paragraph. Only standalone images get ThreadMarkdownImage, which has proper sizing and joins the gallery through withGallery.
  • An image after caption text isn't standalone. markdownFileEmbedLabel returns null for it, so it stays an image and the native react-native-enriched-markdown view draws it inline at line height. The app doesn't set an inline image size in markdownStyle.
  • Chat messages don't pass onImagePress to EnrichedMarkdownText, so a tap on an inline image goes to onLinkPress with a single URL and no gallery.

Possible fix: lift an image that ends or starts a text paragraph into its own block, the way PR #30280 does for image-only lines. It would then render through ThreadMarkdownImage and join the gallery.

Related

Screenshots, recordings, or supporting files

iPhone: six screenshots in one assistant message, each shown as a small circle at the end of its caption line.

Inline images rendered as tiny round icons on iOS

Workaround

Ask the agent to put each image on its own line with blank lines around it.

Activity

  1. juliusmarminge commented on Nov 22, 2026

    @juliusmarminge
    Member

    #37117, now on main: Tapping a captioned inline image now opens the viewer with the message's image gallery, allowing paging between its images.

    Not done: Images sharing a line with caption text still render as tiny icons; the requested readable thumbnail or block layout remains unimplemented.

    maria (decided by hand on her review site)

    Closing; open a new issue if what is left still matters to you.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions