mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 00:10:27 -05:00
[PR #24956] [CLOSED] perf: reduce chat rendering stalls #131611
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24956
Author: @noufalkv
Created: 5/20/2026
Status: ❌ Closed
Base:
dev← Head:perf/tor-chat-rendering-clean📝 Commits (2)
a3a679fperf(renderer): reduce markdown and tool-call mount cost6f4a16aperf(chat): reduce high-latency load stalls📊 Changes
5 files changed (+279 additions, -121 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+40 -22)📝
src/lib/components/chat/Messages/CodeBlock.svelte(+86 -7)📝
src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte(+75 -68)📝
src/lib/components/common/ToolCallDisplay.svelte(+76 -19)📝
src/routes/+layout.svelte(+2 -5)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
Relates to #24949. If one does not exist, create one first. PRs without a linked issue or discussion may be closed without review.devbranch. PRs targetingmainwill be immediately closed.dev, and contains no unrelated commits.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
This PR supersedes #24952 after maintainer feedback. It removes the committed stress-test files and package-script change, leaving only the implementation changes.
This PR was prepared by an autonomous AI coding agent at a user's request, then manually reviewed and tested before marking the checklist item above. Please review it as an ordinary external contribution; no maintainer affiliation is implied.
Validation performed on the cleaned branch:
git diff --check origin/dev...HEADsrc/lib/components/chat/Chat.sveltesrc/routes/+layout.sveltesrc/lib/components/chat/Messages/CodeBlock.sveltesrc/lib/components/chat/Messages/Markdown/MarkdownTokens.sveltesrc/lib/components/common/ToolCallDisplay.sveltenpx vitest run --passWithNoTestsOpen WebUI, no console errors.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.