Skip to content

Test: reproduce command removal and replacement affecting stolen nodes - #218

Open
nguyenyou wants to merge 1 commit into
raquo:masterfrom
nguyenyou:codex/command-stolen-node-reproducer
Open

nguyenyou wants to merge 1 commit into
raquo:masterfrom
nguyenyou:codex/command-stolen-node-reproducer

Conversation

@nguyenyou

Copy link
Copy Markdown
Contributor

Recreates the original PR #212, which was automatically closed when my fork was accidentally deleted.

Adds reproducers for children.command <-- targeting a node that another inserter has taken.

Current behavior:

  • When the destination has a different parent, Remove and Replace leave the stolen node untouched.
  • When both inserters share a parent, Remove deletes the stolen node and Replace replaces it in the destination’s region.

Expected behavior:
Both commands should leave nodes outside their own region untouched, consistent with the existing cross-parent tests in ChildrenCommandReceiverSpec.

Tests only; no implementation changes. Against master, the cross-parent reference passes and four same-parent cases fail.

Run:
sbt 'testOnly *ChildrenCommandStolenNodeSpec'

Add a cross-parent reference and four same-parent reproducers for commands affecting nodes taken by another inserter.

Co-Authored-By: Codex GPT-6 Astra <codex@openai.com>
@nguyenyou
nguyenyou requested a review from raquo as a code owner October 7, 2026 03:01

This branch has not been deployed

No deployments
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.

1 participant