Skip to content

hook: plugin + repo settings double-fire PostToolUse for this repo (P2, dedupe decision) #87

Description

@systemfsoftware-maker

Source: ce-code-review run 20260830-212446-4b8b0529 (adversarial P2/75).

What

.claude/settings.json:5-12 and hooks/hooks.json:2-11 both register PostToolUse Write|Edit|MultiEdit. This branch made both surfaces live (base settings was an inert || exit 0 swallow).

Why it matters

A user with the plugin installed who opens this repo runs the checker twice per write: two 30s budgets, duplicated stderr report on flagged writes, two independent chain implementations that locate the project differently (${PWD:-.} vs CLAUDE_PROJECT_DIR).

Decision needed

Accept double-run, document it, or make settings.json a single source of truth (e.g. skip when the plugin is present). Plus: a committed composition test asserting the two surfaces stay behaviorally equivalent.

Carried by PR #92: #92

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions