Skip to content

ui: copy the displayed text of grouped agentic responses - #27832

Merged
ServeurpersoCom merged 2 commits into
ggml-org:masterfrom
ServeurpersoCom:fix/agentic-responses-copy
Aug 31, 2026
Merged

ServeurpersoCom merged 2 commits into
ggml-org:masterfrom
ServeurpersoCom:fix/agentic-responses-copy

Conversation

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

Overview

Fix the clipboard copy button for agent loop results.

Additional information

Agentic sessions render as a single entry anchored on the first assistant turn, whose content is typically just the first tool call, so the copy button wrote an empty string to the clipboard. Derive the text sections of the whole session and copy them joined, matching the visible response. Plain messages keep the previous behavior.

Fixes #27831

Requirements

Agentic sessions render as a single entry anchored on the first
assistant turn, whose content is typically just the first tool call,
so the copy button wrote an empty string to the clipboard. Derive the
text sections of the whole session and copy them joined, matching the
visible response. Plain messages keep the previous behavior.
@ServeurpersoCom
ServeurpersoCom requested a review from a team as a code owner August 27, 2026 21:27
@tftranslate

Copy link
Copy Markdown

I confirm this fixes my #27831 .

@allozaur
allozaur requested a review from ggerganov August 31, 2026 11:36
@ServeurpersoCom
ServeurpersoCom merged commit 774ee0e into ggml-org:master Aug 31, 2026
6 checks passed
ilmmatias pushed a commit to ilmmatias/llama.cpp that referenced this pull request Sep 1, 2026
)

* ui: copy the displayed text of grouped agentic responses

Agentic sessions render as a single entry anchored on the first
assistant turn, whose content is typically just the first tool call,
so the copy button wrote an empty string to the clipboard. Derive the
text sections of the whole session and copy them joined, matching the
visible response. Plain messages keep the previous behavior.

* const
thecodacus pushed a commit to thecodacus/llama.cpp that referenced this pull request Sep 7, 2026
)

* ui: copy the displayed text of grouped agentic responses

Agentic sessions render as a single entry anchored on the first
assistant turn, whose content is typically just the first tool call,
so the copy button wrote an empty string to the clipboard. Derive the
text sections of the whole session and copy them joined, matching the
visible response. Plain messages keep the previous behavior.

* const
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
)

* ui: copy the displayed text of grouped agentic responses

Agentic sessions render as a single entry anchored on the first
assistant turn, whose content is typically just the first tool call,
so the copy button wrote an empty string to the clipboard. Derive the
text sections of the whole session and copy them joined, matching the
visible response. Plain messages keep the previous behavior.

* const
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.

Misc. bug: [WEBUI]: Copy to clipboard fails to copy anything

4 participants