[PR #12633] feat(tui): add auto-accept mode for permission requests #14300

Open
opened 2026-02-16 18:19:06 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12633

State: open
Merged: No


Add a toggleable autoedit mode that automatically accepts edit permission requests with a 'once' reply, while leaving other permissions to prompt the user.

Features

  • New keybind permission_auto_accept_toggle (default: shift+tab) to toggle autoedit mode
  • Visual indicator showing "autoedit" in the prompt when active
  • Autoedit state persisted across sessions via KV store with values "none" or "edit" (default: "edit")
  • When enabled, only edit permission requests are automatically accepted with "once" reply
  • Agent default permission changed to edit: "ask" so users are prompted for edit operations by default
  • CLI run command explicitly sets edit: "allow" for non-interactive workflows

Changes

  • Changed permission_auto_accept from boolean to "none" | "edit" type
  • Set default to "edit" so edit permissions are auto-accepted in TUI by default
  • Added edit: "ask" to agent default permissions for defense-in-depth
  • Updated command bar copy to "Enable autoedit" / "Disable autoedit"
  • Updated visual indicator to "autoedit" without bold styling
  • CLI run command explicitly allows edit permissions for automated workflows
  • Fixed agent tests to expect "ask" for edit permission by default

Security

  • Users will now be prompted to confirm edit operations by default in the TUI
  • The autoedit feature provides convenience while maintaining security through the permission system
  • Non-interactive CLI usage (opencode run) bypasses prompts for automation
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12633 **State:** open **Merged:** No --- Add a toggleable autoedit mode that automatically accepts edit permission requests with a 'once' reply, while leaving other permissions to prompt the user. ## Features - New keybind `permission_auto_accept_toggle` (default: `shift+tab`) to toggle autoedit mode - Visual indicator showing "autoedit" in the prompt when active - Autoedit state persisted across sessions via KV store with values `"none"` or `"edit"` (default: `"edit"`) - When enabled, only edit permission requests are automatically accepted with "once" reply - Agent default permission changed to `edit: "ask"` so users are prompted for edit operations by default - CLI `run` command explicitly sets `edit: "allow"` for non-interactive workflows ## Changes - Changed `permission_auto_accept` from boolean to `"none" | "edit"` type - Set default to `"edit"` so edit permissions are auto-accepted in TUI by default - Added `edit: "ask"` to agent default permissions for defense-in-depth - Updated command bar copy to "Enable autoedit" / "Disable autoedit" - Updated visual indicator to "autoedit" without bold styling - CLI `run` command explicitly allows edit permissions for automated workflows - Fixed agent tests to expect `"ask"` for edit permission by default ## Security - Users will now be prompted to confirm edit operations by default in the TUI - The autoedit feature provides convenience while maintaining security through the permission system - Non-interactive CLI usage (`opencode run`) bypasses prompts for automation
yindo added the pull-request label 2026-02-16 18:19:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14300