cody icon indicating copy to clipboard operation
cody copied to clipboard

feedback: allow copying the raw model response for a message, not only the rendered markdown

Open ValentinFunk opened this issue 1 year ago • 1 comments

Version

1.34.0

Areas for Improvement

  • [X] UI/UX
  • [ ] Onboarding
  • [ ] Docs
  • [X] Chat
  • [ ] Commands
  • [ ] Context
  • [ ] Response Quality
  • [ ] Other

What needs to be improved? Please describe how this affects the user experience and include a screenshot.

I'd like to be able to copy the message that the model outputs the way that it outputs them instead of trying to copy the rendered output. E.g. when I ask the model to generate a PR description it will do it but I cannot copy the structure because all formatting gets lost.

This is useful for:

  • Generating PR descriptions
  • Generating structured documentation comments
  • Generating README.md files for projects
  • Generating tech specs to paste into Notion
  • Generating slack replies with code blocks embedded
  • Generating Shortcut stories (project management tool allowing markdown)

Describe the solution you'd like to see

Add a "copy raw / view raw" button to assistant responses

Describe any alternatives that could be considered

You can already ask the model to double wrap markdown in markdown code tags. This breaks as soon as the model also includes code examples. E.g. I ask the model to generate a tech spec with example code or cite specific code. The workaround now does not work anymore, after the first code block the response is again rendered in the formatted way which means I cannot copy it for markdown.

Additional context

No response

ValentinFunk avatar Sep 06 '24 14:09 ValentinFunk