Skip to content

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

fix(desktop): match the project dialog test to its remote-host state

renwanga89eab335401b
diff --git a/apps/desktop/test/project-create-dialog.test.mjs b/apps/desktop/test/project-create-dialog.test.mjs
index ba71ee104..1d42a9129 100644
--- a/apps/desktop/test/project-create-dialog.test.mjs
+++ b/apps/desktop/test/project-create-dialog.test.mjs
@@ -66,7 +66,7 @@ test("create project dialog can create the project from a git checkout", () => {
test("project creation creates one logical group with a primary workspace", () => {
assert.match(store, /createProjectDialogOpen: boolean/);
- assert.match(store, /openProject: async \(\) => \{\s*set\(\{ createProjectDialogOpen: true \}\)/);
+ assert.match(store, /openProject: async \(options\) => \{\s*set\(\{ createProjectDialogOpen: true, createProjectDialogRemoteHostKey: options\?\.remoteHostKey \}\)/);
assert.match(store, /createProjectFromFolders: async \(\{ name, folders, primaryPath \}\)/);
assert.match(store, /const orderedFolders = \[/);
assert.match(store, /api\.createProjectGroup\(normalizedName, orderedFolders\)/);
@@ -77,7 +77,7 @@ test("project creation creates one logical group with a primary workspace", () =
assert.match(store, /created\.group\.primaryPath/);
assert.doesNotMatch(store, /for \(const path of orderedFolders\)/);
assert.match(store, /get\(\)\.renameProject\(groupPrimary, normalizedName\)/);
- assert.match(store, /set\(\{ createProjectDialogOpen: false, onboarding, page: "chat" \}\)/);
+ assert.match(store, /set\(\{ createProjectDialogOpen: false, createProjectDialogRemoteHostKey: undefined, onboarding, page: "chat" \}\)/);
// Folder picks and git checkouts share one project creation semantic.
assert.match(store, /async function createNamedProjectGroup\(/);
assert.match(store, /createProjectFromFolders: async \(\{ name, folders, primaryPath \}\) =>\s*createNamedProjectGroup\(/);