Allow removing reconnecting remote environments#3897
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved Small, self-contained UX fix that allows users to remove remote environments stuck in 'reconnecting' state. Changes are limited to button behavior and labels in a single UI component with no broader runtime impact. You can customize Macroscope's approvability policy. Learn more. |
What Changed
Added a Remove button for Remote Environments that remain in the reconnecting state.
AKA, auth went through, but something else is broken.
Why
Solves #3896 Where if your remote server doesn't ever resolve, you have no way to remove "forever" reconnecting servers from the Desktop app.
UI Changes
Before
After
Screen.Recording.2026-07-11.at.23.22.16.mov
Checklist
Note
Low Risk
Small UI-only change in Connections settings; reuses existing remove-environment flow with no new backend or auth logic.
Overview
Saved remote environment rows in Connections settings now treat
reconnectingseparately fromconnecting.While a backend is stuck reconnecting, the action button stays enabled and calls
onRemove(same catalog remove as disconnect), with Remove / Removing… labels instead of a disabled control that only offered Connect. Connected rows still show Disconnect; initial connect still disables the button and shows Connecting….Reviewed by Cursor Bugbot for commit 973bb2a. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Allow removing remote environments in the reconnecting state
In
ConnectionsSettings.tsx, theSavedBackendListRowaction button previously showed "Connecting…" and was disabled during the reconnecting phase. It now shows "Remove" (or "Removing…" while in-progress) and triggersonRemove, matching the behavior of the connected state. A separateisReconnectingflag distinguishes reconnecting from the initial connecting phase, soisConnectingno longer covers reconnection.Macroscope summarized 973bb2a.