Repository navigation
fix hook context output - Fixes #533 - #534
danielmorozoff wants to merge 6 commits into
Conversation
fix hook context output
|
Hi, Severity: remediation recommended | Category: correctness How to fix: Parse and validate echoed JSON Agent prompt to fix - you can give this to your LLM of choice:
Found by Qodo code review |
…egression guard) additionalContext was already present in _CODEX_HOOK; add a test so it cannot be silently removed in future refactors. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Summary
systemMessageinstead of unsupportedhookSpecificOutput.additionalContext..gitignore.Why
Newer CLI versions reject hook output containing
additionalContextwith:PreToolUse hook returned unsupported additionalContextThe generated hook had regressed to a Claude-specific output shape.
Validation
.venv/bin/pip install -e '.[all]'.venv/bin/pip checkenv HOME=/tmp/graphify-pytest-home .venv/bin/python -m pytest -q.venv/bin/graphify update .systemMessageand noadditionalContext.Fixes #533
Resolves #533