Probably an edge case but i've sent an extremely l...
# proj-agent-canvas
c
Probably an edge case but i've sent an extremely long user message (more than 10 pages long) to the UI, and the UI feels a bit laggy but still functioning
r
I saw it as well. The chat wasn't responsive, I had to scroll slowly. It happens during long conversation. If you check page render time - it goes to 2-3 seconds, which is very slow.
c
@nutritious-balloon-65098 creates a GitHub issue for this
n
I'm on it! Xingyao Wang can track my progress here.
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.