Skip to content

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

fix(workflow): handle missing memory tree status gracefully

Steven Enamakel42ae6b4a2454
diff --git a/app/src/components/intelligence/WorkflowRunDetail.tsx b/app/src/components/intelligence/WorkflowRunDetail.tsx
index c1845c4e0b..91e643ff38 100644
--- a/app/src/components/intelligence/WorkflowRunDetail.tsx
+++ b/app/src/components/intelligence/WorkflowRunDetail.tsx
@@ -26,8 +26,8 @@ import {
type WorkflowRunStatus,
} from '../../services/api/workflowRunsApi';
import { AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger } from '../ui/Accordion';
-import Button from '../ui/Button';
import { Badge, type BadgeVariant } from '../ui/Badge';
+import Button from '../ui/Button';
const log = debug('intelligence:workflow-detail');
diff --git a/app/src/components/intelligence/memoryTreeStatusHelpers.tsx b/app/src/components/intelligence/memoryTreeStatusHelpers.tsx
index ebefbb9fab..21ecd1f65e 100644
--- a/app/src/components/intelligence/memoryTreeStatusHelpers.tsx
+++ b/app/src/components/intelligence/memoryTreeStatusHelpers.tsx
@@ -5,7 +5,6 @@
*/
import { useCallback, useEffect, useRef, useState } from 'react';
-import { Badge } from '../ui';
import {
memoryNamespaceSummaries,
memorySyncStatusList,
@@ -13,6 +12,7 @@ import {
memoryTreePipelineStatus,
type MemoryTreePipelineStatus,
} from '../../utils/tauriCommands';
+import { Badge } from '../ui';
/** Translator function shape exposed by `useT()`. */
export type TFn = (key: string, fallback?: string) => string;
diff --git a/app/src/components/settings/panels/UsagePanel.tsx b/app/src/components/settings/panels/UsagePanel.tsx
index 390360a034..7935c4bda1 100644
--- a/app/src/components/settings/panels/UsagePanel.tsx
+++ b/app/src/components/settings/panels/UsagePanel.tsx
@@ -5,7 +5,7 @@ import { useT } from '../../../lib/i18n/I18nContext';
import { type AISettings, loadAISettings } from '../../../services/api/aiSettingsApi';
import CostDashboardPanel from '../../dashboard/CostDashboardPanel';
import UsageLogPanel from '../../dashboard/UsageLogPanel';
-import { CenteredLoadingState, StatusLine } from '../../ui';
+import { Alert, AlertDescription, CenteredLoadingState } from '../../ui';
import SettingsTabbedPage from '../layout/SettingsTabbedPage';
import BackgroundLoopControls from './ai/BackgroundLoopControls';
import TokenUsagePanel from './TokenUsagePanel';
@@ -93,7 +93,11 @@ const BackgroundActivityTab = () => {
return (
<div className="space-y-4" data-testid="usage-background-tab">
- {loadError && <StatusLine saving={false} error={loadError} savingLabel="" />}
+ {loadError && (
+ <Alert variant="destructive" density="compact">
+ <AlertDescription>{loadError}</AlertDescription>
+ </Alert>
+ )}
{snapshot ? (
<BackgroundLoopControls
view="all"