[BUG] statusline not work before trust workspace
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?
The custom statusline no longer appears when Claude Code is launched with the "skipDangerousModePermissionPrompt": true option in settings.json.
What Should Happen?
This bypass mode skips the workspace trust dialog at startup, but never marks the trust as accepted. However, since recent versions (~2.1.74-2.1.76), the execution of the statusline command is conditional on the workspace trust being validated.
Error Messages/Logs
Steps to Reproduce
- Configure ~/.claude/settings.json with:
{
"skipDangerousModePermissionPrompt": true,
"statusLine": {
"type": "command",
"command": "bash ~/.claude/statusline-command.sh"
}
}
- Launch "claude" in a terminal.
- Observe that the status line is not displayed.
- Temporarily disable "skipDangerousModePermissionPrompt",
restart Claude, accept the trust dialog → the status line
works again.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.74
Claude Code Version
2.1.76
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 ↗