Skip to content

fix: enhance copy functionality in LogOperationButton for improved text handling - #6571

Merged
wxg0103 merged 1 commit into
v2from
pr@v2@fix_copy_content
Aug 4, 2026
Merged

fix: enhance copy functionality in LogOperationButton for improved text handling#6571
wxg0103 merged 1 commit into
v2from
pr@v2@fix_copy_content

Conversation

@shaohuzhang1

Copy link
Copy Markdown
Contributor

fix: enhance copy functionality in LogOperationButton for improved text handling

Copilot AI review requested due to automatic review settings August 4, 2026 03:19
@wxg0103
wxg0103 merged commit 3361a93 into v2 Aug 4, 2026
5 of 7 checks passed
@shaohuzhang1

Copy link
Copy Markdown
Contributor Author

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@wxg0103
wxg0103 deleted the pr@v2@fix_copy_content branch August 4, 2026 03:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the chat log operation UI to copy a more complete, structured answer payload by assembling text from answer_text_list (when present) instead of copying only answer_text.

Changes:

  • Switch the copy button click handler to pass the full data object rather than data?.answer_text.
  • Add a new copy(data) helper that builds copyable text from answer_text_list and strips <form_rander> blocks before invoking copyClick.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +163 to +165
} catch (e: any) {
copyClick(removeFormRander(data?.answer_text.trim()))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants