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-code issue 12100
  • anthropics/claude-code issue 13288

Fix Procedure

Related skills
Installs
4
Repository
i9wa4/dotfiles
GitHub Stars
9
First Seen
Mar 22, 2026