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

未關閉
#93,509 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:networking bug platform:macos
主要語言
Python
星號
145k
分支
23.1k
PR 合併指標
PR 指標待擷取

描述

## 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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

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.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
macos, zsh
領域
api, cli, networking
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
需要釐清
新手友好度
28/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。