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_enabled boolean
  • 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.

Command icon 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

paulsheldrake created an issue. See original summary.

  • paulsheldrake committed d8cc7bb9 on 1.x
    Issue #3586603: Add configurable setting to disable typewriter animation...
paulsheldrake’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.