Repository navigation
fix(glb): report malformed JSON roots and image declarations as unknown (#14296) - #14340
P-r-e-m-i-u-m wants to merge 1 commit into
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge. SummaryThe PR stops reporting complete GLB coverage for malformed JSON roots and image declarations while keeping raw chunk regions available.
Reviews (1) · Last reviewed commit: "fix(glb): report malformed JSON roots an..." · Reviewed by Greptile |
|
thanks for the fix! we’re consolidating this in #14297, which covers the same malformed GLB cases and adds positive controls plus CLI regression coverage. closing this overlapping PR so we can review and land one implementation. |
|
Thanks for the clear reason, @vincentkoc — consolidating into #14297 is the right call, and glad to see it landed. That one slipped past my duplicate check: I searched PR titles for the issue number, but #14297's title doesn't mention #14296. I'll search by touched file and open PRs for the same bug from now on, not just by issue reference. No hard feelings at all. My patch passed 41 targeted tests and Greptile gave it 5/5, so I know the work was sound — but one implementation is better than two. Happy to take another issue when there's one free. |
Fixes #14296 — claimed on the issue first.
Changes
glbLayoutno longer silently coerces malformed GLB JSON into empty defaults and reports full coverage:[],null,42,"text",true) now setjson_status: "invalid",regionsExamined: "unknown"and the existing "not a readable JSON object" limitation, while still listing the raw chunk regions.imagesmember now sets unknown coverage with an explicit limitation.buffers[0]is not an object, or whosebyteOffsetis explicitlynull, now counts as unresolved instead of being listed as an embedded region.Added a
jsonRootoverride to the GLB test fixture and 12 regression cases through the real reader.Verification
npx vitest run src/artifacts/gpuAsset/GpuAssetArtifactReader.test.ts— 41 passed (12 new).