Skip to content

fix: correct text handling and collaboration edge cases - #1463

Merged
andiwand merged 3 commits into
mainfrom
fix/recent-pr-review
Dec 4, 2026
Merged

andiwand merged 3 commits into
mainfrom
fix/recent-pr-review

Conversation

@andiwand

@andiwand andiwand commented Dec 4, 2026

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Fix seven reproduced edge cases found while reviewing all 77 PRs merged November 28–December 4, through #1462 (12687904). Also shorten and correct the collaboration design to match the implemented API. Each behavioral finding was checked with a failing test or minimal reproducer before the fix, then verified after it.

PDF selection geometry (#1461, merged during review): hidden pages were fitted before they had measurable geometry and never retried. Defer fitting and handle page-change events. The regression fails two checks on the original script and passes all 95 annotation checks with the fix.

The documentation now shows apply/revision, the actual creation-id spelling, current component responsibilities and deferred Document::edit deprecation; removes the obsolete gap table and settled questions.

Validation:

  • Built odr_test, Python and JNI bindings in cmake-build-relwithdebinfo.
  • 507 targeted C++ review tests passed across editing/restoration, rendering, detection, PDF, compression, encoding, cryptography and spreadsheet recalculation. After rebasing onto the two newly merged PRs, the final affected-code run passed all 125 tests (OldMs.doc*:Text.*:HtmlEditSession.*:EditTransform.*:PdfFont.*:DocumentParser.*:SfntFont.*); these counts overlap.
  • 78 Python tests and all 106 Java tests passed against the final native changes, including corpus replay and PDF bindings.
  • 62 Chromium browser fixtures passed: 1,418 numbered assertions plus the pagination fixture. Rebuilt the page module's changed sources with Emscripten using unchanged cached dependencies; reran the module-dependent fixtures and presence regressions.
  • All 5 formatting-script tests passed; ran scripts/format and git diff --check.

The full corpus suite, Swift/Android device tests and the complete cross-platform CI matrix were not run locally. CI/platform and reference-output pin changes received static review; no claim of a fresh visual comparison of the entire reference corpus.

Review ledger: all 77 merged PRs

Reviewed changes and their interactions for correctness, consistency and unnecessary complexity. “No additional confirmed finding” means no further patch justified by the review and checks above, not a guarantee of defect-free code.

PR Change Review outcome
#1383 feat(html): add progressive text pagination No additional confirmed finding.
#1386 refactor(html): edit text through source and view mappings No additional confirmed finding.
#1387 fix(docx): keep fixed table column widths in HTML No additional confirmed finding.
#1388 perf(html): chunk the unformatted flow and skip needless layout reads No additional confirmed finding.
#1389 test: render text documents paginated in the reference output No additional confirmed finding.
#1390 feat(doc): page layout, style sheet and paragraph formatting Fixed optional-formatting stream recovery.
#1391 ci: bump htmlcmp to 2.6.0 No additional confirmed finding.
#1392 fix: CI fixes on main after #1390 No additional confirmed finding.
#1393 ci: fixes for jobs failing on main No additional confirmed finding.
#1394 test: compare created documents without their zip timestamps No additional confirmed finding.
#1395 fix(html): take a picked keyboard suggestion from dataTransfer No additional confirmed finding.
#1396 docs(changelog): file the unreleased entries under their headings No additional confirmed finding.
#1397 feat(html): outline text frames in the editing mode, mark the active and empty ones No additional confirmed finding.
#1399 feat(html): word the empty-frame prompt from HtmlConfig No additional confirmed finding.
#1400 feat(text): write a file's text in reading order Fixed missing spreadsheet values and leaking list markers.
#1401 docs: choose a core edit session for collaborative editing Updated stale API, status and ownership documentation.
#1402 feat(document): keep a removed element for a restore under its ids No additional confirmed finding.
#1403 feat: edit envelope version 3, whole or not at all No additional confirmed finding.
#1404 feat(html): edit session and a page that streams its transactions No additional confirmed finding.
#1405 feat(document): transform a late transaction past what came since Fixed created-name/numeric-id rebasing and removal conflicts.
#1406 refactor(document): reserve created ids as names, not pointers into the op No additional confirmed finding.
#1407 docs: plainer comments on restore, replay and streaming No additional confirmed finding.
#1408 docs: plan presence and read-aloud No additional confirmed finding.
#1409 fix(test): name the parsed style before iterating its keys No additional confirmed finding.
#1410 feat(html): a connected page keeps its edits when another's arrive No additional confirmed finding.
#1411 feat(html): sheet and plain-text pages stream their edits Fixed version and offset validation, including late transactions.
#1412 feat(document): a removed xlsx sheet and pptx slide come back No additional confirmed finding.
#1413 test(browser): an edit corpus of real gestures, replayed through core No additional confirmed finding.
#1414 feat(html): a connected page shows where the others are Fixed stale and queued presence ordering.
#1415 feat(html): presence for pictures and plain-text pages No additional confirmed finding.
#1416 feat(html): presence on sheets and slides No additional confirmed finding.
#1417 feat(html): mark the others' selections out of view on the edge No additional confirmed finding.
#1418 fix(html): marks redraw when a single-page layout shows another page No additional confirmed finding.
#1419 fix(test): count the slides a presentation marks, not the script naming the attribute No additional confirmed finding.
#1420 refactor(html): the walk over a page's blocks moves out of search No additional confirmed finding.
#1421 feat(html): a page says what a host's voice reads next No additional confirmed finding.
#1422 feat(html): the page highlights where the voice is, and follows it No additional confirmed finding.
#1423 feat(html): read-aloud reads a workbook a sheet at a time, a presentation a slide No additional confirmed finding.
#1424 feat(pdf): a public pdf document and its objects No additional confirmed finding.
#1425 feat(pdf): pages and annotations of a public pdf document No additional confirmed finding.
#1426 feat(pdf): fonts and images of a public pdf document No additional confirmed finding.
#1427 feat(pdf): the content of a public pdf page No additional confirmed finding.
#1428 fix(test): look for a shadow in the page's markup, not its scripts No additional confirmed finding.
#1429 feat(bindings): the pdf document view in pyodr, Java, Swift and npm No additional confirmed finding.
#1430 docs(changelog): tidy Unreleased before the cut No additional confirmed finding.
#1431 test: advance the reference outputs to main No additional confirmed finding.
#1432 ci: build on the newest runner images and compilers No additional confirmed finding.
#1433 refactor: deflate and zip wrap miniz, and nothing else includes it No additional confirmed finding.
#1434 feat(crypto): botan 3 replaces crypto++ No additional confirmed finding.
#1435 ci: windows builds on windows-2025 with visual studio 2026 No additional confirmed finding.
#1436 ci: one required check per workflow No additional confirmed finding.
#1437 chore: keep the stream TODO only where streaming would pay No additional confirmed finding.
#1438 docs: translate_text says which types can be read aloud No additional confirmed finding.
#1439 docs: read-aloud asks the open file for its capabilities No additional confirmed finding.
#1440 feat(encoding): detect text encodings without uchardet No additional confirmed finding.
#1441 fix(html): pagination works in WebViews before 86 No additional confirmed finding.
#1442 fix(html): read-aloud skips a sheet's empty grid and no title No additional confirmed finding.
#1443 ci: required checks pass only when every job succeeded No additional confirmed finding.
#1444 feat(html): an ods sheet draws the grid up to the format's maximum No additional confirmed finding.
#1445 test: advance the reference outputs to main No additional confirmed finding.
#1446 fix(html): a fragment link stays in its document No additional confirmed finding.
#1447 feat(html): slide gestures take the current page, a text box a default place No additional confirmed finding.
#1448 feat(html): a page says which gestures it takes, and reports the pdf tool No additional confirmed finding.
#1449 feat(html): a render computes the formulas an edit left stale No additional confirmed finding.
#1450 feat(html): a workbook's page inserts, removes and moves sheets No additional confirmed finding.
#1451 fix: an editable workbook render leaves the document alone No additional confirmed finding.
#1452 refactor(html): shorter slide and link gestures, current docs No additional confirmed finding.
#1453 feat: more MIME names for doc, xls and ppt, found in any case No additional confirmed finding.
#1454 feat(jni): an exception class for a denied server socket No additional confirmed finding.
#1455 feat(html): a page answers the document's colours No additional confirmed finding.
#1456 feat: a file name for detection, and pdfs with data before their header No additional confirmed finding.
#1457 fix(html): the page follows the caret while typing No additional confirmed finding.
#1458 feat(html): a page states its document's language No additional confirmed finding.
#1459 feat(html): redo for pdf marks No additional confirmed finding.
#1460 feat: the edit session in Java and Swift No additional confirmed finding.
#1461 fix(html): pdf search marks sit on their words in WebKit Fixed selection-layer fitting for initially hidden pages.
#1462 fix(pdf): missing Cyrillic and overlapping text No additional confirmed finding.

andiwand and others added 3 commits December 4, 2026 08:46
A block without a marker cleared the one of the list item around it, and a
page that reconnected under its client id restarted its presence sequence,
which the others then dropped as stale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FW6WZaPR7xEYsPJzpDPAHc
@andiwand
andiwand merged commit a0a8948 into main Dec 4, 2026
37 checks passed
@andiwand
andiwand deleted the fix/recent-pr-review branch December 4, 2026 08:56
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