Skip to content

[Bug]: A missing image prevents other images in the same message from opening on Android #39127

Closed

Description

@StiensWout

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. On an Android phone emulator paired to a test server, open a thread whose workspace contains a valid PNG named kept.png.
  2. Ask the agent to reply with two Markdown image embeds on separate lines, one for ./kept.png and one for ./missing.png, without creating missing.png.
  3. Once the reply shows the first image and marks the second unavailable, tap the first image.

Expected behavior

The tapped image opens full screen.

Actual behavior

No full-screen preview opens. A Could not open preview alert names the missing image.

Reply with both image embeds

After tapping the available image

Android reproduction

Impact

Minor bug or occasional failure. Android users hit this whenever they open a working image from a message that also embeds a missing workspace image.

Version or commit

main at 470ca63499. The cause is at apps/mobile/src/components/ui/FilePreviewSession.tsx:144.

Environment

Pixel_9_API_37, Android 17.0, Android Emulator on Linux x64.

Logs or stack traces

Commands that reproduce it on the device
"$agent_device_command" snapshot -i
"$agent_device_command" record start --scope device "$PWD/captures/android-reproduction.mp4"
"$agent_device_command" press @e16 --settle
"$agent_device_command" snapshot -i
"$agent_device_command" press @e10 --settle
"$agent_device_command" fill @e16~s256558 "Reply with two Markdown image embeds on separate lines, one for ./kept.png and one for ./missing.png. Do not create missing.png." --settle
"$agent_device_command" press @e21~s256562 --settle
"$agent_device_command" snapshot -i
"$agent_device_command" screenshot "$PWD/captures/image-reply.png"
"$agent_device_command" press @e17 --settle
"$agent_device_command" screenshot "$PWD/captures/tapped-kept-image.png"
"$agent_device_command" record stop

Workaround

No response

Activity

  1. added
    vouch:trusted
    on Nov 19, 2026
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

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions