Claude Code statusLine command: stdin JSON not piped correctly
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start with the statusLine command path and reproduce the issue using the settings.json configuration and statusline-command.ps1 on Windows. Compare WaveTerm's stdin handling with the described Windows Terminal behavior, then verify that the command receives the Claude Code JSON payload and produces model, context, and token information instead of the fallback output.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
When using Claude Code inside WaveTerm, the custom statusLine command does not receive any JSON data via stdin, causing the statusline to fall back to a generic output instead of displaying model info, context usage, token counts, etc.
How Claude Code statusLine works
Claude Code supports a custom statusline via settings.json:
"statusLine": {
"type": "command",
"command": "pwsh -NoProfile -File statusline-command.ps1"
}
Claude Code is supposed to pipe a JSON payload to the command's stdin after each response. The JSON includes model.display_name, context_window.used_percentage, rate_limits, cwd, session_name, etc.
What happens in WaveTerm
The command is executed, but stdin is empty. The script reads nothing from [Console]::In.ReadToEnd(), causing it to hit the fallback and output just claude instead of the full statusline.
The same script works correctly in Windows Terminal where stdin is properly piped.
Steps to Reproduce
- Configure Claude Code
statusLinewith a custom command that reads from stdin - Run Claude Code inside WaveTerm
- Observe the statusline only shows the fallback output
Expected Behavior
The custom statusline command should receive the JSON payload via stdin, same as in other terminals.
Environment
- WaveTerm (latest)
- Windows 11
- Claude Code CLI
- PowerShell 7 (pwsh)
- Lingua principale
- Go
- Stelle
- 22.3k
- Fork
- 1.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wavetermdev/waveterm
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
wavetermdev/waveterm#3481 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
wavetermdev/waveterm#3435 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
wavetermdev/waveterm#3432 ·
-
enhancement triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
wavetermdev/waveterm#3431 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
wavetermdev/waveterm#3428 ·
Tutte le issue di wavetermdev/waveterm
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug group: validation priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
codecheckers/chekhov#51 ·
-
Creating worktree from an existing remote branch with a slash in it, has unexpected behaviour Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100