Skip to content

Conversation

@allozaur
Copy link
Collaborator

Close #17834

  • Implemented functionality that allows to copy & paste user message including the pasted text
  • Added a Setting that disables separation of prompt text + attached text and copies/pastes all as a single text string
  • Rearranged copy utils into copy.ts file & supplimented with unit tests
  • Reorganized unit tests location in webui project

Demo

demo.mp4

Comment on lines +68 to +74
// Decode HTML entities
const decodedCode = rawCode
.replace(/&/g, '&')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
.replace(/&quot;/g, '"')
.replace(/&#39;/g, "'");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably using DOMParser here to cover all cases possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: webui: copy prompt with the "pasted" attachment

2 participants