Skip to content

Add Codex hook support#9

Open
Saksham-Bhardwaj wants to merge 2 commits into
simple10:mainfrom
Saksham-Bhardwaj:codex-support
Open

Add Codex hook support#9
Saksham-Bhardwaj wants to merge 2 commits into
simple10:mainfrom
Saksham-Bhardwaj:codex-support

Conversation

@Saksham-Bhardwaj
Copy link
Copy Markdown

@Saksham-Bhardwaj Saksham-Bhardwaj commented Apr 26, 2026

Summary

  • document and configure Codex hook support
  • map Codex hook metadata including type/subtype, turn_id, tool_use_id, and model
  • default Codex notifications to PermissionRequest and cover the behavior with tests

Verification

  • npm run test:scripts
  • cd app/server && npm test
  • cd app/client && npm run build
  • npm run fmt

Notes

  • Codex agent_id remains null because Codex has no subagent concept; turn_id is kept separate so it does not create fake agents.

@Saksham-Bhardwaj Saksham-Bhardwaj changed the title Document Codex support and cover CLI dispatch Add Codex hook support Apr 27, 2026
Saksham-Bhardwaj and others added 2 commits April 28, 2026 00:34
The Codex adapter, .codex/hooks.json, and Codex UI registration already
existed in the repo, but Codex was still listed as roadmap-only and the
CLI boundary had no test asserting AGENTS_OBSERVE_AGENT_CLASS=codex
stamps Codex metadata correctly.

- README: tagline, hook setup section, "How it works" line, and ROADMAP
  updated to reflect Codex as a supported agent class.
- test/hooks/scripts/observe_cli.test.mjs: new test covering the codex
  dispatch path through observe_cli.

Verified locally: npm run test:scripts (219 passing) and the server
suite (240 passing). Live smoke test posted Codex SessionStart,
PreToolUse, PostToolUse, and Stop events end-to-end into the API.
@Saksham-Bhardwaj Saksham-Bhardwaj marked this pull request as ready for review April 27, 2026 19:18
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