[FEATURE]: Persist prompt draft (Draft Recovery) #6740

Open
opened 2026-02-16 18:05:06 -05:00 by yindo · 1 comment
Owner

Originally created by @uchm4n on GitHub (Jan 18, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • 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.

Originally created by @uchm4n on GitHub (Jan 18, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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.
yindo added the discussion label 2026-02-16 18:05:06 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6882: Keep initial prompt if closing out of the TUI - directly addresses prompt recovery when accidentally closing the prompt window before sending it to the LLM
  • #8735: Resume questions menu after opencode closed - related feature about resuming and recovering state after closing

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #6882: Keep initial prompt if closing out of the TUI - directly addresses prompt recovery when accidentally closing the prompt window before sending it to the LLM - #8735: Resume questions menu after opencode closed - related feature about resuming and recovering state after closing Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6740