Hook execution audit logs clutter session terminal output

Resolved 💬 2 comments Opened Apr 10, 2026 by elirantutia Closed Apr 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

1.109.4

What subscription do you have?

plus

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 25.3.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Vibeyard/iTerm

What issue are you seeing?

When hooks are configured (e.g., SessionStart and UserPromptSubmit), their execution logs are printed directly into the session terminal output, cluttering the conversation with noise. Each hook invocation produces multiple lines like:

» Running SessionStart hook
» Running SessionStart hook
» Running SessionStart hook
SessionStart hook (completed)
SessionStart hook (completed)
SessionStart hook (completed)
» Running UserPromptSubmit hook
» Running UserPromptSubmit hook
» Running UserPromptSubmit hook
UserPromptSubmit hook (completed)
UserPromptSubmit hook (completed)
UserPromptSubmit hook (completed)

This appears before every response, even for a simple prompt like "hey". The hook audit log lines are repeated multiple times (3x each in my case, matching the number of configured hooks) and are interleaved with the actual conversation output.

What steps can reproduce the bug?

  1. Setup hook.
  2. Start a session.
  3. Submit a prompt, e.g. "hey"

What is the expected behavior?

Hook execution logs should either be suppressed from the terminal output entirely, shown in a debug/verbose mode only, or at minimum deduplicated and visually separated from the conversation.

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #17105
  • #16993
  • #16743

Powered by Codex Action

oxysoft · 3 months ago

Indexed this hook ticket in the umbrella tracker: #21753

Goal: collect the scattered Codex hook requests and bugs into one parity matrix for Full Claude Code Hook Parity (29+), while preserving this issue as the detailed thread for its specific behavior.