You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c2214f0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(files): keep render failures retryable and never relabel unrendered bytes
Addresses the first review round.
- Only memoize a render failure when it is deterministic. A DocCompileUserError
means the source will never render, so remembering it is safe; sandbox
outages, timeouts, and cancellations are transient and were stranding valid
documents for the life of the process. Infra failures now propagate, which
also restores DocCompileUserError reaching callers that map it to 409.
- Refuse to hand back bytes the resolver could not render. readUserFileContent
returns a string, so the resolver's honest application/octet-stream could not
travel with it and attachment builders re-inferred a document MIME from the
filename — shipping generation source to a provider as a PDF. The file-serve
route keeps the graceful passthrough, where a human downloading the bytes is
useful.
- Normalize the declared type once so a padded or upper-cased source marker
cannot pass the resolver gate on one code path and fail it on the other.
- Import the doc-not-ready guard lazily. The static import pulled the
doc-compile module graph (remote sandbox, task runner, execution limits) into
every hydration consumer and broke an unrelated test's module mock in CI.
0 commit comments