Skip to content

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

fix(composio): correct memory tree status helper import path

Steven Enamakeldd18be7353a8
diff --git a/app/src/components/intelligence/memoryTreeStatusHelpers.tsx b/app/src/components/intelligence/memoryTreeStatusHelpers.tsx
index 4f24b3c231..ebefbb9fab 100644
--- a/app/src/components/intelligence/memoryTreeStatusHelpers.tsx
+++ b/app/src/components/intelligence/memoryTreeStatusHelpers.tsx
@@ -278,7 +278,6 @@ export function IntegrationHealthStrip({
health === 'active'
? t('memoryTree.status.integrationActive')
: t('memoryTree.status.integrationStale');
- const dot = health === 'active' ? 'bg-sage-400' : 'bg-content-faint';
return (
<li
key={row.provider}
@@ -300,10 +299,7 @@ export function IntegrationHealthStrip({
<span>
{formatRelativeMs(row.last_chunk_at_ms ?? 0, t, t('memoryTree.status.never'))}
</span>
- <span className="inline-flex items-center gap-1.5 rounded-full bg-surface px-2 py-0.5 text-[11px] font-medium text-content-secondary ring-1 ring-line-strong">
- <span aria-hidden className={`inline-block h-1.5 w-1.5 rounded-full ${dot}`} />
- {healthLabel}
- </span>
+ <Badge variant={health === 'active' ? 'success' : 'neutral'}>{healthLabel}</Badge>
</div>
</li>
);
diff --git a/app/src/components/settings/panels/ComposioTriagePanel.tsx b/app/src/components/settings/panels/ComposioTriagePanel.tsx
index 02473cd6e5..49bea51afd 100644
--- a/app/src/components/settings/panels/ComposioTriagePanel.tsx
+++ b/app/src/components/settings/panels/ComposioTriagePanel.tsx
@@ -1,3 +1,4 @@
+import { Save } from 'lucide-react';
import { type ReactNode, useEffect, useRef, useState } from 'react';
import { useT } from '../../../lib/i18n/I18nContext';
@@ -5,14 +6,8 @@ import {
openhumanGetComposioTriggerSettings,
openhumanUpdateComposioTriggerSettings,
} from '../../../utils/tauriCommands';
-import Button from '../../ui/Button';
-import {
- SettingsRow,
- SettingsSection,
- SettingsStatusLine,
- SettingsSwitch,
- SettingsTextField,
-} from '../controls';
+import { Button, Card, CenteredLoadingState, Field, StatusLine, Switch, TextField } from '../../ui';
+import { Spinner } from '../../ui/icons';
import SettingsPanel from '../layout/SettingsPanel';
interface ComposioTriagePanelProps {
@@ -87,75 +82,76 @@ const ComposioTriagePanel = ({ embedded = false }: ComposioTriagePanelProps = {}
const wrap = (node: ReactNode) =>
embedded ? (
- <div className="space-y-5">{node}</div>
+ node
) : (
<SettingsPanel description={t('settings.developerMenu.composio.desc')}>{node}</SettingsPanel>
);
if (loading) {
- return wrap(<p className="text-sm text-content-muted">{t('settings.composio.loading')}</p>);
+ return wrap(<CenteredLoadingState label={t('settings.composio.loading')} />);
}
return wrap(
- <>
- <p className="text-sm text-content-muted">
- {t('composio.triageDesc')}{' '}
- <span className="font-mono">OPENHUMAN_TRIGGER_TRIAGE_DISABLED</span>{' '}
- {t('composio.envVarOverrides')}
- </p>
-
- <SettingsSection>
- <SettingsRow
- htmlFor="switch-triage-disabled"
- label={t('composio.disableAllTriage')}
- description={t('composio.triggersStillRecorded')}
- control={
- <SettingsSwitch
- id="switch-triage-disabled"
- checked={triageDisabled}
- onCheckedChange={next => setTriageDisabled(next)}
- aria-label={t('composio.disableAllTriage')}
- />
- }
- />
- </SettingsSection>
-
- <SettingsSection
- title={t('composio.disableSpecificIntegrations')}
- description={`${t('composio.integrationSlugsHelp')} ${t('composio.integrationSlugsExample')}. ${t('composio.integrationSlugsCaseInsensitive')}`}>
- <SettingsRow
- stacked
- disabled={triageDisabled}
- control={
- <SettingsTextField
- id="disabled-toolkits"
- value={disabledToolkits}
- onChange={e => setDisabledToolkits(e.target.value)}
- placeholder={t('composio.integrationSlugsPlaceholder')}
- disabled={triageDisabled}
- aria-label={t('composio.disableSpecificIntegrations')}
- />
- }
+ <Card
+ title={t('composio.triageTitle')}
+ description={
+ <>
+ {t('composio.triageDesc')} <code className="font-mono">OPENHUMAN_TRIGGER_TRIAGE_DISABLED</code>{' '}
+ {t('composio.envVarOverrides')}
+ </>
+ }
+ data-testid="composio-triage-card">
+ <Field
+ htmlFor="switch-triage-disabled"
+ label={t('composio.disableAllTriage')}
+ description={t('composio.triggersStillRecorded')}
+ control={
+ <Switch
+ id="switch-triage-disabled"
+ checked={triageDisabled}
+ onCheckedChange={next => setTriageDisabled(next)}
+ aria-label={t('composio.disableAllTriage')}
+ />
+ }
+ />
+ <Field
+ htmlFor="disabled-toolkits"
+ disabled={triageDisabled}
+ label={t('composio.disableSpecificIntegrations')}
+ description={`${t('composio.integrationSlugsHelp')} ${t('composio.integrationSlugsExample')}. ${t('composio.integrationSlugsCaseInsensitive')}`}
+ control={
+ <TextField
+ id="disabled-toolkits"
+ mono
+ inputSize="sm"
+ className="w-72"
+ value={disabledToolkits}
+ onChange={e => setDisabledToolkits(e.target.value)}
+ placeholder={t('composio.integrationSlugsPlaceholder')}
+ disabled={triageDisabled}
+ aria-label={t('composio.disableSpecificIntegrations')}
+ />
+ }
+ />
+ <div className="flex items-center justify-between gap-3 px-4 py-3">
+ <StatusLine
+ saving={saving}
+ savedNote={saveStatus === 'saved' ? t('composio.settingsSaved') : null}
+ error={saveStatus === 'error' ? t('composio.saveFailed') : null}
+ savingLabel={t('common.loading')}
+ className="min-h-0"
/>
- </SettingsSection>
-
- <div className="flex items-center gap-3">
<Button
type="button"
variant="primary"
size="sm"
+ leadingIcon={saving ? <Spinner /> : <Save className="h-3.5 w-3.5" aria-hidden />}
onClick={() => void handleSave()}
disabled={saving}>
{saving ? t('common.loading') : t('common.save')}
</Button>
- <SettingsStatusLine
- saving={saving}
- savedNote={saveStatus === 'saved' ? t('composio.settingsSaved') : null}
- error={saveStatus === 'error' ? t('composio.saveFailed') : null}
- savingLabel={t('common.loading')}
- />
</div>
- </>
+ </Card>
);
};
diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.ts
index 70895c6768..7f1b3aced5 100644
--- a/app/src/lib/i18n/en.ts
+++ b/app/src/lib/i18n/en.ts
@@ -2389,6 +2389,11 @@ const en: TranslationMap = {
'voice.mode.listening': 'Listening',
'voice.mode.speaking': 'Speaking',
'voice.providers.title': 'Voice Providers',
+ 'voice.providers.cardDesc': 'Turn on the engines you want to use. Keys stay on this device.',
+ 'voice.providers.cap.stt': 'Speech to text',
+ 'voice.providers.cap.tts': 'Text to speech',
+ 'voice.providers.alwaysOn': 'Always on',
+ 'voice.providers.mascotVoiceCardDesc': 'Pick the voice your mascot speaks with in Face settings.',
'voice.providers.desc':
'Choose which hosted engine transcribes your speech and where synthesis runs. Speech-to-text always runs in the cloud; only text-to-speech has a local option (Piper), installed with the Install locally button. No manual PIPER_BIN setup required.',
'voice.providers.sttProvider': 'Speech-to-Text Provider',
@@ -2454,6 +2459,9 @@ const en: TranslationMap = {
'voice.routing.title': 'Voice Routing',
'voice.routing.desc': 'Choose which enabled providers handle speech-to-text and text-to-speech.',
'voice.routing.save': 'Save',
+ 'voice.routing.testOk': 'Working',
+ 'voice.routing.testFailed': 'Failed',
+ 'voice.routing.unsaved': 'Unsaved changes',
'voice.routing.testStt': 'Test STT',
'voice.routing.testTts': 'Test TTS',
'voice.routing.elevenlabsVoice': 'ElevenLabs Voice',
@@ -2479,6 +2487,7 @@ const en: TranslationMap = {
// Push-to-talk (PTT)
'pttSettings.title': 'Push-to-talk',
+ 'pttSettings.clearShortcut': 'Clear',
'pttSettings.description':
"Hold a key to talk to OpenHuman while you're in another app. Release the key to send; OpenHuman speaks the reply if 'Speak agent replies' is on.",
'pttSettings.shortcutLabel': 'Hotkey',