I have successfully created a GitHub issue for the UI performance problem you described. Here's a summary of what was accomplished:
GitHub Issue Created
Issue #9352: "UI Performance: Chat becomes laggy and unresponsive with extremely long user messages"
Link:
https://github.com/All-Hands-AI/OpenHands/issues/9352
Issue Details
The issue comprehensively documents:
1.
Problem Description: UI becomes laggy and unresponsive with extremely long user messages (10+ pages), with render times increasing to 2-3 seconds
2.
Technical Analysis: Identified the root causes:
◦ React Markdown rendering entire messages at once
◦ No message virtualization
◦ Lack of content truncation
◦ Potential unnecessary re-renders
3.
Affected Components: Listed the specific frontend components involved in the chat interface
4.
Proposed Solutions: Both short-term and long-term fixes including:
◦ Message truncation with "show more/less" functionality
◦ Virtual scrolling implementation
◦ Progressive loading
◦ Better memoization
5.
Proper Labeling: Tagged with
frontend
,
performance
,
ui
,
chat
, and
bug
labels for proper categorization
The issue is now tracked in the OpenHands repository and can be prioritized by the development team to improve the chat interface performance for users dealing with long conversations.