Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
feat(settings): gate voice settings behind developer mode
vastsaed2f521015e9
diff --git a/apps/desktop/src/lib/settings-search.ts b/apps/desktop/src/lib/settings-search.tsindex 1fd31b392..f7bbae7db 100644--- a/apps/desktop/src/lib/settings-search.ts+++ b/apps/desktop/src/lib/settings-search.ts@@ -129,6 +129,8 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [labelKey: "settings.nav.voice",titleKey: "settings.voice",group: "preferences",+ developerOnly: true,+ experimentalBadgeKey: "settings.voiceExperimental",keywordKeys: ["settings.voiceEnable","settings.voiceMicrophone",diff --git a/apps/desktop/test/settings-developer-only-destinations.test.mjs b/apps/desktop/test/settings-developer-only-destinations.test.mjsindex c3bf21b05..84e2e3677 100644--- a/apps/desktop/test/settings-developer-only-destinations.test.mjs+++ b/apps/desktop/test/settings-developer-only-destinations.test.mjs@@ -1,7 +1,7 @@/*** Developer-only settings destinations contract.*- * Cloud sync and Remote Hosts are experimental surfaces that exist only while+ * Voice, Cloud sync, and Remote Hosts are experimental surfaces that exist only while* developer mode is on. The rail, page, and settings search must add and drop* them together, and a stale selection must fall back to General instead of* rendering a page the rail no longer offers.@@ -33,16 +33,18 @@ test("developer mode alone decides which destinations exist", () => {assert.equal(off.includes("sync"), false);assert.equal(on.includes("sync"), true);+ assert.equal(off.includes("voice"), false);+ assert.equal(on.includes("voice"), true);assert.equal(off.includes("remoteHosts"), false);assert.equal(on.includes("remoteHosts"), true);assert.deepEqual(off,- on.filter((id) => id !== "sync" && id !== "remoteHosts"),+ on.filter((id) => id !== "voice" && id !== "sync" && id !== "remoteHosts"),);// Both gated destinations carry the badge rendered by the rail and title.assert.deepEqual(SETTINGS_NAV.filter((entry) => entry.developerOnly === true).map((entry) => entry.id),- ["sync", "remoteHosts"],+ ["voice", "sync", "remoteHosts"],);assert.ok(SETTINGS_NAV.filter((entry) => entry.developerOnly === true)@@ -64,6 +66,11 @@ test("settings search mirrors the rail", () => {.some((hit) => hit.tab === "sync"),);assert.deepEqual(searchSettings("remotehosts", identity, { developerMode: false }), []);+ assert.deepEqual(searchSettings("voiceEnable", identity, { developerMode: false }), []);+ assert.ok(+ searchSettings("voiceEnable", identity, { developerMode: true })+ .some((hit) => hit.tab === "voice"),+ );const hits = searchSettings("remotehosts", identity, { developerMode: true });assert.ok(hits.some((hit) => hit.tab === "remoteHosts"));assert.equal(searchSettings("settings", identity, { limit: 2 }).length, 2);@@ -74,6 +81,8 @@ test("a stale developer-only selection is reported as hidden", () => {assert.equal(isSettingsDestinationHidden("sync", true), false);assert.equal(isSettingsDestinationHidden("remoteHosts", false), true);assert.equal(isSettingsDestinationHidden("remoteHosts", true), false);+ assert.equal(isSettingsDestinationHidden("voice", false), true);+ assert.equal(isSettingsDestinationHidden("voice", true), false);assert.equal(isSettingsDestinationHidden("general", false), false);});diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex d94ba6e04..a658b13c1 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -886,6 +886,7 @@ sklm: {"shortcutDisable": "Verknüpfung für {{action}} deaktivieren","voice": "Sprache","voiceEnable": "Spracheingabe aktivieren",+ "voiceExperimental": "Experimentell","voiceMicrophone": "Mikrofon","voiceSystemDefault": "Systemstandard","voiceLanguages": "Sprachen",diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex e350320af..56e272229 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -735,6 +735,7 @@ sklm: {shortcutDisable: "Disable shortcut for {{action}}",voice: "Voice",voiceEnable: "Enable voice input",+ voiceExperimental: "Experimental",voiceMicrophone: "Microphone",voiceSystemDefault: "System Default",voiceLanguages: "Languages",diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex b3a33dcbc..317f205a5 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -886,6 +886,7 @@ sklm: {"shortcutDisable": "Deshabilitar el acceso directo para {{action}}","voice": "Voz","voiceEnable": "Habilitar entrada de voz",+ "voiceExperimental": "Experimental","voiceMicrophone": "Micrófono","voiceSystemDefault": "Predeterminado del sistema","voiceLanguages": "Idiomas",diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex 618501af3..f2fdc09fb 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -886,6 +886,7 @@ sklm: {"shortcutDisable": "Désactiver le raccourci pour {{action}}","voice": "Voix","voiceEnable": "Activer la saisie vocale",+ "voiceExperimental": "Expérimental","voiceMicrophone": "Microphone","voiceSystemDefault": "Par défaut du système","voiceLanguages": "Langues",diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex 84fa410a9..a7036def6 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -894,6 +894,7 @@ sklm: {shortcutDisable: "{{action}} 단축키 비활성화",voice: "음성",voiceEnable: "음성 입력 활성화",+ voiceExperimental: "실험적",voiceMicrophone: "마이크",voiceSystemDefault: "시스템 기본값",voiceLanguages: "언어",diff --git a/packages/i18n/src/locales/pt-BR/index.ts b/packages/i18n/src/locales/pt-BR/index.tsindex 5d084b572..4869d1d4b 100644--- a/packages/i18n/src/locales/pt-BR/index.ts+++ b/packages/i18n/src/locales/pt-BR/index.ts@@ -713,6 +713,7 @@ export const ptBR = {shortcutDisable: "Desativar atalho para {{action}}",voice: "Voz",voiceEnable: "Ativar entrada de voz",+ voiceExperimental: "Experimental",voiceMicrophone: "Microfone",voiceSystemDefault: "Padrão do sistema",voiceLanguages: "Idiomas",diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex b1e839458..161c6fbd6 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -884,6 +884,7 @@ sklm: {shortcutDisable: "{{action}} kısayolunu kapat",voice: "Ses",voiceEnable: "Sesli girişi etkinleştir",+ voiceExperimental: "Deneysel",voiceMicrophone: "Mikrofon",voiceSystemDefault: "Sistem varsayılanı",voiceLanguages: "Diller",diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex 10f6c2037..581e42a54 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -871,6 +871,7 @@ sklm: {shortcutDisable: "禁用“{{action}}”快捷键",voice: "语音",voiceEnable: "启用语音输入",+ voiceExperimental: "实验性",voiceMicrophone: "麦克风",voiceSystemDefault: "系统默认",voiceLanguages: "语言",diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex be55d421a..4c3bc3b7a 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -871,6 +871,7 @@ sklm: {shortcutDisable: "停用“{{action}}”快捷鍵",voice: "語音",voiceEnable: "啟用語音輸入",+ voiceExperimental: "實驗性",voiceMicrophone: "麥克風",voiceSystemDefault: "系統預設",voiceLanguages: "語言",