Repository navigation
fix(desktop): recognize empty ZIP state views - #12163
Conversation
(cherry picked from commit 263b25b)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] This PR appears safe to merge; no blocking issues were found. SummaryDesktop state views and exported Python readers now recognize empty classic and ZIP64 archives without relying on file names.
No actionable issues found. Reviewed the related changes in #12157; no higher replacement PR was supplied. Tests were inspected, not run. Reviews (1) · Last reviewed commit: "refactor(zip): share the local-header si..." · Reviewed by Greptile |
…ews (#12157) * fix(desktop): reject split ZIP volume metadata Refs #12137 * refactor(zip): read Zip64 disk fields through BinaryReader * fix(desktop): validate ZIP extra fields before selection Refs #12146 * fix(desktop): keep bounded ZIP pairing compatible with Python 3.9 * fix(desktop): retain exact counts in bounded Zip64 views * fix(desktop): follow the declared Zip64 directory frame * fix(desktop): recognize empty ZIP state views (#12163) * fix(desktop): recognize empty ZIP state views (cherry picked from commit 263b25b) * fix(desktop): reuse empty ZIP admission for wrapped documents * refactor(zip): share the local-header signature with desktop state --------- Co-authored-by: wunianze666-netizen <[email protected]> * test(zip): inherit the portable ZIP count deadline --------- Co-authored-by: wunianze666-netizen <[email protected]>
Summary
A standard empty ZIP was classified as binary even though the directory reader accepts it. Desktop state views and the generated verifier now recognize empty classic and ZIP64 archives through the same ZIP signature facts. Nested ZIP members retain the existing viewless behavior. An empty ZIP wrapped in gzip also reaches the same reader.
This refresh credits @wunianze666-netizen's work in #9336 and carries that patch forward on top of #12157. The ZIP64 draft is the base so this review shows only the state detection changes.
Contract and boundary impact
This is passive inspection of selected state files. Host and generated reader dispatch change while the existing directory, recursion, and storage bounds still apply. No CLI or MCP schema migration is required.
Validation performed
npm run test:focused -- tests/boundary/providers/desktopEmptyZip.test.ts tests/boundary/providers/desktopGzipPython.test.tspassed 13 tests on Node 24.22.1.npm run check:fastandgit diff --checkpassed.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.