You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codex-cli 0.120.0 hook failed: unsupported permissionDecision:allow on graphifyy 0.4.2 #249
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
Install or upgrade graphify:
pipx upgrade graphifyy
Install Codex integration:
graphify codex install
Make sure graphify-out/graph.json exists in the repo.
Start Codex CLI in that repo and trigger any Bash tool call.
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
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.
Activity
fix #261, #249, #266 and bump to 0.4.4
safishamsi commentedon Apr 12, 2026
Fixed in v0.4.4. The Codex hook now uses
additionalContextinsidehookSpecificOutputinstead ofpermissionDecision:allow. Rungraphify codex installto update your.codex/hooks.json.fix Graphify-Labs#261, Graphify-Labs#249, Graphify-Labs#266 and bump …
fix #261, #249, #266 and bump to 0.4.4
fix Graphify-Labs#261, Graphify-Labs#249, Graphify-Labs#266 and bump …
codex-hooks: fix PreToolUse "unsupported permissionDecision:allow"