Elffuss BraidHub

utopia-ia/elffuss-code public

The chat log is a polite live region for new messages

Screen readers heard nothing when an answer, a tool result or an error
arrived. #chat-log is role=log with aria-live=polite and
aria-relevant=additions, so new messages are announced while the streamed
text inside the thinking bubble (a text change, not an addition) is not
read token by token. Its label follows the interface language.
Changeset47ed48012e12bea3a12c0867a8d1d48355b0c36f4191b8342f6f9125b9dd829c
AuthorKikoCis <kikocisneros@gmail.com> · 2026-10-10 16:50 +02:00
CommitterKikoCis <kikocisneros@gmail.com> · 2026-10-11 14:15 +02:00
Parentsc020a5bdc1e7

Browse the files at this changeset

2 files changed

modified web/index.html +1 −1
@@ -126,7 +126,7 @@
126126 <button type="button" id="btn-ancho" title="Ensanchar el chat a toda la ventana (vuelve a pulsar para recuperar el editor)">⇔</button>
127127 <div id="conv-tabs"></div>
128128 <div id="history-panel" hidden></div>
129- <div id="chat-log"></div>
129+ <div id="chat-log" role="log" aria-live="polite" aria-relevant="additions" aria-label="Conversación"></div>
130130 <div id="menu" hidden></div>
131131 <div id="composer-wrap">
132132 <div id="ctx-meter" title="contexto acumulado en la conversación">
modified web/js/i18n.js +3 −0
@@ -223,6 +223,7 @@
223223 viewBuilding: "Construyendo…", viewFailed: "No pude construir la vista: {e}", flipChat: "Chat", flipEditor: "Editor",
224224 termClear: "limpiar", tTermClear: "limpiar la pantalla del terminal",
225225 drawerTitle: "Archivos y herramientas",
226+ chatLogLabel: "Conversación",
226227 clearModelsConfirm: "Vas a borrar {size} de modelos guardados en este navegador.\n\nNo se pierde nada tuyo: solo los pesos descargados. La próxima vez habrá que bajarlos otra vez.\n\n¿Seguir?",
227228 clearModelsShared: "Ojo: el almacén compartido de Elffuss no se pudo consultar desde aquí; puede quedar algo guardado ahí.",
228229 clearModelsDone: "💾 Liberados {size}.", clearModelsFailed: "No se pudo vaciar: {what}.",
@@ -447,6 +448,7 @@
447448 viewBuilding: "Building…", viewFailed: "Couldn't build the view: {e}", flipChat: "Chat", flipEditor: "Editor",
448449 termClear: "clear", tTermClear: "clear the terminal screen",
449450 drawerTitle: "Files and tools",
451+ chatLogLabel: "Conversation",
450452 clearModelsConfirm: "You are about to delete {size} of models stored in this browser.\n\nNothing of yours is lost: only the downloaded weights. Next time they will be downloaded again.\n\nContinue?",
451453 clearModelsShared: "Note: Elffuss's shared store could not be checked from here; something may remain stored there.",
452454 clearModelsDone: "💾 Freed {size}.", clearModelsFailed: "Couldn't clear: {what}.",
@@ -495,4 +497,5 @@
495497 '#term-clear': 'tTermClear',
496498 };
497499 for (const [sel, key] of Object.entries(titles)) set(sel, 'title', key);
500+ document.getElementById('chat-log')?.setAttribute('aria-label', t('chatLogLabel'));
498501 }