Skip to content

fix: preserve dotted keys when appending AOT entries - #289

Merged
DecimalTurn merged 3 commits into
latestfrom
dev-aot-style
Aug 19, 2026
Merged

fix: preserve dotted keys when appending AOT entries#289
DecimalTurn merged 3 commits into
latestfrom
dev-aot-style

Conversation

@DecimalTurn

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 19, 2026 07:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the patch application logic for appending new array-of-tables (AOT) entries so that dotted-key structure is preserved, preventing mis-association of nested subtables/keys during re-parse.

Changes:

  • Added logic to detect when an AOT entry should use dotted keys and to rebuild appended entries accordingly.
  • Hooked the new preservation logic into the “append AOT entry after previous entry scope” insertion path.
  • Updated a fuzz/regression test case from test.fails to a normal passing test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/patch.ts Adds helpers to preserve dotted keys for appended AOT entries and applies them during AOT append insertion.
src/tests/patch.fuzz.test.ts Converts a previously-known failing regression case into a passing test.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/patch.ts
@DecimalTurn
DecimalTurn marked this pull request as ready for review August 19, 2026 07:35
@DecimalTurn
DecimalTurn merged commit fa6e199 into latest Aug 19, 2026
30 of 31 checks passed
@DecimalTurn
DecimalTurn deleted the dev-aot-style branch August 19, 2026 07:35
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.

2 participants