CommandCodeAI / CommandCodeAI/command-code
CLI Issue - Losing Connection Mid-Prompt
還沒有人認領這個 Issue。
- 主要語言
- 沒有語言資料
- 星號
- 4k
- 分支
- 350
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Summary
CommandCode registers a failure.
Expected Behavior
Completed prompt with an implementation report.
Actual Behavior
Error: Connection error.
Type "continue" to try again. If the issue persists, contact support:
https://commandcode.ai/discord
Trace ID: 2ad8ca50de4a82e887c4ac68dbd0215c
Steps to reproduce the issue
- Run any prompt requiring reasoning
Command Code Version
1.54.0
Operating System
macOS
Terminal/IDE
Terminal
Shell
bash
Session file (optional)
Attatched
Fix prompt (optional)
Please investigate and repair a recurring CommandCode platform/runtime connectivity failure affecting autonomous coding turns.
This issue has now occurred at least THREE TIMES across DIFFERENT, UNRELATED PROMPTS/WORKFLOWS. The repeated failures are not specific to the repository task shown below.
Environment:
- Command Code version: v1.54.0
- Models in the most recent affected session: mimo-v2.5-pro · taste-1
- Host: macOS
- Most recent failure: September 14, 2026
SEVERITY / SCOPE
This should be investigated as a recurring CommandCode infrastructure, runtime, model-routing, or session-management defect.
The same general failure has occurred at least three times while executing unrelated prompts. This substantially reduces the likelihood that the underlying cause is the specific codebase, prompt, repository operation, or task being executed.
Please do NOT focus the investigation on repairing the user’s repository or application code. The autonomous QA/IT investigation should focus on CommandCode itself and its managed dependencies.
MOST RECENT INCIDENT
CommandCode was executing:
Review the prompt, ncaa_repair_sep_14.txt, and execute.
The agent operated normally for approximately 35 seconds and successfully performed numerous READ, LIST, GLOB, SEARCH, and SHELL operations.
The final successful shell operation completed normally and returned:
Games in Sept 8-16 window: 303
Immediately afterward, CommandCode failed with:
⚠ Error: Connection error.
CommandCode instructed:
Type "continue" to try again. If the issue persists, contact support.
Trace ID:
f162a2399c6ab11ab3279a106bb1caaa
The user entered:
continue
Instead of recovering the turn, CommandCode reported:
Cannot run /feedback while Command Code is working. Press Esc or Ctrl+C to interrupt the current turn first.
It then produced another:
⚠ Error: Connection error.
Second Trace ID:
2ad8ca50de4a82e887c4ac68dbd0215c
CommandCode then opened the GitHub feedback workflow and exported:
command-code-session-a836e855.html
RECURRING FAILURE PATTERN
This is not an isolated occurrence.
At least two additional connection failures have occurred during other, unrelated CommandCode prompts.
Those incidents involved different work/tasks, making the common factor CommandCode rather than the specific NCAAF workflow shown in the latest session.
Please correlate available account/client/backend telemetry across recent sessions rather than examining only the two trace IDs above.
INVESTIGATION REQUIRED
Determine whether these recurring failures originate from:
- CommandCode backend/gateway connectivity
- model-provider connectivity
- model routing or failover
- streaming/session transport
- long-lived request handling
- context/session persistence
- tool-result serialization or ingestion
- tool execution → model handoff
- backend worker termination/recycling
- timeout handling
- rate limiting
- authentication/session token handling
- client/backend state synchronization
- network retry logic
- another CommandCode-managed dependency
Please specifically determine whether there is a relationship between the failures and autonomous turns involving multiple sequential tool calls.
RECOVERY PATH DEFECT
There also appears to be a separate or related defect in failure recovery.
CommandCode explicitly instructed the user to type:
continue
After doing exactly that, the client reported:
Cannot run /feedback while Command Code is working.
This suggests a possible client/backend state synchronization defect.
Please investigate whether:
- The frontend considered the turn failed while the backend still considered it active.
- A backend worker remained marked as running after its connection was lost.
- continue was incorrectly routed or interpreted.
- Recovery attempted to interact with /feedback unexpectedly.
- The session contained stale turn state.
- The original model/worker could no longer be reached.
- The retry mechanism failed to reconstruct or resume the previous agent state.
TRACE / TELEMETRY CORRELATION
Please investigate:
f162a2399c6ab11ab3279a106bb1caaa
2ad8ca50de4a82e887c4ac68dbd0215c
Also search the user’s recent CommandCode telemetry for the other connection failures occurring around the same period.
The purpose is to determine whether all three incidents share:
- the same backend exception;
- the same model/provider;
- the same gateway;
- the same worker lifecycle event;
- the same timeout;
- the same streaming failure;
- the same client state transition;
- or another common infrastructure signature.
If the previous incidents have their own trace IDs available in telemetry, please include them in the correlation analysis.
REPRODUCTION
Attempt to reproduce the failure using autonomous turns that:
- run for an extended period;
- perform many sequential READ/SEARCH/SHELL operations;
- return moderately large tool outputs;
- transition repeatedly between tool execution and model reasoning;
- use mimo-v2.5-pro;
- use other supported models as a control;
- experience an intentionally simulated transient connection interruption;
- attempt continue afterward.
The objective is to separate:
MODEL-SPECIFIC failure
from
COMMANDCODE RUNTIME failure
from
CLIENT/TRANSPORT failure
from
GENERAL INFRASTRUCTURE failure.
REQUIRED VALIDATION
Do not classify the issue as resolved solely because a single prompt completes successfully.
Validate the fix across multiple unrelated autonomous tasks and multiple consecutive tool/model cycles.
At minimum validate:
- Multiple unrelated prompts complete without the recurring connection failure.
- Long autonomous turns remain stable.
- Repeated tool calls do not destabilize the session.
- Tool-result → model transitions remain stable.
- A transient connection interruption can recover correctly.
- continue actually resumes the interrupted turn.
- Agent context and completed work survive recovery.
- Frontend and backend agree on whether a turn is RUNNING, FAILED, or RECOVERABLE.
- Recovery does not incorrectly invoke or conflict with /feedback.
- No repository-specific modifications are required to solve the platform failure.
REQUIRED QA REPORT
Please return:
- Root cause, if established.
- If root cause is not yet established, the highest-confidence failure domain and supporting evidence.
- Whether all three incidents appear related.
- Component/service responsible.
- Whether the defect is:
- CommandCode client,
- CommandCode backend,
- model provider,
- networking/transport,
- model routing,
- session management,
- or another component.
- Explanation of the failed continue recovery behavior.
- Reproduction results.
- Fix implemented.
- Tests/validation performed.
- Remaining uncertainty.
- Temporary CommandCode-side workaround, if applicable.
- Release/version containing the permanent fix, if known.
Do not close this as a repository-specific issue unless telemetry provides affirmative evidence that the user’s local repository caused the CONNECTION failures.
The exported session:
command-code-session-a836e855.html
should be treated as evidence for the most recent occurrence, while the broader investigation should correlate this incident against the other recent connection failures.
Additional context
OS: macOS Tahoe 26.6.2
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 command-code-session-a836e855.html 開始,將 trace ID f162a2399c6ab11ab3279a106bb1caaa 和 2ad8ca50de4a82e887c4ac68dbd0215c 與近期 telemetry 進行關聯。重現包含重複工具呼叫和模擬中斷的長時間自主回合,然後驗證 session 穩定、continue 復原正常、內容脈絡獲得保留,且不與 /feedback 衝突。
由索引模型根據 Issue 內容生成。
評估
- 領域
- backend-api-design, cli, distributed-systems, networking
- Issue 類型
- 缺陷
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 活躍
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100