fix(ai-chat): harden prompt security against injections, fix login methods detection & align desktop input dock (v3.8.43)

This commit is contained in:
2026-10-28 06:48:10 -03:00
parent 63a90f06ad
commit 1fc653dce8
12 changed files with 305 additions and 181 deletions
+12 -2
View File
@@ -330,7 +330,10 @@
const typing = document.getElementById('aiChatTyping');
const sendBtn = document.getElementById('aiChatSendBtn');
if (textarea) textarea.value = '';
if (textarea) {
textarea.value = '';
textarea.style.height = '24px';
}
appendMessage('user', queryText, [], true);
@@ -510,8 +513,15 @@
appendMessage('assistant', getWelcomeMessage(role, name), getDefaultOptions(role), false);
}
// Atajo Enter en desktop
// Ajuste dinámico de altura y atajo Enter
if (textarea) {
textarea.addEventListener('input', () => {
textarea.style.height = '24px';
const newHeight = Math.min(textarea.scrollHeight, 80);
if (newHeight > 24) {
textarea.style.height = `${newHeight}px`;
}
});
textarea.addEventListener('keydown', (e) => {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault();