Skip to content

[Bug]: Remote web UI disconnects repeatedly on high-latency mobile connections, spamming disconnect/reconnect toasts and leaving threads desynced #2750

@Vlaoff

Description

@Vlaoff

Before submitting

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

Area

apps/web

Steps to reproduce

Open t3code in a browser using the remote/web setup.
Connect from a mobile device or tethered connection with ~100–200ms ping.
Start a thread and send a message.
Observe the connection status bar — the client repeatedly disconnects and reconnects.
Try to load an existing thread or send a follow-up after a reconnect.

Expected behavior

The app should handle transient network interruptions gracefully. Brief disconnections on a high-latency mobile link should not cause visible spam or broken state. Threads should reload cleanly after reconnection, and the session should resume without desync.

Actual behavior

On a mobile connection with 100–200ms ping:

The UI gets spammed with repeated "Disconnected from" toasts followed by immediate reconnection attempts in a continuous loop. Some threads refuse to load after a reconnect — staying blank or showing stale content. Threads also become desynced: local and server state diverge, and sending new messages silently fails or the message does not appear. The app is effectively unusable on any connection with moderate latency or packet loss.

Image

Impact

Blocks work completely

Version or commit

No response

Environment

Browser (web/remote setup), mobile connection (4G/LTE), ~100–200ms ping

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

None found. Staying on a stable Wi-Fi connection avoids the issue entirely, but there is no way to recover a desynced thread mid-session without reloading the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions