feat(permission): add YOLO mode to auto-approve all permission prompts#11833
feat(permission): add YOLO mode to auto-approve all permission prompts#11833mguttmann wants to merge 1 commit intoanomalyco:devfrom
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
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
ffedeb7 to
1413d78
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