[BUG] When running Claude Code with a locally hosted model, while in Auto Mode I occasionally see classifier unavailable errors.
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?
Running current Claude Code 2.1.223 (maybe noticed it earlier in 2.1.220?) with a locally hosted model, while in Auto Mode, I occasionally see an error:
Error: claude-sonnet-5 is temporarily unavailable, so auto mode cannot determine the safety of Edit 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.
What Should Happen?
I expect with a local model it'd use the local model as the classifier, or it would skip the classifier with a warning. Mostly Auto Mode works, so it is confusing when this says the classifier isn't available.
Assuming the local model _IS_ used as the classifier; my best guess may be that the hosted LLM is busy serving the coding request and cant spare resources to serve the classifier request in time -- so it times out and this error happens, incorrectly naming 'claude-sonnet-5' as the proposed classifier model.
In any case, if the auto-classifier fails, I'd expect to see a manual permission request.
Error Messages/Logs
Error: claude-sonnet-5 is temporarily unavailable, so auto mode cannot determine the safety of Edit 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
- In my case, run llama.cpp hosted model unsloth/Qwen3.6-35B-A3B-MTP-GGUF/Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf
- Run Claude Code pointed at the locally hosted model
- Do some stuff with Auto Mode turned on until you encounter the error
Claude Model
Other
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.223
Platform
Other
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗