Skip to content

Fix batch component creation on fresh worlds - #318

Open
sean0407 wants to merge 1 commit into
genaray:masterfrom
sean0407:codex/fix-single-component-batch-create-314
Open

sean0407 wants to merge 1 commit into
genaray:masterfrom
sean0407:codex/fix-single-component-batch-create-314

Conversation

@sean0407

Copy link
Copy Markdown

Summary

Fixes the reversed slot range passed to Archetype.SetRange when creating a batch of identical components in a fresh world. Adds a regression test for World.Create(10, 42).

Fixes #314.

Evidence

  • Reproduced the reported ArgumentOutOfRangeException in an isolated .NET 8 container with networking disabled during execution.
  • The targeted regression test passes in an isolated container.
  • Full test suite: 143 passed, 0 failed, 0 skipped.
  • git diff --check passed.
  • Project patch policy accepted: 2 files, no binary changes.

Merge Danger

Low. The change reverses the endpoints passed to the existing range fill for this batch-creation path and adds a focused regression test.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T00:09:30.588196Z 7ccf6f6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

ArgumentOutOfRangeException on first call to single-component batch Create<T>(amount, in T) on a fresh World (v2.1.0)

1 participant