You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Input text typed during a pending permission prompt is lost after accepting/rejecting #21320
When a prompt is submitted and OpenCode is processing a response, the user may start typing a follow-up message in the input field. If OpenCode pauses to request a permission approval during this time, the text already typed in the input field is silently cleared after the user accepts or rejects the permission. There is no draft recovery or restoration of the in-progress text.
Plugins
@mohak34/opencode-notifier@latest
OpenCode version
1.3.17
Steps to reproduce
Send a prompt that will trigger a permission request (e.g. one that involves a bash, edit, or task tool call)
While OpenCode is thinking/processing, start typing a new message in the input field
When the permission prompt appears, accept or reject it — the text you typed is gone
This applies to more than just a permission request. If you switch to a subagent output while you have some draft text written in the message bar, then switching back to the main agent to send it will also lose the state.
Activity
nicobao commentedon Apr 7, 2026
Reproduced in Kitty terminal. I don't have the OP's plugin.
OverHash commentedon Apr 10, 2026
This applies to more than just a permission request. If you switch to a subagent output while you have some draft text written in the message bar, then switching back to the main agent to send it will also lose the state.
OverHash commentedon Apr 10, 2026
See #21120, this issue is a duplicate.