This commit is contained in:
Timothy Jaeryang Baek 2025-09-15 16:35:53 -05:00
parent 45da209f85
commit 8b8908fa93

View file

@ -284,12 +284,17 @@
const chatInput = document.getElementById('chat-input');
if (chatInput) {
text = await textVariableHandler(text || '');
if (text !== '') {
text = await textVariableHandler(text || '');
}
chatInputElement?.setText(text);
chatInputElement?.focus();
text = await inputVariableHandler(text);
if (text !== '') {
text = await inputVariableHandler(text);
}
await tick();
if (cb) await cb(text);
}