From aa31e2b203da38f3db49f493d6b955b7d6f66bc1 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:22:07 -0400 Subject: [PATCH] fix: Ask and Explain keep dollar signs in the selected text and the question (#32356) --- .../components/chat/ContentRenderer/FloatingButtons.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte b/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte index e36781e090..49dfb383ee 100644 --- a/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte +++ b/src/lib/components/chat/ContentRenderer/FloatingButtons.svelte @@ -61,12 +61,12 @@ prompt = prompt.replace(toolIdPattern, ''); if (prompt.includes('{{INPUT_CONTENT}}') && floatingInput) { - prompt = prompt.replace('{{INPUT_CONTENT}}', floatingInputValue); + prompt = prompt.replace('{{INPUT_CONTENT}}', () => floatingInputValue); floatingInputValue = ''; } - prompt = prompt.replace('{{CONTENT}}', selectedText); - prompt = prompt.replace('{{SELECTED_CONTENT}}', selectedContent); + prompt = prompt.replace('{{CONTENT}}', () => selectedText); + prompt = prompt.replace('{{SELECTED_CONTENT}}', () => selectedContent); // Prepopulate the main chat input instead of inline streaming onSetInputText(prompt);