Skip to content

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

feat(settings): add live voice controls to settings panel

Steven Enamakel8c7cc3d47bf7
diff --git a/app/src/components/settings/panels/LiveVoicePanel.tsx b/app/src/components/settings/panels/LiveVoicePanel.tsx
index 0b43a5dc04..31025b082a 100644
--- a/app/src/components/settings/panels/LiveVoicePanel.tsx
+++ b/app/src/components/settings/panels/LiveVoicePanel.tsx
@@ -42,6 +42,14 @@ const PROVIDER_ICON: Record<string, LucideIcon> = {
sarvam: Languages,
};
+/** Description key per known provider (explicit so the i18n audit sees them). */
+const PROVIDER_DESC_KEY: Record<string, string> = {
+ 'gemini-hosted': 'connections.voiceAgents.descGeminiHosted',
+ 'elevenlabs-hosted': 'connections.voiceAgents.descElevenlabsHosted',
+ gemini: 'connections.voiceAgents.descGemini',
+ sarvam: 'connections.voiceAgents.descSarvam',
+};
+
/**
* Which settings block a provider's voice/language pickers write to, and the
* field names inside it. Hosted and BYOK Gemini share the `gemini` block.
@@ -348,7 +356,9 @@ const LiveVoicePanel = () => {
iconActive={provider.configured}
selected={isDefault}
title={provider.label}
- description={t(`connections.voiceAgents.desc.${provider.id}`, '')}
+ description={
+ PROVIDER_DESC_KEY[provider.id] ? t(PROVIDER_DESC_KEY[provider.id]) : undefined
+ }
control={
<Button
size="sm"
diff --git a/app/src/features/human/LiveVoiceControls.tsx b/app/src/features/human/LiveVoiceControls.tsx
index cfe0d707b4..91d1d3ca49 100644
--- a/app/src/features/human/LiveVoiceControls.tsx
+++ b/app/src/features/human/LiveVoiceControls.tsx
@@ -51,6 +51,13 @@ const TOOL_VARIANT: Record<LiveVoiceToolCall['status'], 'primary' | 'success' |
cancelled: 'neutral',
};
+const TOOL_LABEL_KEY: Record<LiveVoiceToolCall['status'], string> = {
+ running: 'voice.live.toolRunning',
+ ok: 'voice.live.toolOk',
+ failed: 'voice.live.toolFailed',
+ cancelled: 'voice.live.toolCancelled',
+};
+
function errorText(t: (key: string) => string, error: LiveVoiceError): string {
switch (error.code) {
case 'mic_denied':
@@ -203,7 +210,7 @@ export default function LiveVoiceControls({
variant={TOOL_VARIANT[call.status]}
data-testid="live-voice-tool-chip"
data-status={call.status}
- aria-label={t(`voice.live.tool.${call.status}`).replace('{name}', call.name)}>
+ aria-label={t(TOOL_LABEL_KEY[call.status]).replace('{name}', call.name)}>
{call.name}
</Badge>
</li>