-
Notifications
You must be signed in to change notification settings - Fork 10k
feat(permission): add YOLO mode to auto-approve all permission prompts #11833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Found a potentially related PR: Related PR:
The current PR (#11833) takes a more refined approach with the YOLO mode that:
The other permission-related PRs (#5905, #5841, #8855) are about granular permission configurations for specific resource types, not auto-approval mechanisms, so they're not duplicates. |
|
Thanks for finding the related PR! Here's how this compares to #7137 (
Key safety improvement: This PR only auto-approves This is a clean split from the closed #9972 — focused solely on YOLO mode (multi-account OAuth is in separate PR #11832). |
b52b495 to
d5efe4a
Compare
|
I've been waiting anxiously for this. Can we merge soon :) |
0f36d51 to
ffedeb7
Compare
ffedeb7 to
1413d78
Compare
Add YOLO mode that automatically approves all tool permission prompts (while still respecting explicit deny rules in config). - Yolo namespace: enable/disable/toggle with bus events - Flag: OPENCODE_YOLO env var support - Permission: auto-approve 'ask' rules when YOLO is active - Bootstrap: initialize Yolo on startup from config - Config: yolo boolean field + GET/POST /config/yolo routes - Settings UI: YOLO section with session-only and persistent modes - SDK: regenerated with yolo endpoints
1413d78 to
f6a869b
Compare

Summary
opencode --yolo), and env var (OPENCODE_YOLO=true)Closes #11831
Changes
Backend
yolo/index.tsflag/flag.tsOPENCODE_YOLOenv var supportpermission/next.tsproject/bootstrap.tsconfig/config.tsyolo: booleanconfig fieldserver/routes/config.tsGET/POST /config/yoloendpointsFrontend
settings-general.tsxSDK
Safety
denyrules are always respected, even in YOLO mode