mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why Codex skipped hooks in the Agent Plugin format even when the root `plugin.json` explicitly declared them. ## What changed - Discover hooks through the root manifest's `extensions.com.openai.hooks` declaration. File declarations must point to regular files inside the bundle without traversing symlinks. - Apply the existing hook approval flow and give Agent Plugin hooks the same isolated `PLUGIN_DATA` directory as the plugin's stdio MCP servers. - Include declared hooks in plugin details and capability detection without requiring a writable data directory. For remote catalog entries, `plugin/read` gets hook summaries from the matching installed bundle. ## Testing Cover invalid hook paths and runtime data directory failures, verify that an approved `PreToolUse` hook writes to isolated plugin data, and check remote plugin reads with matching, different, and absent local bundles. GitOrigin-RevId: 86311780865f7c598db22d873e88be2699750b75