CLI hangs after completed generation run; usage shows completed but no assistant response
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- node.js
- 領域
- cli, networking
調査の方向性
commandcode -p と対話型の commandcode --model で実行される生成エントリーポイントから始め、ドキュメントに記載された HTTP プロキシ設定でのストリーミングレスポンスの処理を比較します。プロンプト Reply with exactly the word TEST で再現し、JSONL の履歴ファイルを調べます。完了の条件は、完了したダッシュボードの実行で assistant のレスポンスが表示され、ローカルに assistant のエントリが書き込まれることです。
索引モデルが issue の本文から書いたものです。
説明
Summary
Command Code CLI sends requests successfully and the usage dashboard shows completed runs/token usage, but the CLI never displays or saves the assistant response. The request appears to hang indefinitely in both Windows PowerShell and WSL.
Environment
- Command Code CLI: 0.32.3
- Account shown by
commandcode status:rikitikitavi2012-debug - Windows: PowerShell, installed via npm global wrapper in
C:\Users\User\AppData\Roaming\npm - WSL: Ubuntu 24.04 on WSL2
- Node tested:
- Windows Node from
C:\Program Files\nodejs\node.exe - WSL Node v24.12.0
- WSL Node v22.22.1
- Windows Node from
Proxy setup
The issue reproduces with the normal proxy setup used on this machine:
- Windows:
- SOCKS tunnel:
ssh -D 1080 ... - HTTP bridge:
http-proxy-to-sockslistening on127.0.0.1:8001 - CLI tested with:
HTTP_PROXY=http://127.0.0.1:8001HTTPS_PROXY=http://127.0.0.1:8001
- SOCKS tunnel:
- WSL:
HTTP_PROXY=http://127.0.0.1:8118HTTPS_PROXY=http://127.0.0.1:8118privoxyforwards to SOCKS5127.0.0.1:1080
What works
These commands work in both Windows and WSL:
commandcode status
commandcode --list-models
commandcode info
The dashboard also shows completed runs and consumed credits/tokens after attempted prompts. Example from the dashboard:
- Status:
COMPLETED - Model:
moonshotai/Kimi-K2.5 - Mode:
agent - Input/output tokens are counted
- Cost is consumed
Manual unauthenticated POST checks through the proxy also reach the API and return the expected 401 response:
curl -X POST https://api.commandcode.ai/alpha/generate \
-H 'content-type: application/json' \
--data '{}'
Response:
{"success":false,"error":{"code":"UNAUTHORIZED","status":401,"message":"Invalid 'Authorization' header or token."}}
What fails
Generation hangs and produces no visible output:
commandcode -p --model moonshotai/Kimi-K2.5 "Reply with exactly the word TEST"
Also reproduced with:
commandcode --model moonshotai/Kimi-K2.5
Then sending a first message such as:
привет
The UI shows a running state such as reviewing/mapping/ruminating, but no assistant response appears.
Local history result
After a failed interactive prompt, local Command Code history contains only the user message and no assistant message.
Windows example:
C:\Users\User\.commandcode\projects\c-users-user\417de20a-54a8-410f-9cc1-595140c811fc.jsonl
Contains:
{"role":"user","content":[{"type":"text","text":"привет"}]}
No role: "assistant" entry appears.
WSL showed the same behavior in ~/.commandcode/projects/.../*.jsonl.
Expected behavior
If the dashboard shows the run as completed, the CLI should display the assistant response and save it to local history.
Actual behavior
The backend appears to complete the run, but the CLI never receives/displays/saves the final assistant response.
Notes
This does not look like a simple auth/account/model issue because status, --list-models, and the usage dashboard all work. It looks like either a CLI streaming/response handling bug or an incompatibility with the proxy chain used for long-running generation responses.
Please advise how to debug the streaming response path or whether there is a known issue/workaround for proxied environments.
- 主要言語
- 言語のデータがありません
- スター
- 4k
- フォーク
- 350
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommandCodeAI/command-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/command-code#855 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CommandCodeAI/command-code#841 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/command-code#655 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/command-code#608 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
CommandCodeAI/command-code#893 ·
CommandCodeAI/command-code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
qgis/QGIS-Documentation#11275 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
milvus-io/birdwatcher#545 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
area:tools bug good first issue help wanted priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
TaewoooPark/Motifcode#14 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
newrelic-experimental/preflight#793 · コメント 1 件 ·