anthropics / anthropics/claude-code

Constant 'API Error / Disconnected / Retry x of 10' on 2.1.268 (macOS 26.2) — auto-mode classifier also timing out

Đang mở
#93,509 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:networking bug platform:macos
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

## Environment
- Claude Code **2.1.268**, terminal CLI
- macOS **26.2** (Darwin 25.2.0), zsh
- Model: Opus 5 (1M context), auto mode enabled
- Session: https://claude.ai/code/session_015y3YMoa29JTPbynYdepzsT
- Time: 2026-09-11 ~11:00–11:30 AEST (~01:00–01:30 UTC)

## What happens
For the last ~30 minutes nearly every turn hits `API Error … Disconnected … Retry x of 10`. Responses drop mid-stream and the retry loop runs repeatedly before a turn completes; several turns needed most of the 10 retries. The session is long-running (large context) but nothing else on the machine has connectivity problems.

The auto-mode permission classifier is failing in the same way. Verbatim tool error returned to the model on a plain read-only `find`/`ls` command:

```
claude-sonnet-5[1m] is temporarily unavailable (timed out), so auto mode cannot determine the safety of Bash right now. Wait a moment and then try this action again.
```

So both the main model requests (Opus 5) and the classifier requests (Sonnet 5) are timing out server-side in the same window — this looks like an API/edge issue rather than a client network fault.

## Expected
Requests complete without a 10-retry loop; if the API is degraded, a clearer signal than repeated disconnects.

## Notes
- No `~/.claude/debug` logs present to attach; happy to run `claude doctor` or enable debug logging if told which flag.
- status.anthropic.com not yet checked at time of filing — the user asked for this to be logged immediately.

Filed from within the affected session by Claude Code at the user's request.

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

Hướng nghiên cứu

Start by checking status.anthropic.com and reproduce the failures with Claude Code 2.1.268 on macOS 26.2 in zsh. Run claude doctor or enable the debug logging requested in the issue, then compare main-model disconnects with the auto-mode classifier timeout. Done means requests complete without repeated retries, or degraded API conditions produce a clearer signal.

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

Đánh giá

Công nghệ
macos, zsh
Lĩnh vực
api, cli, networking
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
Cần làm rõ
Mức phù hợp với người mới
28/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.