[FEATURE] Let users remove stale/dead Remote Control environments from the claude.ai/code environment list

Status Open
Maintainer reply None cached
Activity 14 comments · opened Apr 19, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

After running claude remote-control multiple times on my local machine and shutting each session down (Ctrl+C / closing the terminal), the old environments continue to appear in the environment list at claude.ai/code. The entries persist indefinitely with no way to remove them, even though none of them work anymore, clicking them leads to a dead/non-functional session.

Over time, anyone who uses Remote Control regularly ends up with a long list of stale, non-functional environments in the web UI, making it hard to find the one active session among the dead ones. There is currently no affordance in the CLI or on the web to delete these stale entries.

Proposed Solution

Expected behavior: Users should be able to remove dead Remote Control environments from the list shown at claude.ai/code (and the mobile apps).
Feature request:

  1. Remove from web UI — A "Remove" / trash icon next to each entry in the environment list at claude.ai/code that deletes the stale environment from the list. This is the primary request.
  2. Bulk "Clean up disconnected" action — A single button that removes all environments that are no longer online, for users who accumulate many of them.
  3. CLI command — Something like claude remote-control --list and claude remote-control --revoke <session> for users who prefer the terminal.
  4. Optional auto-cleanup — After a configurable period of inactivity (e.g., 24h / 7d), stale environments are removed automatically.

Why this matters

  • UX / clutter: The environment dropdown becomes unusable after normal daily use of Remote Control. There's no way to tell at a glance which sessions are alive without clicking.
  • User control: Users should be able to manage their own environment list. Right now there's no action of any kind available on these entries.
  • Security (secondary): As noted in #28917, stale session links can linger with no way to invalidate them, which is a concern on shared machines.

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

  1. Start a Remote Control session in the morning, work on it, close the terminal at lunch.
  2. Start another one in the afternoon on a different project, close it at the end of the day.
  3. Next day, repeat.
  4. Within a week, claude.ai/code shows 10+ dead environments in the list with no way to remove them, making it hard to locate the one I'm currently using.

Additional Context

Related: #28917 (focuses on security/link-invalidation after shutdown). This request overlaps but emphasizes the environment list UX at claude.ai/code specifically, and the case where a user has accumulated multiple stale entries from normal repeated use.

View original on GitHub ↗

6 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/37321
  2. https://github.com/anthropics/claude-code/issues/47761
  3. https://github.com/anthropics/claude-code/issues/39914

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

wolfomania · 4 months ago

I don't think any of these are actual duplicates:

  • #37321 is a bug report about claude remote-control hanging on Windows. Stale environments are mentioned there only as a suspected cause of the connection hang. Fixing that bug wouldn't give users any way to clean up the list, which is the problem I'm describing.
  • #47761 is about deleting individual sessions from claude.ai/code. This issue is about Remote Control environments — the dropdown entries that represent registered local machines. Different entity, different list.
  • #39914 is specifically about the Claude mobile app. This issue is about the web UI at claude.ai/code.

The concern here is unaddressed by all three: after running claude remote-control multiple times on a local machine, dead environments accumulate in the claude.ai/code environment dropdown with no way to remove them — a UX/clutter problem on the web, separate from the connection bug, from regular session deletion, and from the mobile app.

Sorinbalut · 3 months ago

still a problem - dead environments are pilling up with no way to delete them

matthewnlu · 2 months ago

Still a problem – specifically in mobile app!

snawpy · 1 month ago

How has this not been added yet

TmoT · 1 month ago

I confirm, this is still an issue on mobile. PR still showing and without a possibility to delete them.

Showing cached comments. Read the full discussion on GitHub ↗