Skip to content

codex-cli 0.120.0 hook failed: unsupported permissionDecision:allow on graphifyy 0.4.2 #249

Closed

Description

@sangdo90

Summary

On graphifyy 0.4.2 with codex-cli 0.120.0, graphify codex install generates a Codex PreToolUse hook that still emits permissionDecision: "allow", and Codex rejects it with:

PreToolUse hook (failed)
  warning: graphify: Knowledge graph exists. Read graphify-out/GRAPH_REPORT.md for god nodes and community structure before searching raw files.
  error: PreToolUse hook returned unsupported permissionDecision:allow

This looks related to earlier Codex hook issues, but the current failure mode is slightly different from the older additionalContext / invalid pre-tool-use JSON output reports.

Environment

  • graphifyy 0.4.2 (installed via pipx)
  • codex-cli 0.120.0
  • macOS

Generated hook

After running graphify codex install, my ~/.codex/hooks.json contains:

{
  "matcher": "Bash",
  "hooks": [
    {
      "type": "command",
      "command": "[ -f graphify-out/graph.json ] && echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"allow\"},\"systemMessage\":\"graphify: Knowledge graph exists. Read graphify-out/GRAPH_REPORT.md for god nodes and community structure before searching raw files.\"}' || true"
    }
  ]
}

Reproduction

  1. Install or upgrade graphify:
pipx upgrade graphifyy
  1. Install Codex integration:
graphify codex install
  1. Make sure graphify-out/graph.json exists in the repo.
  2. Start Codex CLI in that repo and trigger any Bash tool call.
  3. Codex shows the error above on every matching tool invocation.

Expected

The Codex hook should surface the graph reminder without causing a hook-schema failure.

Actual

Codex rejects the generated PreToolUse hook because of permissionDecision: allow:

error: PreToolUse hook returned unsupported permissionDecision:allow

Related history

This seems adjacent to:

From the outside, this looks like either:

  1. the Codex hook template still writes a now-unsupported field/value, or
  2. Codex's accepted PreToolUse hook schema changed again and graphify's generated hook needs another update.

Activity

  1. added a commit that references this issue on Apr 12, 2026
  2. safishamsi commented on Apr 12, 2026

    @safishamsi
    Member

    Fixed in v0.4.4. The Codex hook now uses additionalContext inside hookSpecificOutput instead of permissionDecision:allow. Run graphify codex install to update your .codex/hooks.json.

  3. added a commit that references this issue on Apr 13, 2026
  4. added a commit that references this issue on Apr 23, 2026
  5. added a commit that references this issue on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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