Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(plugins): restore the lifecycle.unload case label
Tioit-Wangaf3fe239acd7
diff --git a/apps/desktop/electron/main/plugin-host-process.mjs b/apps/desktop/electron/main/plugin-host-process.mjsindex 3e0dcf493..0ea635860 100644--- a/apps/desktop/electron/main/plugin-host-process.mjs+++ b/apps/desktop/electron/main/plugin-host-process.mjs@@ -587,6 +587,7 @@ async function handleParentCall(method, payload, invocationId) {}return handler(String(payload?.method ?? ""), payload?.args ?? {});}+ case "lifecycle.unload": {for (const id of invocations.keys()) cancelInvocation(id, "Plugin unloaded");// Best effort: a throwing onUnload must not block teardown.try {