TabbyML / tabby

Self-hosted AI coding assistant
https://tabbyml.com
Other
21.9k stars 997 forks source link

[VSCode] Buttons inside the code snippets of a chat response flicker while the answer is generating #2995

Open th0rgall opened 2 months ago

th0rgall commented 2 months ago

Context: this is behavior observed in the Chat window of the VSCode TabbyML extension.

See this screen recording for a reproduction:

https://github.com/user-attachments/assets/cc3db7ad-3b03-410b-9d29-eed0ae6da8fe

In the screen recording, I'm hovering and clicking the copy button and pressing Cmd+V into a Raycast floating text window.

Describe the bug

This is probably only a minor visual imperfection. It at least doesn't fully block the function of the button (copy to the clipboard). However, it's possible that the button repeatedly flickers through a state in which it is not functioning (I'm not sure).

In the recording, I'm first pasting a previous result. But after clicking the flickering button several times, I'm able to copy the result while the answer is being generated. This behavior might be either due to the flickering button, or due to something else non-TabbyML related that's going with my clipboard and Raycast's floating text window (I've seen similar delayed clipboard entries before).

After the answer is fully generated, the flickering stops, and the copy function always works.

Information about your version

Information about your GPU M1 Pro

liangfung commented 2 months ago

@th0rgall Thank you for your detailed issue! The rendering of markdown is currently not incremental. I will look into how it can be optimized.