Wire Memory plugin hooks fail on Windows when the user profile path contains spaces (e.g., C:\Users[Windows User Profile With Spaces]).
The hooks.json file uses node ${CLAUDE_PLUGIN_ROOT}/scripts/... in its hook commands, but Claude Code expands ${CLAUDE_PLUGIN_ROOT} and passes the result to the shell without quoting.
On Windows systems where the user directory contains a space, this causes Node to receive a truncated path (e.g., C:\Users[Windows User Profile With Spaces] instead of C:\Users[Windows User Profile With Spaces]...), resulting in a MODULE_NOT_FOUND error on every Stop, PreCompact, and UserPromptSubmit hook invocation. The fix is to wrap the expanded variable in quotes in the command string, e.g., node "${CLAUDE_PLUGIN_ROOT}/scripts/transcript-upload.mjs". Note: the hooks file exists in two locations (plugins/cache/ and plugins/marketplaces/), but Claude Code reads the one in plugins/marketplaces/.
Workaround: Claude just fixes on the spot but warns changes will be overwritten the next time the plugin updates.
Wire Memory plugin hooks fail on Windows when the user profile path contains spaces (e.g., C:\Users[Windows User Profile With Spaces]).
The hooks.json file uses node ${CLAUDE_PLUGIN_ROOT}/scripts/... in its hook commands, but Claude Code expands ${CLAUDE_PLUGIN_ROOT} and passes the result to the shell without quoting.
On Windows systems where the user directory contains a space, this causes Node to receive a truncated path (e.g., C:\Users[Windows User Profile With Spaces] instead of C:\Users[Windows User Profile With Spaces]...), resulting in a MODULE_NOT_FOUND error on every Stop, PreCompact, and UserPromptSubmit hook invocation. The fix is to wrap the expanded variable in quotes in the command string, e.g., node "${CLAUDE_PLUGIN_ROOT}/scripts/transcript-upload.mjs". Note: the hooks file exists in two locations (plugins/cache/ and plugins/marketplaces/), but Claude Code reads the one in plugins/marketplaces/.
Workaround: Claude just fixes on the spot but warns changes will be overwritten the next time the plugin updates.