Skip to content

v0.4.1 — Fix Claude Code hook PATH handling

Choose a tag to compare

@TheoV823 TheoV823 released this 04 May 18:57

Patch fix for the Claude Code hook on Windows (Microsoft Store Python).

Problem: mneme-hook.exe could launch successfully while the Python Scripts directory was not on PATH, causing the inner mneme check subprocess to fail with FileNotFoundError and the hook to silently fail open — edits were allowed through without being checked.

Fix: Replace ["mneme", "check", ...] with [sys.executable, "-m", "mneme", "check", ...]. sys.executable is the same interpreter that is running the hook, which always has mneme installed, regardless of PATH.

Regression test added: test_subprocess_uses_sys_executable_not_bare_mneme

Upgrade: pip install --upgrade mneme