Allow Codex hooks to run silently without rendering completed hook entries

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

When Codex hooks are enabled, each hook invocation renders a visible UI entry such as PreToolUse / completed even when the hook exits successfully and produces no stdout/stderr.

This makes lightweight guardrail hooks visually noisy. In workflows where hooks run before many tool calls, the conversation becomes cluttered with repeated completed hook cards, even though there is no user-actionable information.

Request:

  • Add a way for hooks to be silent on success, for example a hook-level option like "silent": true or "suppressStatus": true.
  • Alternatively, only render hook entries when the hook writes output, blocks an action, or fails.
  • A global Codex setting to hide successful hook lifecycle entries would also solve the problem.

Expected behavior:

Successful hooks with no output should not add visible cards to the conversation.

Current workaround:

Disabling codex_hooks removes the noise, but also disables useful safety guardrails.

Related:

  • #15497 appears to cover a similar issue in the TUI; this request is specifically about suppressing successful no-output hook lifecycle entries in the visible conversation/UI.

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.

  • #18508
  • #18396

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.