claude-workspace-trust-fix
Installation
SKILL.md
Claude Workspace Trust Fix
Workaround for a known bug where PreToolUse hooks in ~/.claude/settings.json
are silently skipped in interactive mode. The root cause is that
~/.claude/.claude.json defaults hasTrustDialogAccepted to false for each
project entry, and the trust dialog itself does not set the flag correctly.
-p (non-interactive) mode bypasses the workspace trust check, so hooks appear
to work there but not in interactive sessions.
Affected Versions
Confirmed on v2.1.69 (March 2026). The upstream issues were closed by stale bot without a real fix:
anthropics/claude-codeissue 12100anthropics/claude-codeissue 13288
Fix Procedure
Related skills