PwrBank

Results comments of PwrBank

You might see how claude-powerline derives this data: https://github.com/Owloops/claude-powerline/blob/main/src/segments/context.ts or even cc-sessions https://github.com/GWUDCAP/cc-sessions/blob/main/cc_sessions/javascript/statusline.js Both are accurate enough in my experience.

I use Claude in Windows Terminal with PS7+Starship as my shell. PowerShell 7 path is: `C:\Program Files\PowerShell\7\pwsh.exe` The default super outdated PowerShell is: `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe` Should be able to launch Claude...

Looks like this is more of the issue ```json { "sessionId": "e28d3e8e-f238-4ed8-9b9a-e8f3ea1a09ac-ai-641d41ea-3291-4268-a17c-e67529fa0f41", "spawnCommand": "C:\\Users\\pwrbank\\AppData\\Roaming\\npm\\claude.cmd", "spawnShell": "C:\\Program Files\\PowerShell\\7\\pwsh.exe", "isWindows": true, "argsCount": 7, "promptArgLength": 8141, "fullCommandPreview": "C:\\Users\\pwrbank\\AppData\\Roaming\\npm\\claude.cmd --print --verbose --output-format stream-json --dangerously-skip-permissions...

It does invoke cmd.exe and there's no option in Windows to change the default behavior for opening .cmd files. And yes

In PowerShell ```powershell Get-Command claude CommandType Name Version Source ----------- ---- ------- ------ ExternalScript claude.ps1 C:\Users\pwrbank\AppData\Roaming\npm\claude.ps1 ``` In cmd ```batch where claude C:\Users\pwrbank\AppData\Roaming\npm\claude C:\Users\pwrbank\AppData\Roaming\npm\claude.cmd ``` I think I got it...

List of auto-detected shells for reference

Confirmed changing it to .ps1 fixed the problem! You mean this?