From c733480d0bb9f0356505e0ee76c3ea4b8baa2f94 Mon Sep 17 00:00:00 2001 From: moreih29 Date: Fri, 20 Nov 2026 02:07:17 +0900 Subject: [PATCH] fix(workspace): treat legacy rootPath createAndConnect as local The IPC schema accepts the legacy { rootPath, name } shape, but the handler only took the local branch when a location field was present, so the legacy shape fell through to createAndConnectSsh and failed with an internal error. Co-Authored-By: Claude Opus 5.5 --- src/main/features/workspace/ipc.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/features/workspace/ipc.ts b/src/main/features/workspace/ipc.ts index 0ae83696d..0130ce398 100644 --- a/src/main/features/workspace/ipc.ts +++ b/src/main/features/workspace/ipc.ts @@ -80,7 +80,8 @@ export function registerWorkspaceChannel( // When a browse session id is supplied the user already authenticated // via the SSH directory picker; use the legacy create+claimMaster path // which reuses that session's ControlMaster without a second prompt. - if (createArgs && "location" in createArgs && createArgs.location.kind !== "ssh") { + // The legacy `{ rootPath }` shape is always a local folder. + if (!("location" in createArgs) || createArgs.location.kind !== "ssh") { // Local: commit immediately — no connection step needed. const meta = manager.create(createArgs); return ipcOk(meta);