Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(intelligence): handle missing memory data gracefully

Steven Enamakel4b9920c8b916
diff --git a/app/src/components/intelligence/IntelligenceMemoryTab.tsx b/app/src/components/intelligence/IntelligenceMemoryTab.tsx
index 0c5058bba1..8eafeb58ae 100644
--- a/app/src/components/intelligence/IntelligenceMemoryTab.tsx
+++ b/app/src/components/intelligence/IntelligenceMemoryTab.tsx
@@ -116,37 +116,17 @@ export default function IntelligenceMemoryTab({
</div>
{itemsLoading && !usingMemoryData ? (
- <div className="backdrop-blur-lg bg-surface/80 border border-line/60 shadow-[0_2px_8px_rgba(0,0,0,0.06)] dark:shadow-[0_2px_8px_rgba(0,0,0,0.4)] rounded-2xl p-8 text-center animate-fade-up">
- <div className="w-16 h-16 mx-auto mb-4 flex items-center justify-center rounded-full bg-primary-500/10">
- <div className="w-8 h-8 border-2 border-primary-400 border-t-transparent rounded-full animate-spin" />
- </div>
+ <GlassStatePanel icon={<PanelSpinner />}>
<h2 className="text-lg font-semibold text-content mb-2">{t('memory.loading')}</h2>
<p className="text-content-faint text-sm">{t('memory.fetching')}</p>
- </div>
+ </GlassStatePanel>
) : isRunning && items.length === 0 ? (
- <div className="backdrop-blur-lg bg-surface/80 border border-line/60 shadow-[0_2px_8px_rgba(0,0,0,0.06)] dark:shadow-[0_2px_8px_rgba(0,0,0,0.4)] rounded-2xl p-8 text-center animate-fade-up">
- <div className="w-16 h-16 mx-auto mb-4 flex items-center justify-center rounded-full bg-primary-500/10">
- <div className="w-8 h-8 border-2 border-primary-400 border-t-transparent rounded-full animate-spin" />
- </div>
+ <GlassStatePanel icon={<PanelSpinner />}>
<h2 className="text-lg font-semibold text-content mb-2">{t('memory.analyzing')}</h2>
<p className="text-content-faint text-sm">{t('memory.analyzingHint')}</p>
- </div>
+ </GlassStatePanel>
) : timeGroups.length === 0 ? (
- <div className="backdrop-blur-lg bg-surface/80 border border-line/60 shadow-[0_2px_8px_rgba(0,0,0,0.06)] dark:shadow-[0_2px_8px_rgba(0,0,0,0.4)] rounded-2xl p-8 text-center animate-fade-up">
- <div className="w-16 h-16 mx-auto mb-4 flex items-center justify-center rounded-full bg-primary-500/10">
- <svg
- className="w-8 h-8 text-primary-400"
- fill="none"
- stroke="currentColor"
- viewBox="0 0 24 24">
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth={2}
- d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"
- />
- </svg>
- </div>
+ <GlassStatePanel icon={<LuLightbulb className="w-8 h-8 text-primary-400" />}>
{searchFilter || sourceFilter !== 'all' ? (
<>
<h2 className="text-lg font-semibold text-content mb-2">{t('memory.noMatches')}</h2>