diff --git a/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx b/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx index 060f9060..a4e45da8 100644 --- a/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx +++ b/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx @@ -165,7 +165,7 @@ export default function UserPromptInputWithHistory({ {/* Dropdown */} {isOpen && history.length > 0 && ( -
+
{history.map((prompt, index) => (
()( // Add to beginning newHistory.unshift(prompt) - // Keep only last 8 items - if (newHistory.length > 8) { - newHistory.splice(8) + // Keep only last 12 items + if (newHistory.length > 12) { + newHistory.splice(12) } return { userPromptHistory: newHistory }