opencode
opencode copied to clipboard
[FEATURE]: Persist prompt draft (Draft Recovery)
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The Problem: Currently, if the prompt window is closed accidentally (e.g., via Ctrl+Z or clicking away) while typing an elaborate prompt, all data is lost. This results in frustration and lost work. As a user, I want the prompt input to automatically save my draft if the window closes (which happens more frequently than one might think).
Solution: Implement a temporary state persistence (auto-save) for the current session. If the window is closed and re-opened, the text field should populate with the previous draft so the user can continue where they left off.