t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Feature]: Add copy action for assistant responses

Open leonardoxr opened this issue 8 months ago • 2 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I am describing a concrete problem or use case, not just a vague idea.

Area

apps/web

Problem or use case

There is already a copy action for markdown code snippets inside assistant messages, but that only helps when the response is rendered as a fenced code block. I want to copy the full assistant response itself, including explanations, commands, and any non-code text, without manually selecting the message

Proposed solution

Add a separate copy control for assistant response messages in the chat timeline. This should be different from the existing markdown code-block copy button and should copy the entire assistant response text, not just an individual code snippet.

Why this matters

Assistant responses are often a mix of prose and code. The existing code-block copy action is useful, but it does not solve the broader need to copy the whole response in one step.

Smallest useful scope

The current option for copying code snippets(the ui) should be reused to also enable the user to copy the whole response

Alternatives considered

No response

Risks or tradeoffs

No response

Examples or references

Image

Contribution

  • [x] I would be open to helping implement this.

leonardoxr avatar Mar 27 '26 03:03 leonardoxr

Opened a PR for this here: https://github.com/pingdotgg/t3code/pull/1477

leonardoxr avatar Mar 28 '26 00:03 leonardoxr

added in https://github.com/pingdotgg/t3code/pull/1211

shivamhwp avatar Apr 11 '26 02:04 shivamhwp