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
chore: files changed app/src/components/settings/panels/AgentActivityPanel.tsx
Steven Enamakele7adef15afe3
diff --git a/app/src/components/settings/panels/AgentActivityPanel.tsx b/app/src/components/settings/panels/AgentActivityPanel.tsxindex f9ba536834..2d6a3cfbca 100644--- a/app/src/components/settings/panels/AgentActivityPanel.tsx+++ b/app/src/components/settings/panels/AgentActivityPanel.tsx@@ -106,65 +106,65 @@ export default function AgentActivityPanel() {<CenteredLoadingState label={t('common.loading')} className="py-12" />) : (<div className="flex flex-col gap-4">- {monthlyCost && monthlyCost.total_cost_usd > 0 && (- <div className="px-3 py-2 rounded-md bg-surface-subtle text-sm">- <span className="font-medium text-content">- {t('activityLevel.currentMonth').replace(- '{amount}',- monthlyCost.total_cost_usd.toFixed(2)- )}- </span>- </div>- )}+ {monthlyCost && monthlyCost.total_cost_usd > 0 && (+ <div className="px-3 py-2 rounded-md bg-surface-subtle text-sm">+ <span className="font-medium text-content">+ {t('activityLevel.currentMonth').replace(+ '{amount}',+ monthlyCost.total_cost_usd.toFixed(2)+ )}+ </span>+ </div>+ )}- {/* Level selection cards — intentional bespoke card UI; kept as-is. */}- <div className="flex flex-col gap-2">- {LEVELS.map(({ key, value }) => {- const isSelected = settings?.level === value;- const apiKey = key === 'alwaysOn' ? 'always_on' : (key as string);- const costMin = getCostMin(value);- const costMax = getCostMax(value);- return (- <Button- key={key}- variant="secondary"- onClick={() => handleLevelChange(apiKey)}- disabled={status === 'saving'}- data-testid={`activity-level-${key}`}- className={`h-auto w-full items-center justify-between rounded-lg px-4 py-3 text-left font-normal ${- isSelected- ? 'border-primary-500 bg-primary-50 dark:bg-primary-900/20'- : 'border-line bg-surface hover:border-line-strong dark:hover:border-line-strong'- }`}>- <div>- <div className="flex items-center gap-2">- <span className="text-sm font-semibold text-content">- {t(`activityLevel.${key as LevelKey}`)}- </span>- {value === 2 && <Badge variant="neutral">{t('activityLevel.default')}</Badge>}+ {/* Level selection cards — intentional bespoke card UI; kept as-is. */}+ <div className="flex flex-col gap-2">+ {LEVELS.map(({ key, value }) => {+ const isSelected = settings?.level === value;+ const apiKey = key === 'alwaysOn' ? 'always_on' : (key as string);+ const costMin = getCostMin(value);+ const costMax = getCostMax(value);+ return (+ <Button+ key={key}+ variant="secondary"+ onClick={() => handleLevelChange(apiKey)}+ disabled={status === 'saving'}+ data-testid={`activity-level-${key}`}+ className={`h-auto w-full items-center justify-between rounded-lg px-4 py-3 text-left font-normal ${+ isSelected+ ? 'border-primary-500 bg-primary-50 dark:bg-primary-900/20'+ : 'border-line bg-surface hover:border-line-strong dark:hover:border-line-strong'+ }`}>+ <div>+ <div className="flex items-center gap-2">+ <span className="text-sm font-semibold text-content">+ {t(`activityLevel.${key as LevelKey}`)}+ </span>+ {value === 2 && <Badge variant="neutral">{t('activityLevel.default')}</Badge>}+ </div>+ <p className="text-xs text-content-muted mt-0.5">+ {t(`activityLevel.${key as LevelKey}Desc`)}+ </p></div>- <p className="text-xs text-content-muted mt-0.5">- {t(`activityLevel.${key as LevelKey}Desc`)}- </p>- </div>- <div className="text-xs font-mono text-content-muted shrink-0 ml-4">- {costMin === 0 && costMax === 0- ? t('activityLevel.costFree')- : t('activityLevel.costRange')- .replace('{min}', String(costMin))- .replace('{max}', String(costMax))}- </div>- </Button>- );- })}- </div>+ <div className="text-xs font-mono text-content-muted shrink-0 ml-4">+ {costMin === 0 && costMax === 0+ ? t('activityLevel.costFree')+ : t('activityLevel.costRange')+ .replace('{min}', String(costMin))+ .replace('{max}', String(costMax))}+ </div>+ </Button>+ );+ })}+ </div>- <SettingsStatusLine- saving={status === 'saving'}- savedNote={status === 'saved' ? t('activityLevel.saved') : null}- error={error}- savingLabel={t('autonomy.statusSaving')}- />+ <SettingsStatusLine+ saving={status === 'saving'}+ savedNote={status === 'saved' ? t('activityLevel.saved') : null}+ error={error}+ savingLabel={t('autonomy.statusSaving')}+ /></div>)}</SettingsPanel>