Skip to content

XML content lost when using copy button on task page #3648

@KJ7LNW

Description

@KJ7LNW

Which version of the app are you using?

v3.16.5

Which API Provider are you using?

Anthropic

Which Model are you using?

sonnet-3.5

What happened?

When clicking the copy button on an existing task on the main front status page, the XML content structure is lost. Only the values inside the XML tags are copied, not the complete XML structure.

Expected behavior: The copy button should copy the entire original message content provided by the user.

Steps to reproduce

  1. Create or navigate to a task that contains XML content (such as a write_to_file operation)
  2. Click the copy button on the task
  3. Paste the copied content

The pasted content only contains the values from inside the XML tags, not the complete XML structure.

Relevant API REQUEST output

Original content:

<write_to_file>
<path>.txt</path>
<content>test_insert</content>
<line_count>0</line_count>
</write_to_file>

After copying, only the following is retained:

.txt
test_insert
0

Additional context

This issue affects the ability to easily copy and reuse XML tool commands from the task page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions