Skip to content

Emit valid JSON objects for Codex hook reports - #49

Merged
cdeust merged 1 commit into
mainfrom
fix/codex-hook-output
Sep 26, 2026
Merged

cdeust merged 1 commit into
mainfrom
fix/codex-hook-output

Conversation

@cdeust

@cdeust cdeust commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • tests/test_hook_output_protocol.py: 7 tests pass locally, four of them failing before the change.
  • Native Codex acceptance after the plugin is installed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mkvy5MtGG89cNLuQSU8xLe

Base automatically changed from feat/disk-hygiene-plugin to main September 26, 2026 20:39
Codex rejects a bare list on stdout for a PostToolUse hook and reported
invalid JSON output. Serialize the cleanup report as a hookSpecificOutput
object for PostToolUse and as a systemMessage for the other events, and
leave the CLI and Claude output unchanged. The deletion policy is not
touched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mkvy5MtGG89cNLuQSU8xLe
Signed-off-by: cdeust <cdeust@icloud.com>
@cdeust
cdeust force-pushed the fix/codex-hook-output branch from 2f816f5 to 93754a8 Compare September 26, 2026 20:41
@cdeust
cdeust merged commit 6d1751c into main Sep 26, 2026
3 checks passed
@cdeust
cdeust deleted the fix/codex-hook-output branch September 26, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant