Skip to content

list tool improvements#2927

Merged
caio-pizzol merged 16 commits into
mainfrom
andrii/sd-2296-tool-improvements-fix-list-and-numbering-workflow-targeting
Apr 28, 2026
Merged

list tool improvements#2927
caio-pizzol merged 16 commits into
mainfrom
andrii/sd-2296-tool-improvements-fix-list-and-numbering-workflow-targeting

Conversation

@andrii-harbour
Copy link
Copy Markdown
Contributor

No description provided.

@andrii-harbour andrii-harbour self-assigned this Apr 23, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Apr 23, 2026

@mintlify
Copy link
Copy Markdown

mintlify Bot commented Apr 23, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
SuperDoc 🟢 Ready View Preview Apr 23, 2026, 7:53 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

…mbol font violations

- Introduced `numbering-consistency.js` to validate that ordered list levels do not use symbol fonts, preventing rendering issues in Word.
- Implemented `findSymbolFontsOnOrderedLevels` function to identify violations in OOXML abstractNum elements.
- Added comprehensive tests in `numbering-consistency.test.js` to ensure correct functionality and edge case handling.
- Updated `package.json` to refine the `clean` script and introduce new prebuild commands for benchmark dependencies.
- Added a new function `usesListAction` in `checks.cjs` to validate that the expected list action is called during evaluations.
- Introduced a new document `basic-list.docx` for testing list operations.
- Expanded benchmark and execution tests to include assertions for list actions, ensuring correct functionality for merging, splitting, and restarting lists.
- Implemented regression guards to check for symbol font violations in ordered lists.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 600960f430

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

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

hey @andrii-harbour! nice direction - merge and split fill a real gap.

two bugs to fix before merge, both inline. would also add dry-run tests for the new ops.

- Updated test descriptions for clarity, removing references to specific bugs.
- Added new test cases for `lists.merge` and `lists.split` actions to ensure proper functionality and validation.
- Refactored `listsMergeWrapper` and `listsSplitWrapper` to improve handling of empty paragraphs and revision management during list operations.
@andrii-harbour
Copy link
Copy Markdown
Contributor Author

@caio-pizzol fixed

Adds checkBulletsAndNumbersMerged, checkBulletListSplitAtWith, and
checkRestartAtAllSorts in evals/shared/checks.cjs that read
word/document.xml from the saved docx and verify the numId/ilvl change
the agent was supposed to make. Without these the merge/split/restart
evals could pass even if the list itself never changed.

Also reword the listsSplitWrapper doc comment to drop the misleading
"applied atomically" claim - the implementation runs as two sequential
steps and the inline note already documents the partial-apply failure
mode. And rename the validator test that read backwards (default is
restart-on, not opt-out).
@caio-pizzol
Copy link
Copy Markdown
Contributor

caio-pizzol commented Apr 28, 2026

hey @andrii-harbour! nice paraId fix.

i pushed a follow-up (1924ca8): fixed the split comment that promised atomic but the code runs in two steps, renamed the test that read backwards, and added checks so the merge/split/restart evals fail when the list doesn't actually change.

lgtm

@caio-pizzol caio-pizzol enabled auto-merge April 28, 2026 09:58
@caio-pizzol caio-pizzol added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit d3f7309 Apr 28, 2026
60 checks passed
@caio-pizzol caio-pizzol deleted the andrii/sd-2296-tool-improvements-fix-list-and-numbering-workflow-targeting branch April 28, 2026 10:24
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 28, 2026

🎉 This PR is included in superdoc v1.30.0-next.6

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 28, 2026

🎉 This PR is included in superdoc-sdk v1.8.0-next.6

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 28, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.4

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 29, 2026

🎉 This PR is included in @superdoc-dev/react v1.2.0-next.49

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 29, 2026

🎉 This PR is included in vscode-ext v2.3.0-next.51

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 30, 2026

🎉 This PR is included in superdoc v1.30.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 1, 2026

🎉 This PR is included in superdoc-cli v0.8.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 1, 2026

🎉 This PR is included in superdoc-sdk v1.8.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 1, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.3.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in vscode-ext v2.3.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 7, 2026

🎉 This PR is included in @superdoc-dev/react v1.3.0

The release is available on GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants