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
Input text disappears after permission-modal is shown #21120
This started happening after a new update, but if there's any text in the input as the agent is working, anytime it shows a permission modal, the input text is now cleared.
This was useful to write ongoing comments/questions as the agent was finishing a current task.
version: 1.3.15
arch: MacOS
Plugins
No response
OpenCode version
1.3.15
Steps to reproduce
Start a task
Write something in the input
Wait for a permission modal to showup. Accept/Reject, and the input text disappears.
Screenshot and/or share link
No response
Operating System
MacOS
Terminal
Kitty
Reacted by Nicolas Gimenez, OverHash, Evan Weible, jandillenkofer, Kangaroux, Noah Dommaschk Burwell, Pedro Pombeiro and Guillaume
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 9, 2026
Also Kitty. Also happens in 1.4.2.
OverHash commentedon Apr 10, 2026
29f7dc073#diff-ac546dd32bc846999ff811172f32c802b0a0c224dd92d712027c38b260be4c78 is probably where this broke
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.
fix: preserve prompt input across unmount/remount cycles
fix: preserve prompt input across unmount/remount cycles