claude-code - 💡(How to fix) Fix Desktop app: Message thread duplicates in scroll view, creates phantom scroll height [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51891Fetched 2026-04-23 07:42:08
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Root Cause

Root Cause Hypothesis: Message list virtualization component isn't cleaning up old rendered items as new messages arrive. Virtual list accumulates duplicate DOM nodes.

Fix Action

Fix / Workaround

Workaround: None identified yet.

RAW_BUFFERClick to expand / collapse

Environment:

  • Claude Code Desktop (Mac)
  • Version: Latest

Symptom: Thread renders duplicate messages in the scrollable area, creating excessive scrollbar height relative to actual content.

Reproducibility:

  • Frequent (happens most threads at certain length)
  • Scrollbar height appears 3-4x larger than actual message content
  • Excessive scrolling required to navigate thread

Impact:

  • Navigation becomes tedious, but context window unaffected
  • Appears to be rendering/virtualization issue only

Evidence:

  • Screenshot attached: scrollbar height indicates phantom duplicate DOM elements
  • Clear pattern: scrollable area much larger than visible content

Root Cause Hypothesis: Message list virtualization component isn't cleaning up old rendered items as new messages arrive. Virtual list accumulates duplicate DOM nodes.

Workaround: None identified yet.

Note: User reports correlation with enabling/disabling unidentified plugin, suggesting DOM manipulation is involved.

extent analysis

TL;DR

The issue can likely be fixed by properly cleaning up old rendered items in the message list virtualization component to prevent duplicate DOM nodes from accumulating.

Guidance

  • Investigate the message list virtualization component's rendering and cleanup logic to ensure it correctly removes old items when new messages arrive.
  • Verify that the component is not inadvertently retaining references to old DOM nodes, causing them to remain in the virtual list.
  • Check if the unidentified plugin is manipulating the DOM in a way that interferes with the virtualization component's cleanup process, and consider disabling it or finding an alternative.
  • Review the screenshot and DOM structure to confirm the presence of duplicate DOM elements and understand how they are being generated.

Example

No code snippet can be provided without more information about the virtualization component and its implementation.

Notes

The root cause hypothesis suggests a specific issue with the virtualization component, but without more details about the component's implementation, it's difficult to provide a more specific fix. The involvement of the unidentified plugin adds an additional variable that needs to be considered.

Recommendation

Apply a workaround by disabling the unidentified plugin to see if it resolves the issue, as it may be interfering with the virtualization component's functionality. This can help determine if the plugin is the primary cause of the problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Desktop app: Message thread duplicates in scroll view, creates phantom scroll height [1 participants]