From a6fbb5147886f0cc90be843beabb2f34f727f9ca Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Tue, 7 Apr 2026 10:22:21 -0700 Subject: [PATCH] Empty folders should show in vfs --- apps/sim/lib/copilot/vfs/workspace-vfs.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/sim/lib/copilot/vfs/workspace-vfs.ts b/apps/sim/lib/copilot/vfs/workspace-vfs.ts index a3f58d3838..122cd8488f 100644 --- a/apps/sim/lib/copilot/vfs/workspace-vfs.ts +++ b/apps/sim/lib/copilot/vfs/workspace-vfs.ts @@ -500,6 +500,14 @@ export class WorkspaceVFS { const folderPaths = this.buildFolderPaths(folderRows) + // Register all folders in the VFS so empty folders are discoverable. + for (const { folderId } of folderRows) { + const folderPath = folderPaths.get(folderId) + if (folderPath) { + this.files.set(`workflows/${folderPath}/.folder`, '') + } + } + await Promise.all( workflowRows.map(async (wf) => { const safeName = sanitizeName(wf.name)