Skip to content

fix: mark resource as missing when folder-mode copyFile fails#464

Merged
xiaolai merged 1 commit intomainfrom
fix/456-folder-mode-copy-failure
Mar 18, 2026
Merged

fix: mark resource as missing when folder-mode copyFile fails#464
xiaolai merged 1 commit intomainfrom
fix/456-folder-mode-copy-failure

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Mar 18, 2026

Summary

  • When copyFile fails during folder-mode export, the resource is now marked found: false and routed to missing instead of resolved
  • Previously, a failed copy left broken asset:// URLs in exported HTML while the report claimed missingCount: 0
  • Updated test to verify the corrected behavior

Closes #456

Test plan

  • Updated existing test handles copy failure in folder mode to assert resource lands in missing array
  • Verified pnpm check:all passes (lint, tests, build)

🤖 Generated with Claude Code

When copyFile fails during folder-mode export (e.g., permission denied,
disk full), the resource is now correctly marked with found: false and
routed to the missing array instead of resolved. This ensures the export
report accurately reflects broken image references.

Closes #456

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@claude claude bot enabled auto-merge (squash) March 18, 2026 09:56
@xiaolai xiaolai merged commit c03fd09 into main Mar 18, 2026
3 checks passed
@xiaolai xiaolai deleted the fix/456-folder-mode-copy-failure branch March 20, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[audit] export: folder-mode copy failure silently leaves broken image references

1 participant