Skip to content

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

test(file-manager): carry the preload crash in the journey state dump

SeanLiu32635b393153130
diff --git a/apps/desktop/test/file-manager-directory-location-user-path.e2e.mjs b/apps/desktop/test/file-manager-directory-location-user-path.e2e.mjs
index 18439191e..53e8018ca 100644
--- a/apps/desktop/test/file-manager-directory-location-user-path.e2e.mjs
+++ b/apps/desktop/test/file-manager-directory-location-user-path.e2e.mjs
@@ -65,8 +65,11 @@ function readState(window) {
"const alert = document.querySelector('[role=\"alert\"]');" +
"let log = null;" +
"try { log = window.__fixtureLog ? window.__fixtureLog() : null; } catch {}" +
+ "let preloadError = null;" +
+ "try { preloadError = window.__preloadError ? window.__preloadError() : null; } catch {}" +
"return {" +
"bridge: Boolean(window.pluginBridge)," +
+ "preloadError," +
"selectedPath: selected?.getAttribute('data-path') ?? null," +
"selectedExpanded: selected?.getAttribute('aria-expanded') ?? null," +
"alertText: alert?.textContent ?? null," +
@@ -193,6 +196,7 @@ function assertScratchState(state) {
function describe(state) {
return JSON.stringify({
bridge: state.state?.bridge,
+ preloadError: state.state?.preloadError,
selectedPath: state.state?.selectedPath,
alertText: state.state?.alertText,
editorOpen: state.state?.editorOpen,