fix(files): preserve slashes in folder paths - #6589
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Introduces Also validates that a folder’s path’s last segment matches its name when presenting v2 folders. Reviewed by Cursor Bugbot for commit a6ab404. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR introduces a shared escaped display-path codec and applies it across workspace-file APIs, VFS lookup, folder operations, ZIP generation, and client consumers.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/workspace-files/folder-display-path.ts | Adds the shared reversible codec that distinguishes escaped slashes and backslashes from hierarchy delimiters. |
| apps/sim/lib/uploads/contexts/workspace/workspace-file-manager.ts | Preserves decoded VFS segment boundaries through exact lookup and canonical in-memory matching, resolving the previously reported failure. |
| apps/sim/lib/copilot/vfs/path-utils.ts | Builds canonical workspace-file paths from decoded display-path segments so slash-containing folder names remain atomic. |
| apps/sim/lib/copilot/tools/handlers/function-execute.ts | Uses the shared codec when resolving tool input directories and constructing sandbox paths. |
| apps/sim/lib/uploads/zip-entry-path.ts | Parses display paths before sanitization so embedded slashes are neutralized rather than treated as archive hierarchy. |
Reviews (2): Last reviewed commit: "fix(files): resolve escaped folder looku..." | Re-trigger Greptile
d269d51 to
a6ab404
Compare
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit a6ab404. Configure here.
Summary
Type of Change
Testing
bun run lintbun run check:auditsbun run type-checkChecklist