Skip to content

[Bug]: iOS Safari web UI: second image in a thread is silently dropped after first send ("is not connected" + IndexedDB transaction error) #40993

Closed

Description

@Londonboy29

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Web app (served by t3 serve --mode web) in Safari on iPhone.

Steps to reproduce

  1. Open the web UI in Safari on an iPhone, then open a thread.
  2. Attach a photo with the paperclip, which opens the iOS photo picker, and send. This works, and the model receives the image.
  3. In the same thread, tap the paperclip again and pick another photo.

Expected behavior

The second photo shows up as a chip in the composer and can be sent.

Actual behavior

  • After the picker closes, the photo never appears in the composer. No error is shown.
  • No upload request reaches the server: the server trace shows only the first upload.
  • Reloading the page fixes it for exactly one more image.

Impact

On iPhone, each image after the first in a thread needs a full page reload first.

Version or commit

  • v0.1.10 linux-arm64 server.
  • Still reproduces after upgrading to v0.1.11.

Environment

  • Server: Linux arm64, t3 serve --mode web, reached over HTTPS through a reverse proxy.
  • Client: Safari on iOS, 5G.

Logs or stack traces

Browser-side errors right after the first send:

  • Repeated about 25 times over the next ~20 min:
    EnvironmentRpcUnavailableError: <host> is not connected.
    
  • About 4 minutes after the first send:
    Could not save thread: ConnectionTransientError: Could not write the local connection catalog: UnknownError: Attempt to delete range from database without an in-progress transaction
    

This looks like the Safari IndexedDB transaction error that can follow iOS suspending the tab (opening the photo picker backgrounds it). The client then stays in "not connected", and the attach action is dropped silently instead of reconnecting or showing an error.

Screenshots, recordings, or supporting files

None (private workspace).

Workaround

Reload the page before attaching each new image.

Activity

  1. Londonboy29 commented on Nov 22, 2026

    @Londonboy29
    Author

    More detail: this only happens in an existing thread, where the composer starts collapsed ("Ask anything..." + model chip, no paperclip). Tapping the field expands it and shows the paperclip. On iPhone, opening the photo picker blurs the field, and the selected photo is lost (likely because the composer collapses while the picker is open). A new thread (draft, composer always expanded) attaches fine every time, and reloading an existing thread does not help. In desktop Chrome with iPhone emulation, the same steps work (there is no blur while the file chooser is open).

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