claude-code - 💡(How to fix) Fix [FEATURE] Let users remove stale/dead Remote Control environments from the claude.ai/code environment list [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50884Fetched 2026-04-20 12:10:24
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
6
Timeline (top)
labeled ×3commented ×2

Root Cause

  • 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.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • 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.

extent analysis

TL;DR

Implement a "Remove" feature for stale Remote Control environments in the claude.ai/code web UI to improve user experience and security.

Guidance

  • Consider adding a "Remove" or trash icon next to each environment entry in the list to allow users to delete stale environments.
  • Introduce a bulk "Clean up disconnected" action to remove all offline environments at once.
  • Develop a CLI command, such as claude remote-control --revoke <session>, to provide an alternative way for users to manage their environment list.
  • Explore implementing an optional auto-cleanup feature that removes stale environments after a configurable period of inactivity.

Example

No specific code snippet can be provided without more context, but the claude remote-control --revoke <session> command could be a starting point for implementing the CLI solution.

Notes

The proposed solution focuses on improving the user experience and security by providing a way to remove stale environments. However, the implementation details and technical requirements are not specified in the issue.

Recommendation

Apply a workaround by implementing the proposed "Remove" feature and bulk "Clean up disconnected" action to improve the user experience and security, as these features are not currently available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Let users remove stale/dead Remote Control environments from the claude.ai/code environment list [2 comments, 2 participants]