[BUG] Status line won't show if "disableAllHooks": true
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?
Statusline won't show up if you have set "disableAllHooks": true.
What Should Happen?
<img width="1379" height="697" alt="Image" src="https://github.com/user-attachments/assets/815bd05a-5d80-4974-bb16-a9509aae52cc" />
The above is the behaviour users see when we don't have "disableAllHooks": true in the user's settings.json
If the user has set that though:
<img width="1368" height="774" alt="Image" src="https://github.com/user-attachments/assets/e46a1fc5-4d28-47c2-afb1-9fc8a625ccff" />
/doctor response:
> /doctor
Diagnostics
└ Currently running: npm-global (2.0.42)
└ Path: /opt/homebrew/Cellar/node/23.7.0/bin/node
└ Invoked: /opt/homebrew/bin/claude
└ Config install method: global
└ Auto-updates: default (true)
└ Update permissions: Yes
└ Search: OK (vendor)
I don't see any mention of this in the debug files either.
Error Messages/Logs
No errors associated with status line visible in logs, doctor also gives you nothing.
Steps to Reproduce
- Set
"disableAllHooks": truee.g.:
/Users/username/Projects/claude/config/settings.json
{
"includeCoAuthoredBy": false,
"permissions": {
"allow": [
"Bash(npm run lint)",
"Bash(npm run test)",
"Bash(npm run build)",
"Bash(git status)",
"Bash(git diff)",
"Bash(git log)"
],
"deny": [
"Read(.env)",
"Read(.env.*)",
"Edit(.env)",
"Edit(.env.*)",
"Bash(npm run package)"
],
"ask": [
"Bash(npm install)",
"Bash(git commit)",
"Bash(git push)"
]
},
"model": "haiku",
"disableAllHooks": true,
"statusLine": {
"type": "command",
"command": "npx -y ccstatusline@latest",
"padding": 0
},
"alwaysThinkingEnabled": true
}
- statusline won't show
- remove
"disableAllHooks": true, - statusline will show
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.42 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗