ECA hangs indefinitely on 503 LLM Overload errors during tool generation
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Start by tracing the LLM streaming and tool-generation error handling from the logged OpenAI response error through the server’s completion state. Reproduce with a Gemini model that returns a 503 and inspect how the generation state is finalized after the stream aborts. Done means the error is surfaced to the user and the UI leaves “Generating...” so they can retry or change models.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When the LLM provider returns a 503 Service Unavailable (Overloaded) error during the tool-calling/generation phase, the ECA server does not gracefully handle the failure. Instead of reporting a connection error or retrying, the UI displays Generating... and hangs indefinitely at the @cursor marker.
Environment
- Process:
/home/saulo/.emacs.d/eca/eca server --verbose --log-level debug - Workspace:
~/.emacs.d/ - Mode: Agent
Steps to Reproduce
Set up a Gemini free model (free tier leads to the same more often). E.g., google/gemini-2.5-flash
Initiate a chat with the agent to perform a file edit (e.g., echo "hi" at @/home/saulo/.emacs.d/init.sh).
The LLM begins the response, but the provider returns a 503 error mid-stream.
Observe the chat buffer stuck at:
echo "hi" at @/home/saulo/.emacs.d/init.sh
I will add `echo "hi"` to the `init.sh` file.
Generating...
@cursor(init.org 1:1) @
stop
Attempting to run eca-chat-tool-call-accept-all results in no action.
Logs
The server logs show an unhandled 503 status code from the OpenAI endpoint:
[OPENAI-CHAT] 4952 Unexpected response status: %s body: %s 503 [{
"error": {
"code": 503,
"message": "The model is overloaded. Please try again later.",
"status": "UNAVAILABLE"
}
}]
[OPENAI-CHAT] [4952] response-error {:message "LLM response status: 503 body: [...]"}
Expected Behavior
The ECA server should catch the 503 error, notify the user that the model is overloaded, and terminate the "Generating" state so the user can retry or change models.
Actual Behavior
The process hangs. The stop marker is reached in the buffer, but the internal state machine appears to be waiting for a completion that has been aborted by the server. No logs are produced after the 503 error when trying to interact with the tool calls.
- Ngôn ngữ chính
- Clojure
- Star
- 1k
- Fork
- 82
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của editor-code-assistant/eca
-
Models doesn't work when fetchModels: false is usedCó thể đã có người làm @zikajk đã nhận 13 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
editor-code-assistant/eca#661 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
editor-code-assistant/eca#688 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
editor-code-assistant/eca#685 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
editor-code-assistant/eca#684 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
editor-code-assistant/eca#683 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của editor-code-assistant/eca
Issue tương tự
-
Playwright integration tests time out at 5 seconds on CI despite the 40-second expect settingCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởneeds triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
.Needs Triage .Team/UXWest Priority:P3 Type:Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
metabase/metabase#86195 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
comment above the first :require-macros libspec is hoisted onto the formCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug namespace v1 blocker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
oakmac/standard-clojure-style-js#268 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: server save errors never reach the form (on-save-failed-expr unwraps the mutation result twice)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100