Skip to content

Add prompt stash via long-press on send button#46

Merged
mcintyre94 merged 1 commit intomainfrom
explore-stashing-prompts-in-wisp-6bab63cc
Mar 10, 2026
Merged

Add prompt stash via long-press on send button#46
mcintyre94 merged 1 commit intomainfrom
explore-stashing-prompts-in-wisp-6bab63cc

Conversation

@mcintyre94
Copy link
Copy Markdown
Owner

Summary

  • Long-pressing the send button shows a "Stash Draft" context menu action (tray.and.arrow.down)
  • Saves the current input to a single in-memory stash slot and clears the field
  • After any message is sent (whether queued while streaming or dispatched normally), the stash is automatically restored to the input bar
  • Matches Claude Code's ctrl+s stash behaviour — no explicit restore UI needed

Test plan

  • Type a long prompt, long-press the send button, tap "Stash Draft" — field should clear
  • Type a quick question, send it — stash should immediately restore to the input bar
  • Stashing again while something is already stashed overwrites the previous stash
  • Long-pressing when the field is empty shows no context menu
  • Works on iPad/Mac (context menu is right-click on Mac)
  • Unit tests pass: stashDraft_movesInputTextToStash, stashDraft_doesNothingWhenEmpty, stashDraft_overwritesPreviousStash, stashDraft_leavesInputReadyForNextMessage

🤖 Generated with Claude Code

@claude
Copy link
Copy Markdown

claude bot commented Mar 6, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

…send

Long-pressing the send button shows a context menu with "Stash Draft",
saving the current input to a single in-memory stash slot and clearing
the field. After any message is sent (queued or dispatched), the stash
is automatically restored to the input bar — matching Claude Code's
ctrl+s stash behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mcintyre94 mcintyre94 force-pushed the explore-stashing-prompts-in-wisp-6bab63cc branch from c7a4c12 to ea49d41 Compare March 10, 2026 22:25
@mcintyre94 mcintyre94 merged commit 4fea0a1 into main Mar 10, 2026
2 checks passed
@mcintyre94 mcintyre94 deleted the explore-stashing-prompts-in-wisp-6bab63cc branch March 10, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant