From 0ba6c3d1327c6d3b968c7c11bc3241f3374b16ed Mon Sep 17 00:00:00 2001 From: naman-bruno Date: Wed, 11 Feb 2026 15:02:31 +0530 Subject: [PATCH] fix: filter existing paths for apispec in workspace (#7104) --- packages/bruno-electron/src/ipc/workspace.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/bruno-electron/src/ipc/workspace.js b/packages/bruno-electron/src/ipc/workspace.js index 57914954f..908300bf9 100644 --- a/packages/bruno-electron/src/ipc/workspace.js +++ b/packages/bruno-electron/src/ipc/workspace.js @@ -211,15 +211,17 @@ const registerWorkspaceIpc = (mainWindow, workspaceWatcher) => { const specs = workspaceConfig.specs || []; - const resolvedSpecs = specs.map((spec) => { - if (spec.path && !path.isAbsolute(spec.path)) { - return { - ...spec, - path: path.join(workspacePath, spec.path) - }; - } - return spec; - }); + const resolvedSpecs = specs + .map((spec) => { + if (spec.path && !path.isAbsolute(spec.path)) { + return { + ...spec, + path: path.join(workspacePath, spec.path) + }; + } + return spec; + }) + .filter((spec) => spec.path && fs.existsSync(spec.path)); return resolvedSpecs; } catch (error) {