[Bug]: Remote environment stuck reconnecting cannot be disconnected without removing it #9685
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#
- Start a T3 Code server/web client and pair with it.
- Start a second, separate T3 Code server on another port (this is the remote environment to add).
- In the client, go to Settings -> Connections -> Remote environments -> Add environment -> Remote link, enter the second server's host and pairing code, add it. The row shows Connected.
- Stop that second server process.
- Watch the row enter "Failed to connect. Reconnecting..." and stay there.
- Try to stop the reconnect attempts without deleting the environment.
Expected behavior#
A way to pause/disconnect the environment that keeps it saved, so the retry loop stops without losing the registration or cached data.
Actual behavior#
While the row is stuck in "Failed to connect. Reconnecting...", the only enabled control is Remove, which unregisters the environment, clears its cached data, and (for SSH targets) disconnects the managed SSH environment. The button that would let you pause the connection is disabled and reads "Connecting…".
Separately, on a still-connected row, the second button is labelled "Disconnect" but its click handler actually calls the remove path, so it deletes the environment instead of disconnecting it.
This is in apps/web/src/components/settings/ConnectionsSettings.tsx, component SavedBackendListRow. apps/desktop wraps apps/web and shows the same bug. apps/mobile has no connect/disconnect toggle on this row at all (only Remove), so it is not affected.
Impact#
Major degradation or frequent failure
Version or commit#
main @ 7cf5b284e
Environment#
macOS (Darwin 27.0.0, arm64), Node v26.8.1, pnpm 11.10.0, Chrome
Logs or stack traces#
Not applicable. This is a UI state/wiring bug, not a crash.
Workaround#
None that keeps the environment. The only enabled action while stuck reconnecting is Remove, which deletes the saved environment.
Before screenshots:
Stuck reconnecting, only Remove enabled:

Connected row, single button labelled "Disconnect" that actually removes:

t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.