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 件 担当者 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 を短くまとめたダイジェスト。