Description
When typing text in the input field that has not yet been submitted, any permission prompt or question dialog triggered by OpenCode causes the typed text to be discarded/lost. The user must retype their input after responding to the prompt.
This affects all types of interruptions:
- Permission prompts (e.g.
ask-gated bash commands, edit permissions)
- Question prompts from the model
Steps to reproduce
- Start an OpenCode session
- While the model is responding and triggers a permission prompt (e.g. for a bash command with
"ask" permission), begin typing your next message in the input field
- Observe that after the permission dialog appears, the typed-but-not-submitted text is gone
Expected behavior
Typed-but-not-submitted input should be preserved across permission/question prompts.
Environment
- OpenCode version: v1.4.3
- OS: macOS (darwin)
- Verified this is not caused by:
- Any installed plugins (tested with all plugins disabled)
- tmux (tested outside tmux)
- Hammerspoon keybindings (tested with Hammerspoon quit)
- Custom tui.json keybindings
Additional context
This started occurring approximately 2-3 weeks ago (late March / early April 2026).
Description
When typing text in the input field that has not yet been submitted, any permission prompt or question dialog triggered by OpenCode causes the typed text to be discarded/lost. The user must retype their input after responding to the prompt.
This affects all types of interruptions:
ask-gated bash commands, edit permissions)Steps to reproduce
"ask"permission), begin typing your next message in the input fieldExpected behavior
Typed-but-not-submitted input should be preserved across permission/question prompts.
Environment
Additional context
This started occurring approximately 2-3 weeks ago (late March / early April 2026).