[PR #6021] [feat]: prompt stashing #11702

Closed
opened 2026-02-16 18:16:38 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6021

State: closed
Merged: Yes


Some times you have something in your input that you need to preserve but have to send something else before sending it. Prompt stashing allows you to save it.

https://github.com/user-attachments/assets/8e7b637a-bbf2-4392-b9d2-51d1f743f7f1

Adds 3 commands,

  • "Stash Prompt"
  • Puts the current input into prompt-stash.jsonl
  • "Stash Pop"
  • Pops whatever the most recent stashed prompt was
  • "Stash list"
  • Lists all stashed prompts

Matches the prompt history pattern, this could be made more reusable but outside scope of this PR

Reorders store to happen before command.register due to not initializing store before reading from it

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6021 **State:** closed **Merged:** Yes --- Some times you have something in your input that you need to preserve but have to send something else before sending it. Prompt stashing allows you to save it. https://github.com/user-attachments/assets/8e7b637a-bbf2-4392-b9d2-51d1f743f7f1 Adds 3 commands, - "Stash Prompt" - Puts the current input into prompt-stash.jsonl - "Stash Pop" - Pops whatever the most recent stashed prompt was - "Stash list" - Lists all stashed prompts Matches the prompt history pattern, this could be made more reusable but outside scope of this PR Reorders store to happen before command.register due to not initializing store before reading from it
yindo added the pull-request label 2026-02-16 18:16:38 -05:00
yindo closed this issue 2026-02-16 18:16:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11702