Skip to content

fix(codex): track agent state via hooks - #9

Closed
potoo0 wants to merge 2 commits into
accessd:mainfrom
potoo0:main
Closed

potoo0 wants to merge 2 commits into
accessd:mainfrom
potoo0:main

Conversation

@potoo0

@potoo0 potoo0 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This PR updates the Codex integration to use Codex Hooks instead of relying on notify.

Codex notify currently only emits agent-turn-complete, so it cannot detect approval / permission prompts and is not sufficient for full agent state tracking.

This PR adds Codex Hooks support with the following mapping:

UserPromptSubmit   -> running
PermissionRequest  -> needs-input
Stop               -> done

The old notify setup is removed from the Codex installer path because it only supports turn-complete notifications.

This makes Codex behavior closer to the Claude Code integration and allows tmux-agent-indicator to track Codex state more accurately.

Fixes #8.

@potoo0

potoo0 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Closing this PR because it was opened from my fork's main branch by mistake. Reopened from a dedicated feature branch here: #10

@potoo0 potoo0 closed this Jul 10, 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.

[Integration/Codex] should use Hooks for PermissionRequest instead of notify

1 participant