You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can we add a "/copy-last" command to copy only the last response (like Codex)? #26240
Currently, the /copy slash command copies the full session transcript. I was wondering if we could introduce a way to copy only the last assistant response (similar to how Codex does with their copy feature). This would make it easier to quickly grab and use just the last code output or answer, rather than the entire conversation history.
Is this feasible to implement alongside the current /copy?
Would you consider adding a /copy-last (or similar) command for this purpose?
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: selective message copying from session transcript #22871: [FEATURE]: selective message copying from session transcript — proposes a /copy-with-options command for selectively copying individual messages from a session, which overlaps with the /copy-last concept requested here.
If your request is specifically about a quick "copy only the last response" shortcut (rather than an interactive picker), it may be worth adding a comment there to expand the scope, or confirming whether this is a distinct use case.
Activity
github-actions commentedon May 7, 2026
This issue might be a duplicate of existing issues. Please check:
/copy-with-optionscommand for selectively copying individual messages from a session, which overlaps with the/copy-lastconcept requested here.If your request is specifically about a quick "copy only the last response" shortcut (rather than an interactive picker), it may be worth adding a comment there to expand the scope, or confirming whether this is a distinct use case.
mortalYoung commentedon May 8, 2026
Maybe you could use ctrl+P and find
Copy last assistant messageas alternativekowshik24 commentedon May 15, 2026
Yeah got it! Thanks everyone!
salehMomtaz commentedon Aug 20, 2026
this helped a lot. thanks.