Skip to content

Commit b4cfd29

Browse files
committed
fix(vfs): pass folderPath separately so buildWorkspaceMd groups files correctly
1 parent 4fae386 commit b4cfd29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,9 +901,10 @@ export class WorkspaceVFS {
901901

902902
return files.map((f) => ({
903903
id: f.id,
904-
name: f.folderPath ? `${f.folderPath}/${f.name}` : f.name,
904+
name: f.name,
905905
type: f.type,
906906
size: f.size,
907+
folderPath: f.folderPath ?? null,
907908
}))
908909
} catch (err) {
909910
logger.warn('Failed to materialize files', {

0 commit comments

Comments
 (0)