[BUG] statusline not work before trust workspace

Resolved 💬 5 comments Opened Mar 15, 2026 by anthonymarandon Closed Apr 13, 2026

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

  1. Configure ~/.claude/settings.json with:

{
"skipDangerousModePermissionPrompt": true,

"statusLine": {
"type": "command",

"command": "bash ~/.claude/statusline-command.sh"

}

}

  1. Launch "claude" in a terminal.
  1. Observe that the status line is not displayed.
  1. 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_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗