Skip to content
Source
Sign inSign up
pingdotgg/t3code

Allow failed remote environments to be removed #4084

Mergedzepi2509(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/4084/headmerged by juliusmarminge View on GitHub

What Changed

Added a Remove action for saved remote environments that are not connected, including environments whose initial connection failed or is retrying.

The existing Connect/Disconnect action remains available.

Why

Previously, failed or reconnecting environments only displayed Connect or a disabled Connecting button. This left no way to remove a saved environment after its first connection attempt failed.

Testing

  • vp check
  • vp run typecheck

UI Changes

Before

The failed environment only offers Connect, so it cannot be removed.

Failed remote environment without a removal action

After

The failed environment offers both Remove and Connect.

Failed remote environment with Remove and Connect actions

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Low Risk Small UI change in SavedBackendListRow that reuses the existing onRemove / catalog removal path; no new backend or auth logic.

Overview Disconnected saved remote environments in Connections settings now show a Remove button next to Connect, so users can drop a saved backend after a failed or abandoned connection without having to connect first.

Connected rows are unchanged: a single Disconnect action still removes the environment via the existing handler. WSL-managed backends stay on the “Managed above” control only.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 4d869d275da45def1c38cbea758bd980b1937551. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add a separate Remove button for disconnected remote environments

Previously, the only way to remove a saved backend was to disconnect it while connected, using the same button for both actions. The SavedBackendListRow component in ConnectionsSettings.tsx now shows a dedicated Remove button alongside the Connect button when the environment is not connected. When connected, the single Disconnect button remains unchanged.

📊 Macroscope summarized 4d869d2. 1 file reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 19872430-cd04-4d6c-a1e7-81e7eac0a672

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      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.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved

      Simple UI change that adds a 'Remove' button for failed/disconnected environments. The button uses the existing onRemove handler already in place for the Disconnect functionality. No new logic or backend changes introduced.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge merged this0506508

    5. juliusmarminge closed this

Sign in to join this conversation.