Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Claude Code statusLine command: stdin JSON not piped correctly

Aperta
#3,371 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go, powershell
Ambito
cli

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

  1. Configure Claude Code statusLine with a custom command that reads from stdin
  2. Run Claude Code inside WaveTerm
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wavetermdev/waveterm

Tutte le issue di wavetermdev/waveterm

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.