Desktop silently skips changed project hooks pending trust with no in-app review path
Open 💬 1 comment Opened Aug 7, 2026 by KingManning
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Environment
- Windows
- Codex Desktop
- Bundled CLI: 0.147.0-alpha.1.2
- Project-local
.codex/hooks.json SessionStartcommand hook
Reproduction
- Mark the project trusted in
~/.codex/config.toml. - Add or change a project-local
SessionStarthook. - Restart Codex Desktop.
- Create a new task in the project.
- Observe that the hook context is absent, with no actionable warning or
hook-review control in Desktop.
- Run the same startup through `codex exec
--dangerously-bypass-hook-trust`; the hook completes and its context is
present.
- Open the interactive CLI, enter
/hooks, and trust the exact definition. - Restart Desktop and create another task; the hook now executes correctly.
Expected
Desktop should clearly report that a discovered project hook is awaiting
review and either:
- provide an in-app review/trust action; or
- explain that
/hooksmust be entered inside an interactive CLI using the
same CODEX_HOME.
The UI should distinguish project trust from command-hook trust.
Actual
The hook is silently skipped. Project trust appears sufficient, but a separate
definition-level approval is required through another surface. Successful hook
execution is also difficult to observe because its developer context is hidden.
Documentation suggestions
- Explicitly distinguish project trust from hook-definition trust.
- Document which surfaces can approve hooks.
- State that
/hooksis an interactive CLI command, not a Desktop prompt or
codex /hooks shell command.
- Explain that any definition change invalidates the previous approval.
- Document how
statusMessageis surfaced—or not surfaced—in Desktop. - Provide a normal, non-bypassed validation procedure.
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action