Skip to content

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

Merged
accessd merged 3 commits into
accessd:mainfrom
potoo0:fix/codex-hooks-agent-state
Jul 25, 2026
Merged

accessd merged 3 commits into
accessd:mainfrom
potoo0:fix/codex-hooks-agent-state

Conversation

@potoo0

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

@accessd
accessd merged commit 3344e4a into accessd:main Jul 25, 2026
2 checks passed
@potoo0
potoo0 deleted the fix/codex-hooks-agent-state branch July 25, 2026 07:54
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

2 participants