Editing prompts in editor should include some conversation history
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
I recently noticed Claude has the AskUserQuestion tool which is an interactive picker with tabs and all. Looks something like this:
Now I'm not sure this is the best solution, but it is true, that currently answering followup questions is quite the pain, since sometimes it can overflow the screen.
What would be pretty awesome, and probably useful for other things as well, if I could invoke the editor with the previous agent output quoted, instead of just what I have in the prompt, just like when I would be replying to an email in TUI. This would also be useful when I want to write something more complex, but I want the context of where we are (the editor takes over the entire screen so I'm left to remember).
How I imagine this is having a command like editor-reply, and assuming you already had something typed into the prompt it would open your EDITOR with
> This was the LLM output
> Question 1
> Question 2
My partial prompt is here
Answering question inline would be a breeze (and very familiar to people who write emails in a TUI editor).
Testing if comments work
This issue might be a duplicate of or related to existing issues. Please check:
- #3858: Requests ability to edit certain files in PLAN mode, mentions the problem where agents get out of control in EDIT mode - similar concern about editor UX and control flow
- #1798: Feature request for "More"-like functionality in scrolling output - addresses the issue of content overflowing the screen, which is a key pain point mentioned in this issue
- #3547: Small screen compatibility - addresses the problem where output overflows and becomes hard to navigate/read on smaller terminal sizes
- #1098: Copy pasting large text makes scrolling impossible - related to screen space management when dealing with large amounts of text/context
Feel free to ignore if these don't address your specific request for showing LLM output context in the editor with quoted responses.
Yeah we are going to add this to the plan mode
Do you think we can put this under: https://github.com/sst/opencode/issues/3844
@rekram1-node I see that is for tracking the Claude Code style question, which is fine. What do you think about the quote-reply thing I mentioned? I can open a new issue for that or rename this one if that is better for you.
Yeah I think we could rename this one, I get what you're saying
We could have things commented out or something and then you can see the convo history
Yeah I think we could rename this one, I get what you're saying
We could have things commented out or something and then you can see the convo history
Ack. Although I would definitely suggest using quote > instead of comment # .
Yeah I wasn't trying to suggest which variation > works for me, just wanted to communicate we need something that makes it clear that it's commented out
hey, just opened https://github.com/sst/opencode/pull/5563 with a different approach, let me know your thoughts
@dbpolito Im not sure that pr is relevant to this discussion unless I misunderstood?
hmm, maybe not... i saw the mention of AskUserQuestion and thought it was more related to that feature... nvm then