fix(files): skip zip and return plain .md when no embedded images#4498
fix(files): skip zip and return plain .md when no embedded images#4498waleedlatif1 merged 3 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview ZIP generation is now only used when one or more embedded image assets are detected (log message adjusted accordingly). Reviewed by Cursor Bugbot for commit 26edc0c. Configure here. |
Greptile SummaryThis PR fixes markdown export so files with no embedded
Confidence Score: 5/5Safe to merge — the change is narrowly scoped and does not alter the ZIP path. The early-return branch is well-isolated: it fires only when no image IDs are extracted, uses the same safeFilename helper already in use throughout the file, and correctly encodes the markdown to UTF-8 before sending. The more precise imageIds.length === 0 guard prevents the branch from masking failed image fetches. No existing code paths are affected. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "fix(files): move imageIds.length guard b..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
|
@greptile |
|
@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 26edc0c. Configure here.
Summary
.mdinstead of a.zip/api/files/view/image assetsType of Change
Testing
Tested manually
Checklist