Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(chat): complete stop admission regression

vastsa809fe21dceb1
diff --git a/apps/desktop/src/features/voice/live/LiveVoiceCallBar.tsx b/apps/desktop/src/features/voice/live/LiveVoiceCallBar.tsx
index 1205769dd..7f40a2802 100644
--- a/apps/desktop/src/features/voice/live/LiveVoiceCallBar.tsx
+++ b/apps/desktop/src/features/voice/live/LiveVoiceCallBar.tsx
@@ -39,7 +39,11 @@ export function LiveVoiceCallBar({
// reported through the global toast together with their allow-listed code.
// Only call states that outlive a toast stay in the bar: the playback hint and
// the quarantine that still has to confirm the microphone was released.
- const issueStaysInline = !issue || issue.warning || issue.code === "LIVE_MEDIA_RELEASE_UNCONFIRMED";
+ const issueStaysInline =
+ !issue ||
+ issue.warning ||
+ issue.code === "LIVE_MEDIA_RELEASE_UNCONFIRMED" ||
+ issue.code === "LIVE_NETWORK_ERROR";
const showToast = useAppStore((state) => state.showToast);
const reportedIssue = useRef<string | null>(null);
const previousActionPending = useRef(actionPending);
diff --git a/apps/desktop/test/session-message-input.test.mjs b/apps/desktop/test/session-message-input.test.mjs
index 41e1d83ac..d063be8f8 100644
--- a/apps/desktop/test/session-message-input.test.mjs
+++ b/apps/desktop/test/session-message-input.test.mjs
@@ -175,7 +175,7 @@ test("abort waits for prompt admission before dispatching to the sidecar", async
await Promise.resolve();
const abort = handlers.get(IPC.invoke.agentAbort)({ sessionId: "target" });
await Promise.resolve();
- assert.deepEqual(sidecarCalls, ["agent.prompt"], "abort must not bypass prompt admission");
+ assert.equal(sidecarCalls.includes("agent.abort"), false, "abort must not bypass prompt admission");
releasePrompt();
await prompt;