A bug in Claude Code's PermissionRequest hook allowed hooks to be ignored without error, leading to lost approvals for remote device actions. The issue stemmed from hooks outputting a string decision like "allow" instead of the required JSON object format, which Claude Code's validator would reject. This oversight caused all approvals to be discarded for weeks. Developers are advised to strictly adhere to the validator's JSON schema for hook outputs and implement end-to-end tests to verify actual execution, rather than just intended behavior. AI
IMPACT This bug highlights the critical need for precise output formatting in AI tool integrations to ensure proper functionality and user trust.
RANK_REASON The item details a bug and its resolution within a specific feature of a software product.
Read on dev.to — Claude Code tag →
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →