claude-code - 💡(How to fix) Fix [BUG] When using Opus 4.7, auto-mode no longer works: "claude-opus-4-7 is temporarily unavailable, so auto mode cannot determine the safety of..." [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49266Fetched 2026-04-17 08:46:09
View on GitHub
Comments
3
Participants
3
Timeline
12
Reactions
4
Author
Timeline (top)
labeled ×6commented ×3cross-referenced ×2closed ×1

Error Message

Bash(npm --version) ⎿  Error: claude-opus-4-7 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.

Root Cause

I think this is either a dupe, or a near-dupe of #38537 , but wanted to call it out because it needs a new fix.

Code Example

Bash(npm --version)
  ⎿  Error: claude-opus-4-7 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.

---

Bash(npm --version)
  ⎿  Error: claude-opus-4-7 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.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Auto-mode uses the wrong model by default, and now that Opus has been upgraded to 4-7, it is failing with this message:

Bash(npm --version)
  ⎿  Error: claude-opus-4-7 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.

(Note that if you run "Opus 4.7 (1M context)", the failure message is: claude-opus-4-7[1m] is temporarily unavailable

I think this is either a dupe, or a near-dupe of #38537 , but wanted to call it out because it needs a new fix.

Downgrading to Sonnet allows auto mode to work, as does "manually" downgrading to Opus 4.6 (even though it is not an option in the /model menu): /model claude-opus-4-6

What Should Happen?

Auto mode should continue to work, even if I am using the new default Opus 4.7.

Error Messages/Logs

Bash(npm --version)
  ⎿  Error: claude-opus-4-7 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.

Steps to Reproduce

Use auto-mode with the new Opus 4.7 model Ask Claude code to run any command, and observe failure.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.100

Claude Code Version

2.1.111 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

No response

extent analysis

TL;DR

Downgrade to Opus 4.6 or Sonnet to temporarily workaround the auto-mode failure with Opus 4.7.

Guidance

  • The error message suggests that claude-opus-4-7 is temporarily unavailable, which might be a transient issue or a compatibility problem with the latest version of Claude Code.
  • Try downgrading to Opus 4.6 using the /model claude-opus-4-6 command to see if auto-mode works as expected.
  • If downgrading is not feasible, consider using Sonnet as an alternative model until the issue with Opus 4.7 is resolved.
  • Verify that the issue is indeed related to the Opus 4.7 model by checking if other models, like Sonnet, work correctly in auto-mode.

Example

No code snippet is provided as the issue seems to be related to model compatibility rather than code.

Notes

The issue might be related to a regression introduced in version 2.1.111 of Claude Code, as it worked in the previous version 2.1.100.

Recommendation

Apply workaround: Downgrade to Opus 4.6 or use Sonnet until the compatibility issue with Opus 4.7 is resolved, as it allows auto-mode to function correctly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING