Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
test(live-voice): align Composer expectations
vastsa8a140b1a3cae
diff --git a/apps/desktop/test/plugin-composer-slots.test.mjs b/apps/desktop/test/plugin-composer-slots.test.mjsindex fe657353e..1595afaef 100644--- a/apps/desktop/test/plugin-composer-slots.test.mjs+++ b/apps/desktop/test/plugin-composer-slots.test.mjs@@ -14,7 +14,9 @@ import { parseProbe, probed, propsProbe, slotMounts, slotSsr } from "./helpers/s*//** The toolbar's own controls below, by label. */-const HOST_LEFT = ["chat.addFiles", "liveVoice.start", "settings.mode", "chat.permissionMode"];+// Live Voice's idle entry is conditional on the feature setting and therefore+// is not a permanent host slot in this disabled-by-default fixture.+const HOST_LEFT = ["chat.addFiles", "settings.mode", "chat.permissionMode"];const HOST_RIGHT = ["context", "chat.model: Model. chat.reasoningLevel: Off", "chat.enhancePrompt", "chat.send"];async function composer(t) {diff --git a/apps/desktop/test/settings-developer-only-destinations.test.mjs b/apps/desktop/test/settings-developer-only-destinations.test.mjsindex 26c7d019d..bace48e97 100644--- a/apps/desktop/test/settings-developer-only-destinations.test.mjs+++ b/apps/desktop/test/settings-developer-only-destinations.test.mjs@@ -97,6 +97,6 @@ test("settings routes, global search, and composer use build visibility", () =>assert.match(searchDialog, /includeDevelopmentOnly: import\.meta\.env\.DEV/);assert.match(composer, /useVoiceInput/);assert.doesNotMatch(composer, /VoiceOverlay|voiceEnabled/);- assert.match(composerToolbar, /<LiveVoiceControls t=\{t\} workSessionId=\{workSessionId\} workSessionLabel=\{workSessionLabel\} \/>/);+ assert.match(composerToolbar, /<LiveVoiceControls\b/);assert.doesNotMatch(composerToolbar, /VoiceMicButton|voicePhase|onVoiceToggle|onVoiceCancel/);});diff --git a/apps/desktop/test/voice-settings-surface.test.mjs b/apps/desktop/test/voice-settings-surface.test.mjsindex 0c3a6c51f..cee47686c 100644--- a/apps/desktop/test/voice-settings-surface.test.mjs+++ b/apps/desktop/test/voice-settings-surface.test.mjs@@ -85,6 +85,6 @@ test("Composer keeps Live Voice and no longer mounts local Dictation controls",assert.match(composer, /useVoiceInput/);assert.doesNotMatch(composer, /VoiceOverlay|voiceEnabled/);- assert.match(toolbar, /<LiveVoiceControls t=\{t\} workSessionId=\{workSessionId\} workSessionLabel=\{workSessionLabel\} \/>/);+ assert.match(toolbar, /<LiveVoiceControls\b/);assert.doesNotMatch(toolbar, /VoiceMicButton|voicePhase|onVoiceToggle|onVoiceCancel/);});