CommandCodeAI / CommandCodeAI/command-code
Background agent result causes “200 Failed to process successful response”
還沒有人認領這個 Issue。
- 主要語言
- 沒有語言資料
- 星號
- 4k
- 分支
- 350
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Summary
I was running a session with two background agents. One finished normally, but the second one ran for a very long time and eventually stopped with an error.
When I continued the main session, it tried to retrieve the result of that agent with AGENT(output). The result actually appeared in the UI (... +12 lines), but immediately after that Command Code returned:
Error: 200 Failed to process successful response
Typing continue just brings me back to the same problem, so the session is effectively stuck.
Trace ID: bb9fe6a5d866dd91c2d545423130da57
The main model was GLM-5.3-Flash through Fireworks and was working normally before this happened. I’m attaching the session JSONL as well.
Expected Behavior
If a background agent finishes or fails, the main agent should be able to retrieve whatever result/status is available and continue working.
A failed background agent should not make the parent session unusable.
Actual Behavior
The background agent result seems to be available because AGENT(output) displays it in the UI, but Command Code then fails with:
200 Failed to process successful response
The current turn stops and continuing the session causes the same issue again.
Steps to reproduce the issue
- Start a session and let the main agent launch a background agent.
- In my case the background agent ran for a long time (~139 minutes) and eventually errored.
- Continue the parent session and ask it to retrieve the background agent result.
- Command Code calls AGENT(output).
- The agent output appears to be returned, but the parent turn immediately fails with 200 Failed to process successful response.
- Type continue and the session gets stuck on the same point again.
Command Code Version
1.39.3
Operating System
macOS
Terminal/IDE
Terminal
Shell
zsh
Session file (optional)
3075aad8-c5ec-4898-a3ec-7a736d98ad02.jsonl.zip
For context, the problematic background agent had run for ~139 minutes, used ~1.88M tokens over 23 turns, and then errored.
Fix prompt (optional)
No response
Additional context
OS: macOS Tahoe 26.6.2
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先檢查附加的 session JSONL 中 AGENT(output) 呼叫及後續 Command Code error 附近的內容。如果可能,重現長時間執行的背景代理程式失敗,然後追蹤傳回的結果和失敗狀態如何被處理。當父 session 可以取得結果或狀態,並且不必重複 200 錯誤即可繼續時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 領域
- ai, cli
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100