Add read-only production runtime audit

This commit is contained in:
2026-08-17 11:17:40 +07:00
parent 057d4ed9dc
commit a1de4715a4
106 changed files with 6869 additions and 1782 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ interface SidebarProps {
onNewChat: () => void;
onDeleteSession?: (id: string) => void;
onQuickQuery: (query: string) => void;
historyRefreshKey?: number;
className?: string;
}
@@ -73,6 +74,7 @@ export function Sidebar({
onNewChat,
onDeleteSession,
onQuickQuery,
historyRefreshKey = 0,
className,
}: SidebarProps) {
const [searchTerm, setSearchTerm] = useState("");
@@ -102,7 +104,7 @@ export function Sidebar({
return () => {
cancelled = true;
};
}, [currentSessionId]);
}, [currentSessionId, historyRefreshKey]);
const filteredSessions = sessions.filter((s) =>
s.title.toLowerCase().includes(searchTerm.toLowerCase())