Add read-only production runtime audit
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user