opencode/packages
Denys Vitali 8a014113a4 feat: add --yolo flag for auto-approving permissions in web/serve mode
Add a `--yolo` CLI flag to both `opencode web` and `opencode serve` commands
that automatically approves all permission requests without prompting the user.

This is useful for:
- Headless/automated deployments
- CI/CD pipelines
- Development environments where interactive prompts are not desired
- Remote access scenarios where the web UI handles permission decisions

Implementation:
- Added `yolo` boolean option to shared network options in `network.ts`
- Created `applyYoloMode()` helper that sets `OPENCODE_PERMISSION` env var
  with all permissions set to "allow" (bash, edit, read, glob, grep, list,
  task, webfetch, websearch, lsp, skill, etc.)
- Both `web.ts` and `serve.ts` call `applyYoloMode()` before server startup

Usage:
  opencode web --yolo
  opencode serve --yolo

Built exclusively with openrouter/pony-alpha and OpenCode.
2026-02-08 10:59:50 +00:00
..
app fix: properly encode file URLs with special characters (#12424) 2026-02-06 16:16:56 -06:00
console zen: handle 1m context 2026-02-06 13:57:26 -05:00
containers ci 2026-01-29 23:17:57 -05:00
desktop feat(desktop): added Macos support for displaying only installed editors & added sublime text editor (#12501) 2026-02-06 17:21:47 +00:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
enterprise release: v1.1.53 2026-02-05 23:08:56 +00:00
extensions/zed release: v1.1.53 2026-02-05 23:08:56 +00:00
function release: v1.1.53 2026-02-05 23:08:56 +00:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
opencode feat: add --yolo flag for auto-approving permissions in web/serve mode 2026-02-08 10:59:50 +00:00
plugin release: v1.1.53 2026-02-05 23:08:56 +00:00
script ci: use numeric release id instead of gql one 2026-02-04 10:39:17 +08:00
sdk chore: generate 2026-02-06 22:34:23 +00:00
slack release: v1.1.53 2026-02-05 23:08:56 +00:00
ui feat(desktop): Session Review Images (#12360) 2026-02-06 15:01:40 -06:00
util release: v1.1.53 2026-02-05 23:08:56 +00:00
web fix(docs-windows-wsl): update caution note for server security (#12467) 2026-02-06 13:46:32 -06:00