Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Claude Code statusLine command: stdin JSON not piped correctly

Abierto
#3,371 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
go, powershell
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)
Lenguaje dominante
Go
Estrellas
22.4k
Forks
1.1k
Merge medio
12 d 6 h
PR fusionados (30 d)
14

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wavetermdev/waveterm

Todos los issues de wavetermdev/waveterm

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.