diff --git a/ui/src/pages/CompanyExport.tsx b/ui/src/pages/CompanyExport.tsx index 2b963bb2..1684acfe 100644 --- a/ui/src/pages/CompanyExport.tsx +++ b/ui/src/pages/CompanyExport.tsx @@ -18,7 +18,6 @@ import { FileText, Folder, FolderOpen, - Info, Package, Search, } from "lucide-react"; @@ -596,19 +595,10 @@ export function CompanyExport() { const totalFiles = useMemo(() => countFiles(tree), [tree]); const selectedCount = checkedFiles.size; - // Separate info notes (terminated agents) from real warnings - const { notes, warnings } = useMemo(() => { - if (!exportData) return { notes: [] as string[], warnings: [] as string[] }; - const notes: string[] = []; - const warnings: string[] = []; - for (const w of exportData.warnings) { - if (/terminated agent/i.test(w)) { - notes.push(w); - } else { - warnings.push(w); - } - } - return { notes, warnings }; + // Filter out terminated agent messages — they don't need to be shown + const warnings = useMemo(() => { + if (!exportData) return [] as string[]; + return exportData.warnings.filter((w) => !/terminated agent/i.test(w)); }, [exportData]); function handleToggleDir(path: string) { @@ -725,12 +715,6 @@ export function CompanyExport() { {warnings.length} warning{warnings.length === 1 ? "" : "s"} )} - {notes.length > 0 && ( - - - {notes.length} note{notes.length === 1 ? "" : "s"} - - )}