Skip to content

feat(codexcli): add PermissionRequest hook event - #1566

Merged
dyoshikawa merged 2 commits into
dyoshikawa:mainfrom
saitota:i1565
Apr 27, 2026
Merged

feat(codexcli): add PermissionRequest hook event#1566
dyoshikawa merged 2 commits into
dyoshikawa:mainfrom
saitota:i1565

Conversation

@saitota

@saitota saitota commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Closes #1565

Notes

  • Registration-only change; the converter is already event-name-map driven.
  • statusMessage / decision response fields are out of scope (passthrough via looseObject works).

Tests

Added 3 unit tests in codexcli-hooks.test.ts: forward conversion with Bash matcher, forward with apply_patch / MCP matchers, and reverse conversion.

Local verification

Verified with rulesync convert --from claudecode --to codexcli --features hooks --global against a real ~/.claude/settings.json:

  • PermissionRequest hooks emitted to ~/.codex/hooks.json correctly.
  • ~/.codex/config.toml got codex_hooks = true added without clobbering existing [mcp_servers].

saitota added 2 commits April 25, 2026 22:10
Codex CLI v0.122.0 (2026-04-20) added the PermissionRequest hook event,
fired before approval prompts. Register it in CODEXCLI_HOOK_EVENTS and
canonical->Codex name map so rulesync can emit it in .codex/hooks.json.

Closes dyoshikawa#1565
@dyoshikawa
dyoshikawa merged commit 810fee9 into dyoshikawa:main Apr 27, 2026
6 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner

@saitota Thank you!

@github-actions github-actions Bot mentioned this pull request Apr 27, 2026
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.

Add PermissionRequest hook event for Codex CLI

2 participants