Skip to content

Conversation

@theahura
Copy link
Contributor

Summary

🤖 Generated with Nori

  • Removes the feature gate from the --yolo (alias: --dangerously-bypass-approvals-and-sandbox) CLI flag so it works in minimal Nori builds without requiring the codex-features Cargo feature
  • When the flag is enabled, sets SandboxMode::DangerFullAccess and AskForApproval::Never to bypass all safety mechanisms
  • Maintains conflicts_with_all for codex-features builds to prevent confusing interactions with --full-auto and -a flags

Test Plan

  • Added unit tests verifying the flag is recognized and correctly sets the field
  • Verified all existing TUI tests pass (661 tests)
  • Verified E2E tests pass (68 tests)
  • Verified clippy passes with no warnings

Share Nori with your team: https://www.npmjs.com/package/nori-ai

theahura and others added 4 commits January 18, 2026 00:10
Remove the feature gate from the `--yolo` (alias: `--dangerously-bypass-approvals-and-sandbox`)
CLI flag so it works in minimal Nori builds without requiring the `codex-features` Cargo feature.

When the flag is enabled, it sets:
- `SandboxMode::DangerFullAccess` (no filesystem restrictions)
- `AskForApproval::Never` (no confirmation prompts)

The flag maintains `conflicts_with_all` for codex-features builds to prevent
confusing interactions with `--full-auto` and `-a` approval policy flags.
🤖 Generated with [Nori](https://nori.ai)

Co-Authored-By: Nori <contact@tilework.tech>
The test `dangerous_bypass_flag_rejected_without_codex_features` was asserting
that the flag should be rejected, but we've now deliberately made it available
in all builds. Updated the test to verify the flag IS accepted and added a
test for the --yolo alias.
🤖 Generated with [Nori](https://nori.ai)

Co-Authored-By: Nori <contact@tilework.tech>
The --yolo flag was parsing correctly but the ACP backend was still
prompting for approvals. The run_approval_handler function now checks
the approval policy and auto-approves immediately when
approval_policy == AskForApproval::Never.

This completes the data flow:
CLI --yolo flag → AskForApproval::Never → AcpBackendConfig →
run_approval_handler() → auto-approve
🤖 Generated with [Nori](https://nori.ai)

Co-Authored-By: Nori <contact@tilework.tech>
@theahura theahura merged commit 9ec79a9 into dev Jan 18, 2026
3 checks passed
@theahura theahura deleted the feature/acp-yolo-flag branch January 18, 2026 05:57
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.

2 participants