codex - 💡(How to fix) Fix Make --yolo include hook trust bypass [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#22546Fetched 2026-05-14 03:34:36
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

CLI

What feature would you like to see?

Please make --yolo also enable the existing runtime-only hook trust bypass.

Today --yolo is the short form for --dangerously-bypass-approvals-and-sandbox. It sets approval_policy=never and sandbox_mode=danger-full-access, but untrusted enabled hooks still require passing --dangerously-bypass-hook-trust separately.

For the shortcut mode, it would be more ergonomic if --yolo meant "run without interactive safety prompts for this invocation", including hook trust prompts. Users who need finer-grained behavior can still use the explicit --dangerously-* flags.

Additional information

PR #21768 added --dangerously-bypass-hook-trust as an invocation-scoped escape hatch.

Expected behavior for --yolo:

  • sets the existing runtime-only bypass_hook_trust override
  • does not add a durable config.toml setting
  • does not persist hooks.state changes
  • explicitly disabled hooks remain disabled
  • startup warning mentions hook trust bypass

Use cases: ephemeral or repeated trusted dev environments where stable repo-owned hooks are already vetted by the caller, or simply living dangerously.

Related: #21768 added the separate flag

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Make --yolo include hook trust bypass [1 participants]