From 0bebb260bf4cf0c33cab5e146c74cc6f9288aa06 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Thu, 12 Feb 2026 01:11:41 +0100 Subject: [PATCH] fix: decode HTML entities in tool call results for multi-turn conversations (#20755) --- src/lib/utils/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index d2b1bf76b..734549ef1 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -361,9 +361,9 @@ export const generateInitialsImage = (name) => { const initials = sanitizedName.length > 0 ? sanitizedName[0] + - (sanitizedName.split(' ').length > 1 - ? sanitizedName[sanitizedName.lastIndexOf(' ') + 1] - : '') + (sanitizedName.split(' ').length > 1 + ? sanitizedName[sanitizedName.lastIndexOf(' ') + 1] + : '') : ''; ctx.fillText(initials.toUpperCase(), canvas.width / 2, canvas.height / 2); @@ -519,10 +519,10 @@ export const compareVersion = (latest, current) => { return current === '0.0.0' ? false : current.localeCompare(latest, undefined, { - numeric: true, - sensitivity: 'case', - caseFirst: 'upper' - }) < 0; + numeric: true, + sensitivity: 'case', + caseFirst: 'upper' + }) < 0; }; export const extractCurlyBraceWords = (text) => { @@ -878,7 +878,7 @@ export const processDetails = (content) => { } if (attributes.result) { - content = content.replace(match, `"${attributes.result}"`); + content = content.replace(match, unescapeHtml(attributes.result)); } } }