The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(settings): remove unused TeamHeader import from BackgroundLoopControls
Steven Enamakeld4bb1cd27739
diff --git a/app/src/components/intelligence/TeamHeader.tsx b/app/src/components/intelligence/TeamHeader.tsxindex 4559d7667f..9d938b93f2 100644--- a/app/src/components/intelligence/TeamHeader.tsx+++ b/app/src/components/intelligence/TeamHeader.tsx@@ -17,9 +17,8 @@ import type {AgentTeamMember,AgentTeamMemberStatus,} from '../../services/api/agentTeamApi';-import type { BadgeVariant } from '../ui/Badge';-import Badge from '../ui/Badge';import { AvatarFallback, AvatarRoot } from '../ui/Avatar';+import Badge, { type BadgeVariant } from '../ui/Badge';import Button from '../ui/Button';import { memberColor } from './memberColors';diff --git a/app/src/components/settings/panels/ai/BackgroundLoopControls.tsx b/app/src/components/settings/panels/ai/BackgroundLoopControls.tsxindex 57a70768a9..43403fe435 100644--- a/app/src/components/settings/panels/ai/BackgroundLoopControls.tsx+++ b/app/src/components/settings/panels/ai/BackgroundLoopControls.tsx@@ -8,6 +8,7 @@* math. `view` lets a host panel (UsagePanel) mount just the ledger.*/import debug from 'debug';+import { RefreshCw } from 'lucide-react';import { useCallback, useEffect, useState } from 'react';import { listConnections as listComposioConnections } from '../../../../lib/composio/composioApi';@@ -18,8 +19,7 @@ import {type CreditTransaction,type TeamUsage,} from '../../../../services/api/creditsApi';-import Button from '../../../ui/Button';-import StatusLine from '../../../ui/StatusLine';+import { Badge, Button, Card, StatusLine } from '../../../ui';import type { RoutingMap } from './aiPanelTypes';import {activeConnection,@@ -182,8 +182,6 @@ export const BackgroundLoopControls = ({];const showLedger = view === 'all' || view === 'ledger';- const gridCols =- view === 'all' ? 'md:grid-cols-[minmax(0,1fr)_minmax(260px,0.8fr)]' : 'grid-cols-1';return (<div className="space-y-4">@@ -200,72 +198,71 @@ export const BackgroundLoopControls = ({{error && <StatusLine saving={false} error={error} savedNote={null} savingLabel="" />}- <section className={`grid gap-3 ${gridCols}`}>- <div className="overflow-hidden rounded-lg border border-line bg-surface-muted">- <div className="flex items-center justify-between gap-3 border-b border-line px-3 py-2">- <span className="text-xs font-semibold uppercase tracking-wide text-content-faint">- {t('settings.ai.loopMap')}- </span>- <Button- type="button"- variant="secondary"- size="xs"- onClick={() => void refresh()}- disabled={loading}>- {t('common.refresh')}- </Button>- </div>- <div className="divide-y divide-line">- {loops.map(loop => (- <div key={loop.name} className="grid gap-2 px-3 py-3 md:grid-cols-[150px_1fr]">- <div className="min-w-0">- <div className="truncate text-sm font-medium text-content">{loop.name}</div>- <div className="mt-0.5 flex flex-wrap gap-1 text-[11px] text-content-muted">- <span>{loop.enabled ? t('settings.ai.on') : t('settings.ai.off')}</span>- <span>{loop.cadence}</span>- </div>- </div>- <div className="min-w-0 text-xs text-content-secondary">- <div>{loop.work}</div>- <div className="mt-1 font-mono text-[11px] text-content-muted">- {t('settings.ai.routeLabel').replace('{route}', loop.route)}- </div>- <div className="mt-1 text-content-muted">{loop.risk}</div>- </div>+ {/* Loop map on top, the ledger + budget math below — stacked, so each+ card gets the full width instead of a cramped side column. */}+ <Card+ title={t('settings.ai.loopMap')}+ headerRight={+ <Button+ type="button"+ variant="secondary"+ size="sm"+ leadingIcon={<RefreshCw className="h-3.5 w-3.5" aria-hidden />}+ onClick={() => void refresh()}+ disabled={loading}>+ {t('common.refresh')}+ </Button>+ }>+ {loops.map(loop => (+ <div key={loop.name} className="grid gap-x-6 gap-y-2 px-4 py-3 md:grid-cols-[200px_1fr]">+ <div className="min-w-0 space-y-1.5">+ <div className="truncate text-sm font-medium text-content">{loop.name}</div>+ <div className="flex flex-wrap gap-1.5">+ <Badge variant={loop.enabled ? 'success' : 'neutral'}>+ {loop.enabled ? t('settings.ai.on') : t('settings.ai.off')}+ </Badge>+ <Badge>{loop.cadence}</Badge>+ </div>+ </div>+ <div className="min-w-0 space-y-1 text-xs">+ <div className="text-content-secondary">{loop.work}</div>+ <div className="truncate font-mono text-content-muted">+ {t('settings.ai.routeLabel').replace('{route}', loop.route)}</div>- ))}+ <div className="text-content-faint">{loop.risk}</div>+ </div></div>- </div>+ ))}+ </Card>- {showLedger && (- <UsageLedgerSection- t={t}- loading={loading}- onRefresh={() => void refresh()}- usage={usage}- spendRows={spendRows}- spendAvgRowUsd={spendSample.avgRowUsd}- spendSampleHours={spendSample.sampleHours}- spendPerHour={spendSample.spendPerHour}- rowsPerHour={spendSample.rowsPerHour}- actionSummary={actionSummary}- hourSummary={hourSummary}- latestSpend={latestSpend}- formatSpendAmount={spendAmount}- backgroundApiReadsPerWeek={backgroundApiReadsPerWeek}- backgroundWakeupsPerWeek={backgroundWakeupsPerWeek}- calendarPlannerCallsPerWeek={calendarPlannerCallsPerWeek}- composioConnectionScansPerWeek={composioConnectionScansPerWeek}- memoryPollsPerWeek={memoryPollsPerWeek}- estimatedRowsLeft={estimatedRowsLeft}- estimatedRowsPerBudget={estimatedRowsPerBudget}- projectedExhaustAt={projectedExhaustAt}- projectedHoursLeft={projectedHoursLeft}- scheduledCallsPerRemainingDollar={scheduledCallsPerRemainingDollar}- activeConnectionsCount={activeConnections.length}- />- )}- </section>+ {showLedger && (+ <UsageLedgerSection+ t={t}+ loading={loading}+ onRefresh={() => void refresh()}+ usage={usage}+ spendRows={spendRows}+ spendAvgRowUsd={spendSample.avgRowUsd}+ spendSampleHours={spendSample.sampleHours}+ spendPerHour={spendSample.spendPerHour}+ rowsPerHour={spendSample.rowsPerHour}+ actionSummary={actionSummary}+ hourSummary={hourSummary}+ latestSpend={latestSpend}+ formatSpendAmount={spendAmount}+ backgroundApiReadsPerWeek={backgroundApiReadsPerWeek}+ backgroundWakeupsPerWeek={backgroundWakeupsPerWeek}+ calendarPlannerCallsPerWeek={calendarPlannerCallsPerWeek}+ composioConnectionScansPerWeek={composioConnectionScansPerWeek}+ memoryPollsPerWeek={memoryPollsPerWeek}+ estimatedRowsLeft={estimatedRowsLeft}+ estimatedRowsPerBudget={estimatedRowsPerBudget}+ projectedExhaustAt={projectedExhaustAt}+ projectedHoursLeft={projectedHoursLeft}+ scheduledCallsPerRemainingDollar={scheduledCallsPerRemainingDollar}+ activeConnectionsCount={activeConnections.length}+ />+ )}</div>);};diff --git a/app/src/components/settings/panels/ai/RouteButton.tsx b/app/src/components/settings/panels/ai/RouteButton.tsxindex cfb9a43ad8..9b21127c0b 100644--- a/app/src/components/settings/panels/ai/RouteButton.tsx+++ b/app/src/components/settings/panels/ai/RouteButton.tsx@@ -39,7 +39,13 @@ export const RouteButton = ({) : null}<span className="flex min-w-0 flex-1 flex-col"><span className="truncate text-xs font-medium text-content">{provider}</span>- <span className="truncate font-mono text-[11px] font-normal text-content-muted">{model}</span>+ {model ? (+ <span className="truncate font-mono text-[11px] font-normal text-content-muted">+ {model}+ </span>+ ) : (+ <span className="truncate text-[11px] font-normal text-content-muted">{placeholder}</span>+ )}</span><ChevronRight className="h-4 w-4 shrink-0 text-content-faint" aria-hidden /></Button>