Summary
When partio is uninstalled but repo-level git hooks still reference partio _hook, git operations surface noisy failures. Agent tools like Claude Code may display confusing error messages from the hook scripts.
Solution
Update generated hook scripts to check whether the partio binary is available (command -v partio) before invoking it. If missing, print a short warning to stderr and exit 0 so git operations proceed normally.
Why
Improves user experience when partio is removed without running partio disable first. Prevents confusing errors in agent tool UIs and ensures git operations are never blocked by stale hooks.
Source
Inspired by entireio/cli#880
Summary
When
partiois uninstalled but repo-level git hooks still referencepartio _hook, git operations surface noisy failures. Agent tools like Claude Code may display confusing error messages from the hook scripts.Solution
Update generated hook scripts to check whether the
partiobinary is available (command -v partio) before invoking it. If missing, print a short warning to stderr and exit 0 so git operations proceed normally.Why
Improves user experience when partio is removed without running
partio disablefirst. Prevents confusing errors in agent tool UIs and ensures git operations are never blocked by stale hooks.Source
Inspired by entireio/cli#880