Cursor-agent (Windows): imported Claude Code hooks are composed as PowerShell but executed with bash, silently blocking every tool call

Hey, thanks for the independent repro and the detailed data points. This really helps.

Three things you added are especially useful, and I passed them to the team along with the context we already collected:

  • hookify as a third provider, which confirms this is not about a specific hook but about the combo of any Claude Code PreToolUse hook and MSYSTEM.
  • The fact that --mode plan is also affected, even though it is not going to write anything.
  • The silent behavior with --print --output-format json (is_error:false, subtype:success at the top level). I agree this is the trickiest part because the harness reads it as a clean success.

Like in the main thread, until there is a fix, the junction workaround with a clean HOME and USERPROFILE is still a working option for headless. You are already doing that.

I can’t share a timeline yet, but I’ll reply here when I have an update. For the opt-out from importing third-party configs, it is best to follow this thread: No way to opt out of third-party (Claude Code / Codex) config loading - the flag is hardcoded