Skip to content

Test: reproduce reclaimed nested groups affecting neighboring items - #217

Open
nguyenyou wants to merge 1 commit into
raquo:masterfrom
nguyenyou:codex/nested-group-resteal-reproducer
Open

nguyenyou wants to merge 1 commit into
raquo:masterfrom
nguyenyou:codex/nested-group-resteal-reproducer

Conversation

@nguyenyou

Copy link
Copy Markdown
Contributor

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

Adds reproducers for a dynamic inserter reclaimed by a list after another list removes it and parent.amend(inserter) recreates it under the same parent.

Current behavior:
The reclaimed group lacks its trailing sentinel. After the enclosing list takes the group's child as a separate item, updating the group removes that child, and moving the group carries it into another list.

Expected behavior:
The child should remain with the enclosing list, consistent with existing stealing and group-move behavior.

Tests only; no implementation changes. Against master, two reference tests pass and three reproducers fail.

Run:
sbt 'testOnly *NestedGroupReStealSpec'

Add two reference tests and three reproducers for same-parent group reclamation after removal and plain placement.

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