Extract session IDs from a process listing (one command line per line),
counting only processes that are claude itself. Terminal emulators,
cmd /k wrappers and macOS apps that outlive their window also carry
--resume <id> in their arguments and would otherwise keep a closed
session marked busy forever.
Extract session IDs from a process listing (one command line per line), counting only processes that are claude itself. Terminal emulators,
cmd /kwrappers and macOS apps that outlive their window also carry--resume <id>in their arguments and would otherwise keep a closed session marked busy forever.