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 LocalAIDownloadSnackbar import
Steven Enamakel9e21f04dd3e9
diff --git a/app/src/components/LocalAIDownloadSnackbar.tsx b/app/src/components/LocalAIDownloadSnackbar.tsxindex c75b63679d..5d4e7fd117 100644--- a/app/src/components/LocalAIDownloadSnackbar.tsx+++ b/app/src/components/LocalAIDownloadSnackbar.tsx@@ -12,7 +12,6 @@ import {statusLabel,} from '../utils/localAiHelpers';import {- isTauri,type LocalAiDownloadsProgress,type LocalAiStatus,openhumanLocalAiDownloadsProgress,@@ -67,15 +66,6 @@ const LocalAIDownloadSnackbar = () => {// the officially recommended React pattern for adjusting state on derived-value changes).const [prevIsDownloading, setPrevIsDownloading] = useState(false);- // Check Tauri availability once at init- const tauriAvailable = (() => {- try {- return isTauri();- } catch {- return false;- }- })();-// Detect an active download from the folded local-AI state in the app-state// snapshot (polled by CoreStateProvider) instead of a dedicated idle poll of// the inference RPCs. When idle this component issues ZERO inference calls;@@ -89,7 +79,7 @@ const LocalAIDownloadSnackbar = () => {// reports activity and keeps going as long as the download itself is in// flight, then stops — so there is no steady-state inference polling.useEffect(() => {- if (!tauriAvailable || !coreDownloadActive) return;+ if (!coreDownloadActive) return;let cancelled = false;log('fast poll: starting (core reports download active)');@@ -134,7 +124,7 @@ const LocalAIDownloadSnackbar = () => {if (timerRef.current) clearTimeout(timerRef.current);log('fast poll: stopped (unmount or core reports inactive)');};- }, [tauriAvailable, coreDownloadActive]);+ }, [coreDownloadActive]);const downloadState = downloads?.state;const currentState =@@ -165,7 +155,7 @@ const LocalAIDownloadSnackbar = () => {const handleDismiss = useCallback(() => setDismissed(true), []);const handleToggleCollapse = useCallback(() => setCollapsed(prev => !prev), []);- if (!tauriAvailable || !isDownloading || dismissed) return null;+ if (!isDownloading || dismissed) return null;// Use currentState as the source of truth for the fallback sentinel so the// label (derived from currentState) and the progress bar stay in sync.diff --git a/app/src/components/settings/components/MemoryWindowControl.tsx b/app/src/components/settings/components/MemoryWindowControl.tsxindex b7e6f4481d..6c103d5c34 100644--- a/app/src/components/settings/components/MemoryWindowControl.tsx+++ b/app/src/components/settings/components/MemoryWindowControl.tsx@@ -3,7 +3,6 @@ import { useEffect, useState } from 'react';import { cn } from '../../../lib/cn';import { useT } from '../../../lib/i18n/I18nContext';import {- isTauri,MEMORY_CONTEXT_WINDOWS,type MemoryContextWindow,openhumanGetConfig,@@ -75,10 +74,6 @@ const MemoryWindowControl = ({ onError, onSaved }: Props) => {};useEffect(() => {- if (!isTauri()) {- setLoaded(true);- return;- }let cancelled = false;const load = async () => {try {@@ -103,9 +98,7 @@ const MemoryWindowControl = ({ onError, onSaved }: Props) => {setPending(next);setSaving(next);try {- if (isTauri()) {- await openhumanUpdateMemorySettings({ memory_window: next });- }+ await openhumanUpdateMemorySettings({ memory_window: next });setCurrent(next);onSaved?.(next);} catch (err) {diff --git a/app/src/components/settings/panels/AgentAccessPanel.tsx b/app/src/components/settings/panels/AgentAccessPanel.tsxindex 38e7092dfa..26bc04a8ee 100644--- a/app/src/components/settings/panels/AgentAccessPanel.tsx+++ b/app/src/components/settings/panels/AgentAccessPanel.tsx@@ -4,7 +4,6 @@ import { useEffect, useRef, useState } from 'react';import { useT } from '../../../lib/i18n/I18nContext';import {type AutonomyLevel,- isTauri,openhumanGetAgentSettings,openhumanGetAutonomySettings,openhumanUpdateAgentSettings,@@ -79,10 +78,6 @@ const AgentAccessPanel = () => {useEffect(() => {let cancelled = false;const load = async () => {- if (!isTauri()) {- setIsLoading(false);- return;- }try {const autonomyResp = await openhumanGetAutonomySettings();if (cancelled) return;@@ -145,7 +140,6 @@ const AgentAccessPanel = () => {onError?: () => void) => {const seq = ++persistSeqRef.current;- if (!isTauri()) return;setError(null);setSavedNote(null);setIsSaving(true);@@ -224,7 +218,6 @@ const AgentAccessPanel = () => {// from the autonomy `persist` path so a timeout edit can't clobber the// autonomy block and vice-versa.const commitTimeout = async () => {- if (!isTauri()) return;const trimmed = timeoutInput.trim();const parsed = Number(trimmed);if (!Number.isInteger(parsed) || parsed < timeoutMin || parsed > timeoutMax) {@@ -261,13 +254,6 @@ const AgentAccessPanel = () => {return (<SettingsPanel description={t('settings.agentAccess.menuDesc')}>- {/* Desktop-only notice */}- {!isTauri() && (- <Alert variant="info" density="compact">- <AlertDescription>{t('settings.agentAccess.desktopOnly')}</AlertDescription>- </Alert>- )}-{isLoading ? (<p className="text-sm text-content-muted">{t('settings.agentAccess.loading')}</p>) : (diff --git a/app/src/components/settings/panels/PermissionsPanel.tsx b/app/src/components/settings/panels/PermissionsPanel.tsxindex 962fc68a8b..68dfd9eb18 100644--- a/app/src/components/settings/panels/PermissionsPanel.tsx+++ b/app/src/components/settings/panels/PermissionsPanel.tsx@@ -4,7 +4,6 @@ import { useT } from '../../../lib/i18n/I18nContext';import {type AgentPaths,type AutonomyLevel,- isTauri,openhumanGetAgentPaths,openhumanGetAutonomySettings,openhumanUpdateAgentPaths,@@ -77,10 +76,6 @@ const PermissionsPanel = () => {useEffect(() => {let cancelled = false;const load = async () => {- if (!isTauri()) {- setIsLoading(false);- return;- }try {const autonomyResp = await openhumanGetAutonomySettings();if (cancelled) return;@@ -113,7 +108,6 @@ const PermissionsPanel = () => {// so we don't accidentally clobber what the advanced panel may have set.const persistTier = async (nextLevel: AutonomyLevel) => {const seq = ++persistSeqRef.current;- if (!isTauri()) return;setError(null);setSavedNote(null);setIsSaving(true);@@ -160,7 +154,6 @@ const PermissionsPanel = () => {};const saveActionDir = async () => {- if (!isTauri()) return;const seq = ++dirSeqRef.current;setActionDirSaving(true);setActionDirError(null);@@ -186,12 +179,6 @@ const PermissionsPanel = () => {return (<SettingsPanel><div className="space-y-5">- {!isTauri() && (- <p className="text-sm text-coral-600 dark:text-coral-300">- {t('settings.agentAccess.desktopOnly')}- </p>- )}-{isLoading ? (<p className="text-sm text-content-muted">{t('settings.agentAccess.loading')}</p>) : (diff --git a/app/src/components/settings/panels/SandboxSettingsPanel.tsx b/app/src/components/settings/panels/SandboxSettingsPanel.tsxindex edf286be92..da5215e5e0 100644--- a/app/src/components/settings/panels/SandboxSettingsPanel.tsx+++ b/app/src/components/settings/panels/SandboxSettingsPanel.tsx@@ -4,7 +4,6 @@ import { useEffect, useRef, useState } from 'react';import { cn } from '../../../lib/cn';import { useT } from '../../../lib/i18n/I18nContext';import {- isTauri,openhumanGetSandboxSettings,openhumanUpdateSandboxSettings,type SandboxBackendId,@@ -53,7 +52,7 @@ const BACKEND_OPTIONS: BackendOption[] = [const SandboxSettingsPanel = () => {const { t } = useT();- const [isLoading, setIsLoading] = useState(isTauri());+ const [isLoading, setIsLoading] = useState(true);const [isSaving, setIsSaving] = useState(false);const [error, setError] = useState<string | null>(null);const [savedNote, setSavedNote] = useState<string | null>(null);@@ -72,7 +71,6 @@ const SandboxSettingsPanel = () => {useEffect(() => {let cancelled = false;const load = async () => {- if (!isTauri()) return;try {const resp = await openhumanGetSandboxSettings();if (cancelled) return;@@ -100,7 +98,6 @@ const SandboxSettingsPanel = () => {const persist = async (patch: Parameters<typeof openhumanUpdateSandboxSettings>[0]) => {const seq = ++persistSeqRef.current;- if (!isTauri()) return;setError(null);setSavedNote(null);setIsSaving(true);@@ -154,16 +151,6 @@ const SandboxSettingsPanel = () => {}};- if (!isTauri()) {- return (- <SettingsPanel description={t('settings.sandbox.menuDesc')}>- <Alert variant="info" density="compact">- <AlertDescription>{t('settings.sandbox.desktopOnly')}</AlertDescription>- </Alert>- </SettingsPanel>- );- }-if (isLoading) {return (<SettingsPanel description={t('settings.sandbox.menuDesc')}>diff --git a/app/src/components/settings/panels/ai/ProviderListRow.tsx b/app/src/components/settings/panels/ai/ProviderListRow.tsxindex cf90d21f74..372e232dff 100644--- a/app/src/components/settings/panels/ai/ProviderListRow.tsx+++ b/app/src/components/settings/panels/ai/ProviderListRow.tsx@@ -148,6 +148,7 @@ export const ProviderListRow = ({control,actions = [],actionsLabel,+ swatch,'data-testid': testId,}: {/** Provider slug, used to look up the brand mark. */@@ -169,12 +170,15 @@ export const ProviderListRow = ({/** Accessible name for the overflow trigger. Required when `actions` is* non-empty — an unnamed icon button is announced as just "button". */actionsLabel?: string;+ /** Replaces the LLM brand swatch, for lists whose providers are not LLM+ * providers (web search) and so have no entry in the LLM icon map. */+ swatch?: ReactNode;'data-testid'?: string;}) => {const { t } = useT();return (<li data-slot="provider-row" data-testid={testId} className="flex items-center gap-3 px-4 py-3">- <ProviderSwatch slug={slug} label={label} tone={tone} />+ {swatch ?? <ProviderSwatch slug={slug} label={label} tone={tone} />}<div className="flex min-w-0 flex-1 flex-col gap-0.5"><div className="flex min-w-0 items-center gap-2">