Repository navigation
Description
Note
On behalf of Marvel Tiyjudy, written by Claude Code (Claude Opus 5.5, claude-opus-5-5, reasoning level xhigh).
What version of Codex CLI is running?
codex-cli 0.156.1 (the latest on npm when filed)
What subscription do you have?
ChatGPT Plus/Pro
Which model were you using?
GPT-6-Astra
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
Windows Terminal (PowerShell)
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1790279595s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.156.1",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\<user>\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\<user>\\.codex\\app-server-daemon",
"dedicated pid file": "C:\\Users\\<user>\\.codex\\app-server-daemon\\daemon.pid (missing)",
"dedicated update-loop pid file": "C:\\Users\\<user>\\.codex\\app-server-daemon\\daemon-updater.pid (missing)",
"mode": "ephemeral",
"pid file": "C:\\Users\\<user>\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\<user>\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\<user>\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "C:\\Users\\<user>\\.codex\\auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "C:\\Users\\<user>\\.codex",
"active thread overrides": "not inspected",
"config.toml": "C:\\Users\\<user>\\.codex\\config.toml",
"config.toml parse": "ok",
"configuration load ms": "10",
"configuration scope": "invocation config, including cloud-managed policy",
"cwd": "C:\\Users\\<user>",
"enabled feature flags": "<redacted>",
"feature flag overrides": "none",
"feature flags enabled": "51",
"log dir": "C:\\Users\\<user>\\.codex\\log",
"mcp servers": "0",
"model": "<default>",
"model provider": "openai",
"sqlite home": "C:\\Users\\<user>\\.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
"PATH git #1": "C:\\Program Files\\Git\\mingw64\\bin\\git.exe",
"PATH git #2": "C:\\Program Files\\Git\\cmd\\git.exe",
"PATH git entries": "2",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "false",
"selected git": "C:\\Program Files\\Git\\mingw64\\bin\\git.exe"
},
"remediation": null,
"durationMs": 77
},
"git.worktree.dev_drive": {
"id": "git.worktree.dev_drive",
"category": "git",
"status": "ok",
"summary": "no Git worktree is active",
"details": {},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "C:\\Users\\<user>\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin\\codex.exe",
"current executable": "C:\\Users\\<user>\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin\\codex.exe",
"install context": "standalone (windows, package C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc, bin C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc\\bin, resources C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc\\codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 73
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars": "none",
"respect system proxy": "disabled"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 150
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 0 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 762
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "C:\\Users\\<user>\\AppData\\Local\\Programs\\OpenAI\\Codex\\bin\\codex.exe",
"install method": "standalone (windows, package C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc, bin C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc\\bin, resources C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc\\codex-path)",
"platform": "windows-x86_64",
"version": "0.156.1"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search command found (bundled); execution not verified",
"details": {
"search command": "C:\\Users\\<user>\\.codex\\packages\\standalone\\releases\\0.156.1-x86_64-pc-windows-msvc\\codex-path\\rg.exe",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.filesystem_paths": {
"id": "sandbox.filesystem_paths",
"category": "sandbox",
"status": "ok",
"summary": "no explicit filesystem paths to probe",
"details": {},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "none",
"denied-read glob rules": "0",
"denied-read restrictions": "false",
"denied-read rules": "0",
"execve wrapper helper": "none",
"filesystem sandbox": "restricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "restricted",
"sandbox backend": "elevated",
"sandbox provisioning": "complete"
},
"remediation": null,
"durationMs": 4
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "warning",
"summary": "endpoint protection detected; Codex exclusions are unverified",
"details": {
"Codex exclusions": "not verified",
"endpoint products": "Microsoft Defender",
"exclusion targets": "signed Codex app; codex.exe; codex-windows-sandbox-setup.exe; codex-command-runner.exe; codex-code-mode-host.exe"
},
"issues": [
{
"severity": "warning",
"cause": "Microsoft Defender can interfere with Codex. Verify Codex exclusions.",
"measured": "not verified",
"expected": "Codex application and helper exclusions",
"remedy": "Microsoft Defender: Add a certificate or executable-path exclusion for Codex and its helpers. If Attack Surface Reduction blocks Codex, add a rule exclusion. If Controlled Folder Access blocks Codex, allow the app.",
"fields": [
"Codex exclusions"
]
}
],
"remediation": "ask your security administrator to verify Codex exclusions and required helper allowances",
"durationMs": 44
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "C:\\Users\\<user>\\.codex (dir)",
"active rollout files": "0 files, 0 total bytes, 0 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "C:\\Users\\<user>\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\<user>\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\<user>\\.codex\\log (missing)",
"memories DB": "C:\\Users\\<user>\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"memories v2 DB": "C:\\Users\\<user>\\.codex\\memories_v2_1.sqlite (missing)",
"memories v2 DB integrity": "skipped (missing)",
"queue DB": "C:\\Users\\<user>\\.codex\\queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "C:\\Users\\<user>\\.codex (dir)",
"standalone release cache": "6 entries in C:\\Users\\<user>\\.codex\\packages\\standalone\\releases",
"state DB": "C:\\Users\\<user>\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "C:\\Users\\<user>\\.codex\\thread_history_1.sqlite (missing)",
"thread history DB integrity": "skipped (missing)"
},
"remediation": null,
"durationMs": 82
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "openai",
"rollout DB active files": "0",
"rollout DB active rows": "0",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "none",
"rollout DB rows": "0",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "none",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 9
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (248.1 GiB)",
"details": {
"CODEX_HOME available": "248.1 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "248.1 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language nl-NL",
"details": {
"EDITOR": "not set",
"VISUAL": "not set",
"os": "Windows 10.0.26200 (Windows 11 Enterprise) [64-bit]",
"os language": "nl-NL",
"os type": "Windows",
"os version": "10.0.26200"
},
"remediation": null,
"durationMs": 0
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"TERM": "xterm-256color",
"color output": "disabled (stdout is not a terminal)",
"console input code page": "850",
"console output code page": "850",
"stderr console mode": "unavailable",
"stderr is terminal": "false",
"stdin is terminal": "false",
"stdout console mode": "unavailable",
"stdout is terminal": "false",
"terminal": "unknown",
"terminal size": "120x30"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "<user>",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.156.1",
"check for update on startup": "true",
"last checked at": "2026-09-24T19:38:57.985233300Z",
"latest version": "0.156.1",
"latest version status": "current version is not older",
"update action": "standalone installer",
"version cache": "C:\\Users\\<user>\\.codex\\version.json"
},
"remediation": null,
"durationMs": 213
}
}
}(Windows username replaced with <user>.)
What issue are you seeing?
Hooks declared by an Agent Plugins 1.0 plugin are never loaded. After installing the plugin from a git marketplace, /hooks shows Installed 0 for every event, SessionStart included. There is no warning in the TUI or in the log DB.
What steps can reproduce the bug?
- A plugin with a root
plugin.json:{ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "demo", "version": "0.1.0", "extensions": { "com.openai": { "hooks": "./codex-hooks/hooks.json" } } } codex-hooks/hooks.json:{ "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "node \"${PLUGIN_ROOT}/hook.mjs\"", "timeout": 10 } ] } ] } }- Publish it in a git marketplace, then
codex plugin marketplace add <owner>/<repo>andcodex plugin add demo@<marketplace>. - Start
codexand open/hooks:SessionStartshowsInstalled 0.
What is the expected behavior?
Hooks from extensions.com.openai.hooks (and the default hooks/hooks.json) load for Agent Plugins manifests too, behind the usual trust review. If the skip is intentional, a load warning and a docs note would help.
Additional information
Build plugins says hooks can be defined "inside extensions.com.openai in root plugin.json".
Root cause: codex-rs/core-plugins/src/loader.rs returns an empty hook list for Agent Plugins manifests before load_plugin_hooks runs (lines 950-953 on rust-v0.156.1, unchanged on main at 1866e51):
let (hook_sources, hook_load_warnings) =
if loaded_manifest.format == PluginManifestFormat::AgentPlugin {
(Vec::new(), Vec::new())
} else {
load_plugin_hooks(/* ... */)
};The manifest parser does resolve the path (agent_plugin_manifest.rs:211), and line 1134 has the same early return. Because a root plugin.json with the Agent Plugins $schema always wins over .codex-plugin/plugin.json, a plugin cannot keep the portable format and still ship hooks to Codex. Without the root file, a hook declared in .codex-plugin/plugin.json takes the legacy branch, which calls load_plugin_hooks.
Activity
MarvelTiyjudy commentedon Sep 25, 2026
Confirmed the diff matches
main(and 0.157.0). One caveat: with the guard gone, an Agent Plugins manifest withoutextensions."com.openai".hooksresolvespaths.hookstoNone, soload_plugin_hooksfalls back tohooks/hooks.json. That is where Claude Code plugins keep their hooks, so Codex would start running hooks written for another host. A narrower fix only loads hooks forAgentPluginwhenmanifest_paths.hooks.is_some().Reach 0.16.16: Codex lists rEach's hooks for trust again
coreycoto commentedon Oct 5, 2026
Confirmed on codex-cli 0.160.0, macOS arm64. In a fresh temporary Codex home,
plugin/readreports zero hooks for a portable package with explicitextensions.com.openai.hooks, and oneSessionStarthook for the equivalentlegacy package. The probe makes no model requests and does not execute or
trust either hook, so this isolates discovery from trust review.
This currently requires a generated legacy compatibility package for a reusable
workflow plugin. I agree that a fix should preserve normal trust and avoid
adopting hook files intended for another client.
Related design proposal: #51020. It describes plugin-owned roles and
scoped capability requests; this issue remains the specific hook-loading bug.
chore(athena): 10.1.5 scope to installer form, tidy athena layout
fix: usa manifesto legado do Codex para carregar hooks do plugin
binggg commentedon Oct 30, 2026
Adding a production data point, since both issues so far are individual reproductions.
I work on the CloudBase plugin (
TencentCloudBase/CloudBase-MCP), which is distributed to Codex through a git-backed marketplace. A user on codex 0.165.0-alpha.1.2 reported 0 hooks and 0 MCP connections. Reproduced on 0.163.0-alpha.10.2 in an isolatedCODEX_HOME:plugin.jsonwith$schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json→ 0 hooks, 0 MCP serversplugin.jsonmoved aside → 7 hooks, 2 MCP serversThree independent probes, each flipping only that one variable:
skills/<a>/<b>/SKILL.mdis not discovered with the root manifest present (direct-children scan) but is discovered without it (recursive scan). So the manifest changes the detected format, not just the hook path.hooks/hooks.jsonproduces no warning at all with the root manifest present, andfailed to parse plugin hooks config …without it. The file is never opened in theAgentPluginbranch.mcp.jsonfails withfailed to parse plugin MCP config: missing field $schemain theAgentPluginbranch and parses fine in the legacy branch.Point 2 also covers the
extensions.com.openai.hookspath in the title:load_plugin_hooksis only reached in thePluginManifestFormat::Legacyarm ofcodex-rs/core-plugins/src/loader.rs, so nothing declared through the extension can load either. That matches what @coreycoto isolated withplugin/readon 0.160.0.One consequence worth calling out for anyone hitting this:
find_plugin_manifest_pathselects the root manifest whenever its$schemais an agent-plugins.org URI, so there is no way for a package to ship both a spec-compliant root manifest and working hooks. Our workaround is to publish a second package variant without the root manifest for Codex specifically, which restores all 7 hooks and both MCP servers — confirmed in the same sandbox. That is not something we want to maintain long term, so a fix on the Codex side would be very welcome.msanguineti commentedon Nov 7, 2026
Adding a Desktop reproduction and a source recheck as of 7 November 2026.
Environment
26.1023.51421.0.165.0-alpha.1.2.Observed behavior
An installed plugin contains both a portable root
plugin.jsonand.codex-plugin/plugin.json. The portable manifest declaresextensions.com.openai.hooks; the compatibility manifest declares the same path through its top-levelhooksfield. The referenced configuration is present and defines aSessionStartcommand that only echoes a static marker.The plugin’s skills are available in a fresh local Codex chat, but:
Installed manifest/configuration contents were verified. Local invocation diagnostics report hooks enabled and no managed requirements loaded. Those diagnostics do not establish the running Desktop session’s overrides.
The exclusion remains in newer source
I checked
rust-v0.169.0-alpha.2andmain. Both still explicitly return empty hook sources and warnings forPluginManifestFormat::AgentPlugin, bypassingload_plugin_hooks.The loader files have identical Git blob SHA
896e20bea81f20d8ae75d8ba2ec33dcaed0755be.This corroborates the format-specific diagnosis in this issue. The
0.169.0-alpha.2finding is source inspection, not an execution test on that version. I have not independently tested the legacy-only workaround.Could maintainers clarify whether this exclusion is intentional, and whether support for explicitly declared portable-plugin hooks is planned? The current packaging documentation describes
extensions.com.openai.hooksas supported.