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(plugins): pin the ready budget in the panel-window contract
xjxa5fd4dc20d27
diff --git a/apps/desktop/test/plugin-panel-window.test.mjs b/apps/desktop/test/plugin-panel-window.test.mjsindex eda94e63a..161cf18b2 100644--- a/apps/desktop/test/plugin-panel-window.test.mjs+++ b/apps/desktop/test/plugin-panel-window.test.mjs@@ -96,7 +96,9 @@ test("plugin panel close does not read destroyed webContents", () => {hostSource.indexOf("this.windows.set(request.pluginId, win);"),);assert.doesNotMatch(closedHandler, /win\.webContents/);- assert.match(hostSource, /await win\.loadURL\(/);+ // The hidden window loads through the ready budget (issue #998 item 5), and+ // the open path's catch still destroys it on a failed load.+ assert.match(hostSource, /await panelReadyWithin\(\s*win\.loadURL\(/);assert.match(hostSource, /if \(!win\.isDestroyed\(\)\) \{\s*win\.destroy\(\);\s*\}/);});