Skip to content

fix(windows): exclude exited or reused Claude PIDs from discovery - #193

Merged
abruption merged 2 commits into
mainfrom
fix/173-windows-claude-stale
Sep 24, 2026
Merged

abruption merged 2 commits into
mainfrom
fix/173-windows-claude-stale

Conversation

@abruption

Copy link
Copy Markdown
Owner

Fixes #173.

On Windows, discovery now queries the live process creation time and verifies the process has not exited. It compares that identity with the Claude session record start time, so an exited process or reused PID cannot make an old record a reachable name candidate. Doctor counts stale records and reports a fixed warning; no Claude files are deleted. Two genuinely live sessions with the same name remain ambiguous.

Validation: 516 tests passed locally (12 skipped, including Windows-only live API check on macOS). The Windows CI job will exercise the live process probe. Existing unrelated sqlite ResourceWarnings appeared in the full suite. Generated standalone was refreshed and git diff --check passed.

@abruption
abruption force-pushed the fix/173-windows-claude-stale branch from 2956c52 to ce93ca4 Compare September 24, 2026 12:11
@abruption
abruption merged commit 04528dc into main Sep 24, 2026
24 checks passed
@abruption
abruption deleted the fix/173-windows-claude-stale branch September 27, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant