Skip to content

fix: match Codex plugin hooks to supported event fields - #61

Merged
TerminallyLazy merged 1 commit into
mainfrom
codex/plugin-host-compatibility
Sep 8, 2026
Merged

TerminallyLazy merged 1 commit into
mainfrom
codex/plugin-host-compatibility

Conversation

@TerminallyLazy

@TerminallyLazy TerminallyLazy commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Codex 0.151 reports warnings when a stop hook declares additionalContextLimit: only startup hooks can emit that context. Keep the limit on SessionStart and SubagentStart, remove it from Stop and SubagentStop, and bump the Codex plugin to 0.3.6 so installed caches refresh.

Validated with the repository package checks, including all four event forwarders and suppression when managed project hooks own the lifecycle. The warning was observed through the installed Codex host's hooks/list API. This changes plugin packaging only; CLI 0.15.6 remains the runtime release.

High-level PR Summary

This PR fixes a Codex 0.151 compatibility issue by removing the additionalContextLimit field from stop hooks (Stop and SubagentStop events) since only startup hooks can emit additional context. The field is correctly retained on SessionStart and SubagentStart hooks. The plugin version is bumped from 0.3.5 to 0.3.6 to refresh installed caches, and validation tests are updated to match the new hook configuration.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 plugins/tree-ring-memory/.codex-plugin/plugin.json
2 plugins/tree-ring-memory/packaging/codex-skills-only/.codex-plugin/plugin.json
3 plugins/tree-ring-memory/README.md
4 plugins/tree-ring-memory/hooks/codex-hooks.json
5 scripts/validate-plugin-packages.py

Need help? Join our Discord

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 9a91dbea-7b92-4415-961a-622713772181

📥 Commits

Reviewing files that changed from the base of the PR and between c807d3f and 1a88e2f.

📒 Files selected for processing (5)
  • plugins/tree-ring-memory/.codex-plugin/plugin.json
  • plugins/tree-ring-memory/README.md
  • plugins/tree-ring-memory/hooks/codex-hooks.json
  • plugins/tree-ring-memory/packaging/codex-skills-only/.codex-plugin/plugin.json
  • scripts/validate-plugin-packages.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@TerminallyLazy
TerminallyLazy merged commit 889b7c6 into main Sep 8, 2026
2 of 3 checks passed
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