[FEATURE]: Export prompt history #8074

Open
opened 2026-02-16 18:09:05 -05:00 by yindo · 2 comments
Owner

Originally created by @daniel-dostal84 on GitHub (Jan 30, 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

I want to export the prompt history from a session so I can review the path I took separate from anything the agent did. Just dumping the entire prompt history as newline separate text into a file is my preference.
The only method I found to do this is to scroll through the prompt history manually and copy/paste it. This would help me make better decisions about how I prompt in the future and allows me to compare different sessions.

Originally created by @daniel-dostal84 on GitHub (Jan 30, 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 I want to export the prompt history from a session so I can review the path I took separate from anything the agent did. Just dumping the entire prompt history as newline separate text into a file is my preference. The only method I found to do this is to scroll through the prompt history manually and copy/paste it. This would help me make better decisions about how I prompt in the future and allows me to compare different sessions.
yindo added the discussion label 2026-02-16 18:09:05 -05:00
Author
Owner

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

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

  • #11231: [FEATURE]:Save the conversation content as required

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

@github-actions[bot] commented on GitHub (Jan 30, 2026): This issue might be a duplicate of existing issues. Please check: - #11231: [FEATURE]:Save the conversation content as required Feel free to ignore if none of these address your specific case.
Author
Owner

@Destreyf commented on GitHub (Jan 30, 2026):

@daniel-dostal84 have you tried the /export session command? it'll write the conversation to a session_xyz.md file.

I don't know how far back it goes, but theoretically it should support exporting the entire history since start.

You can also do /copy to copy the session transcript straight to your clipboard.

There's also another option if do CTRL+P to copy session transcript (same as /copy) or last assistant message, i use the assistant message one all the time to copy json/markdown/etc to preserve formatting.

@Destreyf commented on GitHub (Jan 30, 2026): @daniel-dostal84 have you tried the `/export` session command? it'll write the conversation to a session_xyz.md file. I don't know how far back it goes, but theoretically it should support exporting the entire history since start. You can also do `/copy` to copy the session transcript straight to your clipboard. There's also another option if do CTRL+P to copy session transcript (same as /copy) or last assistant message, i use the assistant message one all the time to copy json/markdown/etc to preserve formatting.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8074