fix: Ask and Explain keep dollar signs in the selected text and the question (#32356)

This commit is contained in:
G30 2026-10-13 11:22:07 -04:00 • committed by GitHub
parent d34f73066d
commit aa31e2b203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);