Skip to content

WebChat: full chat.history re-fetch on every message causes UI flicker #66762

@pennyworth100

Description

@pennyworth100

Bug Report

Version: 2026.4.14
Platform: macOS (Chrome)
Channel: WebChat (Control UI)

Description

After sending a message in WebChat, the entire conversation flickers for ~1-3 seconds before reappearing. The message briefly disappears after pressing Enter and then reappears.

Root Cause (code analysis)

In control-ui/assets/index-M4TNVXB3.js, the up() function is called after every message send. It clears chatMessages = [] completely and re-fetches full history via chat.history (limit: 200) from scratch instead of appending the new message.

Expected Behavior

New messages should be appended to the existing list without a full history re-fetch. Full re-fetch should only happen on initial load, session switch, or manual refresh.

Impact

Visible flicker on every message, unnecessary network round-trip on every send.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions