Preflight Checklist
What's Wrong?
Setting IS_DEMO=1 in the env section of ~/.claude/settings.json suppresses the workspace trust prompt ("Do you trust the files in this folder?") but does not implicitly grant workspace trust. This puts features requiring workspace trust (such as custom statusLine, hooks, and plugins) into a permanently broken state:
- The statusline shows
statusline skipped · restart to fix
- Restarting does not help because
IS_DEMO suppresses the trust prompt again, preventing trust acceptance
- The only fix is to remove
IS_DEMO from settings, restart, and manually accept the trust prompt
This is the same pattern as #10409, where --dangerously-skip-permissions skipped the trust check without granting trust. That issue was fixed, but IS_DEMO has the same problem.
What Should Happen?
The "statusline skipped · restart to fix" message should explain the actual cause (workspace trust not accepted) instead of suggesting a restart that won't help
Error Messages/Logs
2026-03-23T10:31:12.957Z [DEBUG] Skipping SessionStart:startup hook execution - workspace trust not accepted
2026-03-23T10:31:12.992Z [WARN] Status line command skipped: workspace trust not accepted
2026-03-23T10:31:12.992Z [DEBUG] Skipping StatusLine command execution - workspace trust not accepted
2026-03-23T10:31:12.995Z [DEBUG] Trust not accepted for current directory - skipping plugin installations
2026-03-23T10:31:20.410Z [DEBUG] Skipping SessionEnd:prompt_input_exit hook execution - workspace trust not accepted
Steps to Reproduce
- Add
IS_DEMO=1 to env in ~/.claude/settings.json:
{
"env": { "IS_DEMO": "1" },
"statusLine": { "type": "command", "command": "echo test" }
}
- Launch
claude --debug in any directory where workspace trust has not been previously accepted
- Notice the workspace trust prompt does NOT appear
- Statusline shows
statusline skipped · restart to fix
- Debug logs confirm:
Status line command skipped: workspace trust not accepted
- Restart Claude Code — same result, trust prompt never shown
- Remove
IS_DEMO from settings → restart → trust prompt appears → accept → statusline works
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.1.81
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information

Preflight Checklist
What's Wrong?
Setting
IS_DEMO=1in theenvsection of~/.claude/settings.jsonsuppresses the workspace trust prompt ("Do you trust the files in this folder?") but does not implicitly grant workspace trust. This puts features requiring workspace trust (such as customstatusLine, hooks, and plugins) into a permanently broken state:statusline skipped · restart to fixIS_DEMOsuppresses the trust prompt again, preventing trust acceptanceIS_DEMOfrom settings, restart, and manually accept the trust promptThis is the same pattern as #10409, where
--dangerously-skip-permissionsskipped the trust check without granting trust. That issue was fixed, butIS_DEMOhas the same problem.What Should Happen?
The "statusline skipped · restart to fix" message should explain the actual cause (workspace trust not accepted) instead of suggesting a restart that won't help
Error Messages/Logs
Steps to Reproduce
IS_DEMO=1to env in~/.claude/settings.json:{ "env": { "IS_DEMO": "1" }, "statusLine": { "type": "command", "command": "echo test" } }claude --debugin any directory where workspace trust has not been previously acceptedstatusline skipped · restart to fixStatus line command skipped: workspace trust not acceptedIS_DEMOfrom settings → restart → trust prompt appears → accept → statusline worksClaude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.1.81
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information