← 教程列表
coding

Works in terminal but not as hook

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 7 阅读

Claude Code may run hooks differently. Test by simulating the hook environment: ```powershell $env:CLAUDE_PLUGIN_ROOT = "C:\path\to\plugin" cmd /c "C:\path\to\plugin\hooks\session-start.cmd" ```

← 返回教程列表 AI8899 · 内容仅供学习参考