Skip to content

Fix: Claude sessions not detected when process shows as 'claude' without path #2

@graykode

Description

@graykode

Bug

abtop --once shows 0 sessions even though ~/.claude/sessions/ contains active session files.

Root Cause

The process matching at src/collector/claude.rs:69 required both /claude (with path prefix) and --session-id in the ps command string:

c.contains("/claude") && c.contains("--session-id")

Some installations (e.g. Homebrew on macOS) show the process as just claude without a full path and without --session-id flag.

Fix

Changed matching to accept both formats:

c.starts_with("claude") || c.contains("/claude")

Fixed in 3a988a5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions