Skip to content

bug(windows): exited Claude sessions stay in discovery and make names ambiguous #173

Closed

Description

@abruption

Summary

On native Windows, an exited Claude Code session can remain in discovery and make its name ambiguous. During the RC4 campaign (#164), the claude-cmd TUI exited and a new claude-cmd was started. Discovery then returned both the old session (its process was no longer present in Get-Process) and the new one, so a dry-run to claude-cmd failed as an ambiguous target. It was resolved only by manually renaming the stale session record file.

Expected

Discovery should not treat a session record whose process no longer exists, or whose process identity does not match (PID reuse), as a live candidate. It should at least exclude it from name resolution and flag it in doctor, without deleting user files.

Acceptance

  • Tests on Windows discovery: an exited PID record is ignored for name resolution and reported as stale, a reused PID with a different creation time is not matched, and a live duplicate name remains an explicit ambiguity.
  • No automatic deletion of Claude Code's own files.

Activity

  1. added this to the v1.0.1 milestone on Sep 24, 2026
  2. changed the title [-]feat(relay): timestamp receiver diagnostic events and support safe attempt correlation[/-] [+]bug(windows): exited Claude sessions stay in discovery and make names ambiguous[/+] on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions