Skip to content

Graceful hook degradation when partio binary is missing #181

@jcleira

Description

@jcleira

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions