[GH-ISSUE #5539] [BUG]: UI flickering/shaking when pasting scripts with '#' characters on Integrated GPU (Intel HD 4600) #5157

Closed
opened 2026-06-05 14:52:21 -04:00 by yindo · 5 comments
Owner

Originally created by @JuanSystems on GitHub (Apr 26, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5539

Originally assigned to: @angelplusultra on GitHub.

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

When pasting scripts or text containing multiple # characters (such as Python comments or shell scripts), the UI starts shaking or flickering intensely. This occurs in both the Desktop application and the browser-based version.
The issue appears to be caused by the real-time Markdown rendering engine in the input field. On older hardware (Intel 4th Gen), the "Layout Reflow" triggered by interpreting # as headers (H1, H2, etc.) overwhelms the Integrated GPU, causing visual instability.
Steps to Reproduce:
Use a PC with Intel Integrated Graphics (e.g., i5-4xxx series).
Open any workspace in AnythingLLM.
Paste a script (50+ lines) containing many # characters.
The screen begins to shake/flicker during and after the paste.
Workaround (Temporary Solution):
The flickering stops if the user manually wraps the script in triple backticks ( ``` ) before pasting. This forces the UI to treat the content as a code block from the start, preventing the Markdown engine from trying to render every # as a layout-changing header.
Environment:
OS: Windows
CPU: Intel Core i5-4th Gen
GPU: Intel HD Graphics 4600 (No dedicated GPU)
Log Error: [ERROR:ffmpeg_common.cc(959)] Unsupported pixel format: -1
Expected Behavior:
The input field should either have an option to disable real-time Markdown preview or handle it more efficiently to prevent UI crashes/flickering on low-end hardware.

Are there known steps to reproduce?

No response

LLM Provider & Model (if applicable)

No response

Embedder Provider & Model (if applicable)

No response

Originally created by @JuanSystems on GitHub (Apr 26, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5539 Originally assigned to: @angelplusultra on GitHub. ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? When pasting scripts or text containing multiple # characters (such as Python comments or shell scripts), the UI starts shaking or flickering intensely. This occurs in both the Desktop application and the browser-based version. The issue appears to be caused by the real-time Markdown rendering engine in the input field. On older hardware (Intel 4th Gen), the "Layout Reflow" triggered by interpreting # as headers (H1, H2, etc.) overwhelms the Integrated GPU, causing visual instability. Steps to Reproduce: Use a PC with Intel Integrated Graphics (e.g., i5-4xxx series). Open any workspace in AnythingLLM. Paste a script (50+ lines) containing many # characters. The screen begins to shake/flicker during and after the paste. Workaround (Temporary Solution): The flickering stops if the user manually wraps the script in triple backticks ( ``` ) before pasting. This forces the UI to treat the content as a code block from the start, preventing the Markdown engine from trying to render every # as a layout-changing header. Environment: OS: Windows CPU: Intel Core i5-4th Gen GPU: Intel HD Graphics 4600 (No dedicated GPU) Log Error: [ERROR:ffmpeg_common.cc(959)] Unsupported pixel format: -1 Expected Behavior: The input field should either have an option to disable real-time Markdown preview or handle it more efficiently to prevent UI crashes/flickering on low-end hardware. ### Are there known steps to reproduce? _No response_ ### LLM Provider & Model (if applicable) _No response_ ### Embedder Provider & Model (if applicable) _No response_
yindo added the UI/UXpossible bugneeds info / can't replicate labels 2026-06-05 14:52:21 -04:00
yindo closed this issue 2026-06-05 14:52:21 -04:00
Author
Owner

@JuanSystems commented on GitHub (Apr 27, 2026):

Confirmed: Issue resolved in AnythingLLM v1.12.1.
However, I’ve noticed a lingering issue with long scripts: the screen no longer trembles, but the message disappears entirely. The response only becomes visible after refreshing the page a short while later. This suggests a persistence or asynchronous rendering issue with large outputs.

<!-- gh-comment-id:4329656138 --> @JuanSystems commented on GitHub (Apr 27, 2026): Confirmed: Issue resolved in AnythingLLM v1.12.1. However, I’ve noticed a lingering issue with long scripts: the screen no longer trembles, but the message disappears entirely. The response only becomes visible after refreshing the page a short while later. This suggests a persistence or asynchronous rendering issue with large outputs.
Author
Owner

@timothycarambat commented on GitHub (Apr 28, 2026):

However, I’ve noticed a lingering issue with long scripts: the screen no longer trembles, but the message disappears entirely. The response only becomes visible after refreshing the page a short while later. This suggests a persistence or asynchronous rendering issue with large outputs.

Can you submit a screen recording of this to clarify the bug and for us to reproduce?

<!-- gh-comment-id:4337396848 --> @timothycarambat commented on GitHub (Apr 28, 2026): > However, I’ve noticed a lingering issue with long scripts: the screen no longer trembles, but the message disappears entirely. The response only becomes visible after refreshing the page a short while later. This suggests a persistence or asynchronous rendering issue with large outputs. Can you submit a screen recording of this to clarify the bug and for us to reproduce?
Author
Owner

@JuanSystems commented on GitHub (Apr 28, 2026):

I reverted the update to 1.12.1 because simply when sending the message with the script, it disappeared, and after a while, when reloading, it would reappear with the response. A behavior worse than that of the tremor I show in this gif.

In this case, it's a log. The same thing happens with scripts that have #

Image
<!-- gh-comment-id:4339139934 --> @JuanSystems commented on GitHub (Apr 28, 2026): I reverted the update to 1.12.1 because simply when sending the message with the script, it disappeared, and after a while, when reloading, it would reappear with the response. A behavior worse than that of the tremor I show in this gif. In this case, it's a log. The same thing happens with scripts that have # <img width="1109" height="1008" alt="Image" src="https://github.com/user-attachments/assets/a6f8a64e-fec6-4d8b-a6ed-78ac5064aad4" />
Author
Owner

@timothycarambat commented on GitHub (Apr 29, 2026):

Ah, this should have been solved with https://github.com/Mintplex-Labs/anything-llm/pull/5473 in 1.12.2 - if youre on 1.12.1 youre gonna see flickering. So need to solve the real bug with vanishing messages to fix both for you.
@angelplusultra lets see what is going on here.

<!-- gh-comment-id:4348291067 --> @timothycarambat commented on GitHub (Apr 29, 2026): Ah, this should have been solved with https://github.com/Mintplex-Labs/anything-llm/pull/5473 in 1.12.2 - if youre on 1.12.1 youre gonna see flickering. So need to solve the real bug with vanishing messages to fix both for you. @angelplusultra lets see what is going on here.
Author
Owner

@angelplusultra commented on GitHub (Apr 30, 2026):

Closing this for now as I can't reproduce this bug. The collapsed prompt bubble flickering bug should have been fixed in #5473 which was released in 1.12.1

<!-- gh-comment-id:4354845191 --> @angelplusultra commented on GitHub (Apr 30, 2026): Closing this for now as I can't reproduce this bug. The collapsed prompt bubble flickering bug should have been fixed in #5473 which was released in `1.12.1`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5157