Problem/Motivation
The chat interface uses a character-by-character typewriter animation for new assistant messages. While visually appealing, some sites may prefer instant
display for performance or UX reasons. There is currently no way to disable this effect without custom code.
Proposed resolution
Add a configurable checkbox "Enable typewriter effect" under the UI Configuration section of the settings form at
/admin/config/ai/ai-rag-search-chat.
Changes:
- Config schema: add
ui.typewriter_enabledboolean - Default config:
typewriter_enabled: true(backwards compatible) - Settings form: checkbox under UI Configuration
- ChatPageController: pass setting to JS via
drupalSettings.aiRagChat.ui.typewriterEnabled - chat-interface.js: check the setting before calling
revealTextContent()
Remaining tasks
Review and merge.
Issue fork ai_rag_search_chat-3586603
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
paulsheldrake commented