mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-16 20:11:53 -05:00
feat: Flexible code block collapse settings #5886
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hz61p1 on GitHub (Jul 27, 2025).
Check Existing Issues
Problem Description
No problem, just improving interaction
Desired Solution you'd like
Currently, there are only two options: collapse or do not collapse. My suggestion is to add a setting that allows you to specify the number of lines after which the block will be collapsed, for example, three options: On, Off, and Custom. When you select Custom, you will be prompted to enter the number of lines after which the code block will be automatically collapsed
Alternatives Considered
No response
Additional Context
No response