Skip to content

🐛 Issue: code-review-graph hook fails due to unsupported --quiet flag #299

@ccdevpod10

Description

@ccdevpod10

🐛 Issue: code-review-graph hook fails due to unsupported --quiet flag

Description

While running the /plan to preview command, the PostToolUse:Write
hook fails with a blocking error. The failure appears to be caused by an
unsupported CLI flag (--quiet) being passed to the
code-review-graph update command.

Error Output

PostToolUse:Write hook returned blocking error
[code-review-graph update --quiet --skip-flows]: usage: code-review-graph [-h] [-v]
    {install,init,build,update,postprocess,watch,status,visualize,
     wiki,register,unregister,repos,eval,detect-changes,serve} ...

code-review-graph: error: unrecognized arguments: --quiet

Steps to Reproduce

  1. Run /plan to preview
  2. Trigger a Write operation
  3. Observe the failure in the PostToolUse hook

Expected Behavior

The hook should execute successfully and update the code review graph
without blocking the workflow.

Actual Behavior

Execution fails due to an invalid argument:

--quiet

Root Cause (Suspected)

The code-review-graph CLI does not support the --quiet flag, but it
is being passed in the hook configuration.

Suggested Fix

  • Remove the --quiet flag from the hook command:

    "command": "code-review-graph update --skip-flows"
  • Alternatively, verify if a newer version of code-review-graph
    supports --quiet, and upgrade if needed.

Environment

  • CLI Tool: code-review-graph
  • Hook: PostToolUse:Write

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions