Skip to content

[FEATURE] Allow users to deactivate Remote Control session links after shutdown #28917

Description

@ajkosasih

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

When a Remote Control session is shut down (via Ctrl+C or closing the terminal), the session link remains accessible even though the session is no longer active. While the session is effectively non-functional, the link still loads, which is confusing and a potential security concern. It is unclear how long the link remains accessible, and there is no way for users to manually invalidate it.

Proposed Solution

Expected Behavior
Users should be able to deactivate/delete a Remote Control session link after the session has been shut down.

Feature Request

  1. List past session links — A CLI command like claude remote-control --list to show recent session links and their status.
  2. Revoke shut-down session links — A CLI command like claude remote-control --revoke to deactivate links from sessions that are no longer running.
  3. Deactivate from the web UI — A button on the Remote Control web page to deactivate the link when the session is no longer active.

Why This Matters

  • Security: Shut-down session links should not remain accessible with no way to clean them up. Users should have control over invalidating stale links.
  • Shared environments: On shared machines, stale session links could be discovered by others.
  • UX: It's confusing when a shut-down session's link still loads, with no option to remove it.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions