Description
When you have typed text in the input field (not yet submitted) and then switch to another agent's window (e.g., clicking on a sub-agent or using Ctrl+X to switch sessions), the unsent text is lost when you switch back to the original agent window.
Current behavior
- Start typing a prompt in the input field (don't press Enter)
- Switch to another agent's window or sub-agent
- Switch back to the original agent window
- The text you were typing is gone — input field is empty
Expected behavior
The unsent/draft text in the input field should be preserved when switching between agent windows and restored when switching back. This is standard behavior in most chat/messaging apps and IDEs — draft text survives tab/window switches.
Why this matters
- Users frequently switch between agents to check on sub-agent progress before submitting their next prompt
- Losing drafted text is frustrating and wastes time, especially for long, detailed prompts
- This discourages users from switching context to monitor running tasks, which reduces the usefulness of parallel agent delegation
OpenCode version
1.4.x
Operating System
macOS
Terminal
Any
Description
When you have typed text in the input field (not yet submitted) and then switch to another agent's window (e.g., clicking on a sub-agent or using
Ctrl+Xto switch sessions), the unsent text is lost when you switch back to the original agent window.Current behavior
Expected behavior
The unsent/draft text in the input field should be preserved when switching between agent windows and restored when switching back. This is standard behavior in most chat/messaging apps and IDEs — draft text survives tab/window switches.
Why this matters
OpenCode version
1.4.x
Operating System
macOS
Terminal
Any