Repository navigation
fix(office): improve tool contracts and multilingual document output - #3766
Merged
Merged
Conversation
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GenOfficeFile now gives agents explicit operation fields and actionable validation errors before workspace IO, so malformed replacements and stale indexes can be corrected without changing the file. PPTX output selects text language from content or an explicit override instead of marking every run as English, and incremental edits preserve both updated text and layout findings.
Type and Areas
Type: Bug fix, tool contract/guidance improvement, regression tests.
Areas: Rust Core GenOfficeFile tool; portable Office document engine and its DOCX/XLSX/PPTX guides.
Motivation / Impact
update_elementssilently retaining old canonical paragraphs when a patch supplies newtext. Remap touched slide indexes aftermove_slidesso layout warnings still describe the edited slides.visual_rendered: falseto write results. Font and preview guidance remains environment-neutral; there are no machine-specific font rules, font blacklists or new Office/renderer dependencies.Verification
pnpm run fmt:rs— passed.cargo test --locked -p openbitfun-office-documents— 28 unit tests and 13 integration tests passed.cargo test --locked -p openbitfun-core --no-default-features --features agent-runtime,git,tools-office-documents --lib agentic::tools::implementations::gen_office_file_tool::tests— 5 tests passed.git diff --checkand staged diff check — passed.Reviewer Notes
mainand inspected related code/history and open PRs, including drafts. At submission, the branch is based on current upstreammain(c2ae5b88d); no open PR covers these changes.langremains available for ambiguous content.Checklist