[FEATURE]: Allow copy of the input prompt #2167

Closed
opened 2026-02-16 17:34:29 -05:00 by yindo · 5 comments
Owner

Originally created by @jcubic on GitHub (Oct 18, 2025).

Originally assigned to: @thdxr 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

OpenCode use custom logic to copy the text. It works ok. But you can't select the prompt that you typed so you can't stash it and use it tater if you want to try something different.

Originally created by @jcubic on GitHub (Oct 18, 2025). Originally assigned to: @thdxr 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 OpenCode use custom logic to copy the text. It works ok. But you can't select the prompt that you typed so you can't stash it and use it tater if you want to try something different.
yindo closed this issue 2026-02-16 17:34:29 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 18, 2025):

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

  • #2232: Preserve Prompt on Ctrl+C - This issue requests that Ctrl+C should clear the prompt but save it in history, allowing the up arrow to bring it back. This is very similar to your request for being able to "stash" and reuse prompts.
  • #2755: feat: Copy Mode for OpenCode - This comprehensive issue requests vim/tmux-like copy mode functionality, including the ability to selectively copy text from various parts of the interface, which would include input prompts.
  • #2118: Add a /copy command to copy latest message (or allow scrolling while selecting text) - While focused on copying messages, this discusses limitations in current copy functionality that could relate to input prompt copying.

The closest match is #2232, which specifically addresses saving/restoring input prompts, though with a slightly different approach (Ctrl+C preservation vs general copy functionality).

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

@github-actions[bot] commented on GitHub (Oct 18, 2025): This issue might be a duplicate of existing issues. Please check: - #2232: Preserve Prompt on Ctrl+C - This issue requests that Ctrl+C should clear the prompt but save it in history, allowing the up arrow to bring it back. This is very similar to your request for being able to "stash" and reuse prompts. - #2755: feat: Copy Mode for OpenCode - This comprehensive issue requests vim/tmux-like copy mode functionality, including the ability to selectively copy text from various parts of the interface, which would include input prompts. - #2118: Add a /copy command to copy latest message (or allow scrolling while selecting text) - While focused on copying messages, this discusses limitations in current copy functionality that could relate to input prompt copying. The closest match is #2232, which specifically addresses saving/restoring input prompts, though with a slightly different approach (Ctrl+C preservation vs general copy functionality). Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 18, 2025):

yeah this will be fixed soon we are currently rewriting tui, should be out next week

@rekram1-node commented on GitHub (Oct 18, 2025): yeah this will be fixed soon we are currently rewriting tui, should be out next week
Author
Owner

@mxsrdesu commented on GitHub (Oct 19, 2025):

it doesn't actually work ok, it messed up my text when I prompted to replace content in some component

so really looking forward to an update on this feature

@mxsrdesu commented on GitHub (Oct 19, 2025): it doesn't actually work ok, it messed up my text when I prompted to replace content in some component so really looking forward to an update on this feature
Author
Owner

@raphaelbahat commented on GitHub (Jan 13, 2026):

Any updates?

@raphaelbahat commented on GitHub (Jan 13, 2026): Any updates?
Author
Owner

@jcubic commented on GitHub (Jan 13, 2026):

The selection inside input seems to work now. Just tested version 1.1.18.

So this can be closed.

@jcubic commented on GitHub (Jan 13, 2026): The selection inside input seems to work now. Just tested version 1.1.18. So this can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2167