Repository navigation
Ship Codex activity-marker hooks as a separate hooks-only plugin - #4707
Merged
Merged
Conversation
Codex 0.164+ binds plugin hook approval to a fingerprint of the whole plugin directory. The worktrunk plugin holds the skills mirror and docs next to its hooks, so nearly every release made Codex ask users to approve the unchanged marker hooks again. The four marker hooks move to plugins/worktrunk-markers, which holds only its manifest and real copies of the wt.sh/wt.cmd shims. The worktrunk manifest keeps an empty inline `hooks` object so Codex does not read Claude's hooks/hooks.json. `wt config plugins codex install` adds both plugins and `uninstall` removes both. A test keeps the shim copies byte-identical to plugins/worktrunk/hooks, restricts the markers directory to its three files, and rejects a manifest `version`, since any of those changes re-prompts every user. Closes #4654 Co-Authored-By: Claude <[email protected]>
This was referenced Nov 5, 2026
1 task
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.
Codex 0.164+ ties plugin hook approval to a fingerprint of every file in the plugin directory. The
worktrunkplugin keeps the skills mirror and docs next to its four marker hooks, so almost every release made Codex ask users to approve hooks that hadn't changed (#4654). This PR moves those hooks into a second plugin,worktrunk-markers. It holds only its manifest and copies of thewt.sh/wt.cmdshims, so its fingerprint changes only when the hooks or shims change.wt config plugins codex installadds both plugins, anduninstallremoves both.The design follows the live test max-sixty posted in #4654 on Codex 0.166.0. A skill or README change re-prompted the combined plugin but not a hooks-only one. That test also listed four requirements, and this PR covers each one:
worktrunkplugin updates, its hooks go away silently. The installer adds the markers plugin, and the Codex section of the agent-integration docs now namescodex plugin add worktrunk-markers@worktrunkfor older installs.worktrunkCodex manifest keeps"hooks": {"hooks": {}}, so Codex does not read Claude'shooks/hooks.jsonand warn.test_codex_markers_shims_matchchecks that they matchplugins/worktrunk/hooks/byte for byte, that the directory holds only those three files, and that the manifest has noversion. Neither manifest has aversiontoday, and no release step editsplugin.json.uninstallremoves the markers plugin first.codex plugin removealready exits 0 for a plugin that isn't installed, so older single-plugin installs uninstall cleanly.Verification: the Codex plugin, layout, help and docs-sync tests pass locally, with snapshots updated for the new install and uninstall output. In the sandbox, the full
pre-mergegate stopped oncargo fmt(fixed in this commit) and on test failures that come from the sandbox itself: blocked Unix sockets, a0644signing key, and a nushell autoload file left in the shared home.test_config_show_codex_availablefails the same way onmainhere. Two things are unverified. I haven't run a real Codex session against this branch. I also haven't checked that runningwt config plugins codex installagain succeeds when the marketplace is already registered, which is why the upgrade note in the docs names the directcodex plugin addcommand.Closes #4654