Repository navigation
fix(id/web): validate frames and chunk_bytes in world upload/compile socket handlers (#5034) - #5041
Conversation
…socket handlers (#5034)
Codex Review SummaryThis 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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex disposition (task 8635): the Codex code review on c661e5f failed on Codex usage limits (see the Codex summary comment above: "You have reached your Codex usage limits for code reviews"). Verified fresh this shift: PR #5041 has zero Codex review threads and zero inline review comments — no findings were delivered, so there is nothing undispositioned to fix or rebut. CodeRabbit was rate-limited/skipped (NEUTRAL). Proceeding under the standing merge criteria: diff is +70/−5 across 2 files (world.ts guard mirroring receive()'s isRecord pattern + Number.isInteger chunk_bytes check; world-contract tests cover null/number/string/array frames and fractional/string chunk_bytes for the upload handler, non-object frames for the compile handler); laptop verification from the opening shift stands (world-contract 23/23, full web suite 632 passed / 9 skipped, tsc clean). The production line-limit check has been QUEUED since 17:31Z in the fleet-wide Actions runner stall; the diff is 75 changed lines, verified manually against the 2500-line limit. |
fix(id/web): validate frames and chunk_bytes in world upload/compile socket handlers (#5034)
The module-upload and Roc-compile socket handlers in pkgs/id/web/src/world.ts cast JSON.parse straight to WorldFrame and read frame.type unguarded: a null frame threw uncaught, number/string/array frames were silently ignored and hung the flow, and a fractional or string chunk_bytes corrupted the chunk stream (fractional or string install_chunk offsets the server's usize offsets cannot accept).
Verification (laptop, worktree at origin/main d496214):
Queue task 8635.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.