You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: iOS Safari web UI: second image in a thread is silently dropped after first send ("is not connected" + IndexedDB transaction error) #40993
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
Open the web UI in Safari on an iPhone, then open a thread.
Attach a photo with the paperclip, which opens the iOS photo picker, and send. This works, and the model receives the image.
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.
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).
Activity
Londonboy29 commentedon Nov 22, 2026
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).