WebUI Bugfix and Improvement #2129
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WebUI Bugfix and Improvement
📋 Overview
This PR introduces significant improvements across multiple components of the LightRAG system, focusing on conversation handling, Chain of Thought (COT) processing, user interface enhancements, and theme switching stability.
1. Fix Conversation History Handling When
history_turnsis 0history_turnswas set to 0history_turns > 0before filtering2. Fix inline code display problem in query test page**
messageRoleProp: Enhanced CodeHighlight component with role-based styling3. Replace Input with Auto-Resizing Textarea in query test page
4. Fix Theme Switching Crashes and Optimize Graph Rendering
Critical Fixes:
NotFoundGraphErrorduring theme switching with defensive programmingPerformance Optimizations:
5. Optimize COT (Chain of Thought) Handling Logic
Backend Enhancements:
finallyblock to ensure tag closureFrontend Improvements:
6. Optimize Prompt Instruction for Citation Format
Backend Enhancements: