Skip to content

Commit 58a82bb

Browse files
committed
Empty folders should show in vfs
1 parent 0a227fa commit 58a82bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/sim/lib/copilot/vfs/workspace-vfs.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,14 @@ export class WorkspaceVFS {
500500

501501
const folderPaths = this.buildFolderPaths(folderRows)
502502

503+
// Register all folders in the VFS so empty folders are discoverable.
504+
for (const { folderId } of folderRows) {
505+
const folderPath = folderPaths.get(folderId)
506+
if (folderPath) {
507+
this.files.set(`workflows/${folderPath}/.folder`, '')
508+
}
509+
}
510+
503511
await Promise.all(
504512
workflowRows.map(async (wf) => {
505513
const safeName = sanitizeName(wf.name)

0 commit comments

Comments
 (0)