-
Notifications
You must be signed in to change notification settings - Fork 0
Detect Claude Code sessions launched from non-standard IDE environments #155
Description
Problem
Partio's Claude Code detection (internal/agent/claude/process.go) scans the process list for running Claude Code processes. When Claude Code is launched via an IDE plugin (e.g. Cursor plugin inside IntelliJ IDEA, VS Code extension), the process may appear with a different parent hierarchy than when launched from a terminal. This causes Partio to miss the running session and produce no checkpoint.
The user's workflow is unchanged — they are still using Claude Code to write code — but Partio silently fails to capture their session.
What to implement
Extend internal/agent/claude/process.go to add a fallback detection strategy when process scan returns no result: check for a recently-modified Claude Code session directory (.claude/projects/) as a secondary signal. If a session file was modified within the last ~10 minutes, treat it as a running session.
This approach is simpler and more portable than process-tree traversal and handles the IDE plugin scenario without OS-specific code.
Inspiration
entireio/cliissue #844 — Entire CLI does not capture sessions when using IntelliJ IDEA with Cursor plugin on macOS
Program file
.minions/programs/detect-claude-code-nonstandard-ide-environments.md