Private/Get-ChannelsProcess.ps1
|
# Internal helper -- match the actual `claude --channels` process, not random shells. # Filters OUT VS Code's claude instance (Code/User path). # Preserved verbatim from scripts/start-channels.ps1 lines 180-187. function Get-ChannelsProcess { Get-CimInstance Win32_Process -ErrorAction SilentlyContinue | Where-Object { ($_.CommandLine -match 'claude\s+--channels' -or $_.CommandLine -match 'plugin:telegram@claude-plugins-official') -and $_.CommandLine -notmatch 'Code/User' } } |