Claude Code statusLine command: stdin JSON not piped correctly
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- Go
- スター
- 22.4k
- フォーク
- 1.1k
- 平均マージ
- 12日 6時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wavetermdev/waveterm のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
wavetermdev/waveterm#3481 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wavetermdev/waveterm#3435 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
wavetermdev/waveterm#3432 ·
メンテナーはふだん 1 日以内に返信
-
enhancement triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
wavetermdev/waveterm#3431 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
wavetermdev/waveterm#3428 ·
メンテナーはふだん 1 日以内に返信
wavetermdev/waveterm の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1417 ·
メンテナーはふだん 2 日以内に返信
-
agent-research-finding agent-research-recommend chore ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
jordansmall/spindrift#4068 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Type/Task
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
OpenNSW/nsw-srilanka#537 ·
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜2日 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信