CommandCodeAI / CommandCodeAI/command-code

Background agent result causes “200 Failed to process successful response”

Đang mở
#786 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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
  1. Start a session and let the main agent launch a background agent.
  2. In my case the background agent ran for a long time (~139 minutes) and eventually errored.
  3. Continue the parent session and ask it to retrieve the background agent result.
  4. Command Code calls AGENT(output).
  5. The agent output appears to be returned, but the parent turn immediately fails with 200 Failed to process successful response.
  6. 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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra session JSONL đính kèm xung quanh lệnh gọi AGENT(output) và Command Code error xảy ra sau đó. Nếu có thể, hãy tái hiện lỗi của background-agent chạy trong thời gian dài, sau đó truy vết cách kết quả được trả về và trạng thái thất bại được xử lý. Hoàn tất khi session cha có thể lấy kết quả hoặc trạng thái và tiếp tục mà không lặp lại lỗi 200.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
ai, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.