release: agentcairn 0.24.2 Codex hook hotfix#130
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
agentcairn | b8e0edd | Commit Preview URL Branch Preview URL |
Jul 12 2026, 10:56 PM |
ccf
marked this pull request as ready for review
July 12, 2026 23:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ships agentcairn 0.24.2 and Codex plugin 0.1.2 with the SessionStart/SessionEnd dispatch fix.
argsarrays.Root cause
hooks.codex.jsondeclared each handler ascommand: "sh"plus a separateargsarray. Codex command hooks execute thecommandstring and do not dispatch that separate array. The result was bareshreceiving the SessionStart JSON on stdin, interpreting the JSON as a shell command, and exiting with code 127.Impact
Fresh Codex sessions no longer show
SessionStart hook (failed): hook exited with code 127. SessionEnd uses the same corrected dispatch shape. The scripts themselves and their failure-tolerant behavior are unchanged.Verification
0.24.2Local
shellcheckwas unavailable; the plugin workflow installs and runs it in CI.Release
After merge, tag
v0.24.2. The tag workflow publishes the wheel and sdist to PyPI; then create the GitHub Release from the 0.24.2 changelog entry and reinstall/dogfood the released artifacts.Note
Low Risk
Plugin hook JSON and version/changelog only; no changes to core memory, auth, or vault logic.
Overview
Releases agentcairn 0.24.2 and the Codex plugin 0.1.2 with a hotfix for broken SessionStart/SessionEnd hooks.
Codex command hooks only run the documented
commandstring; separateargswere ignored, so handlers ran bareshwith hook JSON on stdin and failed with exit 127.hooks.codex.jsonnow uses one string per event, e.g./bin/sh "${PLUGIN_ROOT}/scripts/session-start.sh"(same for session-end); hook scripts are unchanged.Tests assert the handler shape (no
args) and that the SessionStart command actually executes the script with JSON on stdin. Changelog and version bumps cover the package and Codex plugin manifest.Reviewed by Cursor Bugbot for commit b8e0edd. Bugbot is set up for automated code reviews on this repo. Configure here.