Skip to content

[ENHANCEMENT] Add YOLO mode for explicit broad auto-approval - #137

Closed
allquixotic wants to merge 1 commit into
Zoo-Code-Org:mainfrom
allquixotic:zoo-port/yolo-mode
Closed

allquixotic wants to merge 1 commit into
Zoo-Code-Org:mainfrom
allquixotic:zoo-port/yolo-mode

Conversation

@allquixotic

Copy link
Copy Markdown

Related GitHub Issue

Closes: #132

Description

This PR adds an explicit YOLO mode to the auto-approval system.

Key changes:

  • Adds yoloMode to global settings/state plumbing.
  • Updates checkAutoApproval so YOLO mode approves broad tool, MCP, and command categories while preserving denied command prefixes and protected-write boundaries.
  • Keeps follow-up asks/manual choices out of YOLO auto-approval and disables follow-up auto-approval countdowns while YOLO mode is active.
  • Updates the chat auto-approval dropdown so YOLO appears active, individual quick controls are locked, and the displayed enabled count reflects the effective YOLO state.
  • Updates auto-approval settings to expose the YOLO checkbox and lock granular controls while YOLO is active, using cachedState rather than direct live state mutation.
  • Adds tests for YOLO decision behavior and follow-up suggestion behavior.

Reviewer focus:

  • Whether the scope of YOLO approval is acceptable for Zoo Code.
  • Whether the UI language makes the risk clear without adding nagging pop-ups.
  • Whether protected writes and denied command prefixes remain respected.
  • Whether locking granular controls while YOLO is active is preferable to letting users edit them behind the effective YOLO override.

Test Procedure

From the Zoo Code worktree:

pnpm lint
pnpm check-types
pnpm --filter zoo-code test -- core/auto-approval/__tests__/checkAutoApproval.spec.ts
pnpm --filter @roo-code/vscode-webview test -- src/components/chat/__tests__/FollowUpSuggest.spec.tsx src/hooks/__tests__/useAutoApprovalState.spec.ts

Manual verification recommended:

  • Enable YOLO mode in settings.
  • Confirm allowed read/write/MCP/mode/subtask/command flows proceed without repeated confirmations.
  • Confirm denied command prefixes are still blocked.
  • Confirm protected writes still require explicit protected-write configuration.
  • Confirm follow-up questions still wait for user input.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue.
  • Scope: My changes are focused on the linked issue.
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes.
  • Documentation Impact: I have considered if my changes require documentation updates.
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

TODO: Attach screenshots of the YOLO mode setting and auto-approval dropdown.

Documentation Updates

Yes. User-facing docs should explain what YOLO mode approves, what it still blocks, and when users should avoid enabling it.

Additional Notes

Related but not duplicate:

This PR deliberately does not auto-answer follow-up questions in YOLO mode.

Get in Touch

Discord: coorbin

@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d76c0d6d-6f05-489b-8e9f-e318e1c66a8b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

This PR has had no activity for 60 days and will be automatically closed in 7 days unless there is new activity. If you'd like to continue, please rebase and leave a comment.

@github-actions github-actions Bot added the stale-inactive PR closed due to 60+ days of inactivity label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing due to 60+ days of inactivity. Feel free to reopen if you'd like to resume this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale-inactive PR closed due to 60+ days of inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add YOLO mode for explicit broad auto-approval

1 participant