[BUG] Cannot disable auto updater without disabling auto updater
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 0.2.19
- Operating System: macOS 15.3.2
- Terminal: Ghostty
Bug Description
I have claude code installed in a way that it cannot auto update, which is fine. I use claude code in my editor, and don't like being bothered everytime with the "Enable automatic update?" message. To prevent this, I have some setup code in my editor to run claude config set -g autoUpdaterStatus disabled. The problem with this is that this command cannot be run in a non-interactive fashion, as it also dispalys the "Enable automatic update?" message before actually setting the config, so it ends up hanging when run non-interactively.
Steps to Reproduce
- Install claude-code in a way that it does not have the correct permission to update
- Try to run
claude config set -g autoUpdaterStatus disablednon-interactively - That command will never return because it's waiting for input in the "Enable automatic updates?" window
Expected Behavior
I wouldn't expect claude-code to hang asking me if I want to enable automatic updates when running a command that should explicitly disable automatic updates.
Actual Behavior
The command hangs, because it's waiting for additional user input.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗