Describe the solution you'd like
When generating long code, the copy code button will move with the code block generation and stay in the top right corner, so that you don't have to slide to the top to copy the code every time.
Here's how it's implemented on the ChatGPT official website: https://chatgpt.com
Originally created by @fangyuan99 on GitHub (Sep 27, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5767
**Describe the solution you'd like**
When generating long code, the copy code button will move with the code block generation and stay in the top right corner, so that you don't have to slide to the top to copy the code every time.
Here's how it's implemented on the ChatGPT official website: https://chatgpt.com


Good suggestion! Perhaps the Run button for running code blocks within the chat could also float. And it wouldn't hurt to give the two options (Run & Copy Code) slightly more spacing between the buttons + an icon before the text label within each button for better visuals. Just my two cents being thrown into OP's feature request, as it would be a few QOL adjustments that I can hop on board with.
<!-- gh-comment-id:2381938906 -->
@silentoplayz commented on GitHub (Sep 30, 2024):
Good suggestion! Perhaps the `Run` button for running code blocks within the chat could also float. And it wouldn't hurt to give the two options (`Run` & `Copy Code`) slightly more spacing between the buttons + an icon before the text label within each button for better visuals. Just my two cents being thrown into OP's feature request, as it would be a few QOL adjustments that I can hop on board with.
What exactly is "broken again"?
Just like attention, context is also everything.
<!-- gh-comment-id:3697624873 -->
@silentoplayz commented on GitHub (Dec 29, 2025):
> broken again
What exactly is "broken again"?
Just like attention, context is also everything.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @fangyuan99 on GitHub (Sep 27, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5767
Describe the solution you'd like
When generating long code, the copy code button will move with the code block generation and stay in the top right corner, so that you don't have to slide to the top to copy the code every time.
Here's how it's implemented on the ChatGPT official website: https://chatgpt.com


@silentoplayz commented on GitHub (Sep 30, 2024):
Good suggestion! Perhaps the
Runbutton for running code blocks within the chat could also float. And it wouldn't hurt to give the two options (Run&Copy Code) slightly more spacing between the buttons + an icon before the text label within each button for better visuals. Just my two cents being thrown into OP's feature request, as it would be a few QOL adjustments that I can hop on board with.@tjbck commented on GitHub (Oct 6, 2024):
Added to dev!
@Svyable commented on GitHub (Dec 29, 2025):
broken again
@silentoplayz commented on GitHub (Dec 29, 2025):
What exactly is "broken again"?
Just like attention, context is also everything.