anomalyco / anomalyco/opencode
Auto mode causes repeated false permission notifications in terminals
@simonklee is already working on this.
Since Sep 5, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
When using OpenCode Auto mode, permission notifications keep firing even though the permissions are automatically approved and the agent never needs user input.
The underlying issue is that Auto approval currently happens client-side, after the server has already emitted permission.asked. Integrations such as Warp and Orca therefore interpret these requests as requiring user attention.
Expected
Auto-approved permissions should not emit a user-attention event.
Downstream impact
This currently affects at least:
- Orca: stablyai/orca#18950
- Warp: warpdotdev/opencode-warp#26
The Warp PR works around the race downstream by delaying notifications briefly. Fixing the distinction upstream would avoid integrations needing their own suppression logic.
Proposed direction
#47754 moves the Auto decision server-side so covered requests can be resolved before permission.asked is emitted.
The remaining design question is whether TUI Auto should continue affecting all sessions on the connected server, as it effectively does today, or only the current session.
Plugins
No response
OpenCode version
1.18.29
Steps to reproduce
- Run OpenCode in Warp or Orca.
- Enable Auto mode.
- Start a task with permission-gated tool calls.
- Observe repeated permission / blocked notifications.
- The agent continues without requiring input.
Screenshot and/or share link
No response
Operating System
macOS 27.0 Beta (26A5421a)
Terminal
Warp.dev & Orca
Related
#47675 restores the permission.ask plugin hook, allowing a plugin verdict to resolve a request before permission.asked is emitted. It is related because both changes aim to resolve permission requests before they become user-attention events.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.