[BUG] Auto mode blocks all Bash actions with endless retries when Opus 4.8 classifier is temporarily unavailable
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When the selected model (Opus 4.8) is temporarily unavailable due to capacity, the auto-mode safety classifier — which itself runs on the same model — cannot evaluate Bash actions. Instead of failing gracefully or falling back, every Bash command enters an endless retry loop ("Retrying in Ns · attempt x/10") and the session hangs for minutes at a time.
The blocking error is:
claude-opus-4-8[1m] is temporarily unavailable, so auto mode cannot determine the safety of Bash right now. Wait briefly and then try this action again. If it keeps failing, continue with other tasks that don't require this action and come back to it later.
This effectively makes the whole session unusable for any task involving Bash, even though it's a transient capacity issue and not an account/request problem. The status page showed "All Systems Operational" the entire time, so there was no incident to wait on. Switching to an Opus variant (4.7) did not help since it shares the same capacity pool; only switching to Sonnet resolved it.
What Should Happen?
When the model backing the auto-mode safety classifier is temporarily unavailable, Claude Code should:
- Not enter a silent 10-attempt retry loop that hangs the session for minutes.
- Fail fast with a clear, actionable message after 1–2 attempts.
- Ideally fall back to an available model for the safety classification (or offer to), so Bash actions aren't fully blocked just because the chat model is at capacity.
- Make it obvious that switching to a model on a different capacity pool (e.g. Sonnet) is the workaround.
Error Messages/Logs
Error: claude-opus-4-8[1m] is temporarily unavailable, so auto mode cannot determine the safety of Bash right now. Wait briefly and then try this action again. If it keeps failing, continue with other tasks that don't require this action and come back to it later.
Note: reading files, searching code, and other read-only operations do not require the classifier and can still be used.
Spinner: Retrying in 0s · attempt 1/10
Steps to Reproduce
- Set the model to Opus 4.8 (/model claude-opus-4-8) during a period when Opus is at capacity.
- Ask Claude Code to run any Bash command (e.g. a git/worktree inspection).
- Observe that the auto-mode safety classifier cannot evaluate the action.
- Observe the session entering "Retrying in Ns · attempt x/10" loops and hanging for 30s–2min per attempt.
- Note: switching to Opus 4.7 does not help (same capacity pool); switching to Sonnet 4.6 resolves it immediately.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.158
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- claude --version: 2.1.158 (well above the v2.1.154 minimum for Opus 4.8)
- Anthropic status page showed "All Systems Operational" throughout, so this transient capacity condition is not surfaced as an incident.
- Core issue is the coupling between the auto-mode safety classifier and the chat model: when the chat model is at capacity, the classifier is too, which blocks even unrelated Bash work. Decoupling the classifier model (or a fallback) would prevent full-session blocking.
Showing cached comments. Read the full discussion on GitHub ↗
13 Comments
Update / correction: This is not caused by auto mode.
I disabled auto mode entirely and the problem persists. With auto mode off, a plain Bash command still enters the "Retrying in Ns · attempt 1/10" loop and the session hangs for 2+ minutes (spinner: "Combobulating… 2m 9s").
So the safety classifier is not the trigger. The retries come from the chat model itself (Opus 4.8) being temporarily at capacity — the request goes out, the model doesn't respond in time, and Claude Code retries. Auto mode on/off makes no difference because the failure is one layer lower, at inference time on Opus 4.8.
Additional observations:
The core issue stands regardless of auto mode: when Opus is at capacity, Claude Code retries silently up to 10× with long backoffs instead of failing fast or surfacing the real cause. The earlier framing around the auto-mode classifier was a symptom, not the root.
Further update: Also reproduces on Sonnet 4.6, so this is not Opus-specific.
After switching to Sonnet 4.6 (confirmed in the status bar), a slash command still triggered "Retrying in Ns · attempt 1/10" and hung (~20s, spinner "Meandering…").
Since yesterday's update, I've been encountering an issue where token consumption continues indefinitely after a task fails. Even when a task repeatedly errors out and produces no successful result, the session keeps utilizing tokens without stopping.
This behavior appears to persist across multiple failed task attempts, leading to unnecessary token usage. Beyond the impact on individual users, this may also affect overall resource consumption if others are experiencing the same issue without realizing it.
In my opinion, token usage should stop when a task fails irrecoverably and failed tasks retries should have reasonable limits and clear termination conditions. That way, no tokens go to waste. In addition to this, users should be notified when a task cannot be completed rather than continuing to consume tokens indefinitely.
---
It would be helpful to investigate whether recent changes to task execution, retry logic, or session management introduced a regression causing failed operations to continue consuming tokens unnecessarily.
!Issue
The latest Opus 4.8 update is honestly very disappointing. It makes a lot more mistakes, struggles to complete even simple tasks, and keeps getting stuck in endless loops. As a result, it burns through my usage limits incredibly fast. I'm subscribed to the Max plan, yet I can hit my limit in less than an hour. Before this update, I rarely used even a quarter of my limit while handling several times more work than I do now.
This issue really needs to be addressed because it's becoming extremely frustrating.
Recently, while reviewing its work, I discovered that it had deleted a very important part of my project. What's even more concerning is that it admitted it was wrong to do so. Its explanation was that it had become "tired" of repeatedly running into the same problem, so it decided to delete the code altogether. Yes, seriously—it got frustrated and simply removed the code.
I've been using Claude for a long time and have worked extensively with many different models. I've never seen them get trapped in loops like this or make such basic mistakes. Given the nature of my work, I can confidently say that this update appears to have serious issues. On large projects, it's not just inconvenient—it can be genuinely destructive. It can literally damage a project if you're not constantly monitoring and reviewing every change it makes.
@claude Do we have any update on this issue?
Got similar issue when asked claude to use gitnexus to analyze the codebase. It tried 2 with the same error. The interesting thing is that it was a plan mode, not auto.
I'll use GitNexus to ground the analysis. Let me load the tool schemas and check the index state first.
Used ToolSearch
query:
```
_select:mcp__gitnexus__list_repos,mcp__gitnexus__context,mcp__gitnexus__query,mcp__gitnexus__cypher,mcp__gitnexus__group_list,mcp__gitnexus__detect_changes,mcp__gitnexus__impact
max_results: 7_
This has been like this for weeks. The feature is sadly not usable
2 days like this, Havin Max x20 but not being able to work at speed...
Another note: if a sub-agent has bash denied by auto mode, there is no observability in the main console beyond "bash denied by auto mode". Was it because (most likely) the classifier is broken or because it was a legitimate denial?
Check out https://github.com/anthropics/claude-code/issues/64585 for a potential fix. CLAUDE_CODE_ATTRIBUTION_HEADER=0 breaks auto mode.
This works for me.
Also hitting this tonight (2026-07-20, macOS Darwin 24.5.0, Claude Code CLI, claude-sonnet-5, auto-permission mode).
Exact error text observed, repeatedly, across two separate concurrent sessions:
Pattern matches what's described here:
echo,pwd,ls,gh auth status) eventually succeed, sometimes after 2-3 retries.git commit,git checkout -b,gh issue view/gh issue comment) fail repeatedly on the identical classifier-unavailable error before eventually clearing.+1 on the ask: a fallback to explicit per-command approval (or at minimum a clear "classifier degraded" signal) instead of a silent fail-closed retry loop would make this much less disruptive.
have you tried ?
or maybe removing the env part of the settings.json of claude
for me it worked