fix: Ask and Explain keep dollar signs in the selected text and the question

This commit is contained in:
silentoplayz 2026-10-12 22:41:07 -04:00
parent 93d25dbe3b
commit 4e04cebde6

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