Skip to content

Take y-tiptap 3.3.0 with Tiptap 3.33.1 and drop the local y-tiptap patch #701

Open

Description

@HMarzban

Why

#520 shipped @tiptap/y-tiptap 3.0.10 with a local patch (patches/@tiptap%[email protected], wired in the root package.json patchedDependencies). The plan was to drop the patch at the first release after 3.0.12 that carries ueberdosis/tiptap#8580.

Every 3.0.10 tab that edits a pad keeps adding position-migration entries, and nothing on the client deletes them. #738 clears them on the server. Correction, 2026-11-13: y-tiptap 3.3.0 also clears every __tiptap_position_migrations:* map when a writer opens the pad, and after any transaction that touches one (dist index.js:1419-1432 and 1500-1502). So this bump shrinks heads too, and the #738 scope shrinks with it.

Retargeted 2026-11-11: y-tiptap 3.3.0 with every Tiptap package at 3.33.1, per the update comment of 2026-11-11 12:45Z. Moved from v2.4.0 into v2.3.6 on the same day.

Benchmark

Field Value
Metric Heads with a live position-migration entry (count) and their bytes. Awareness frames for 20 remote edits with no caret move (count). The #520 measures on two clients, 60 and 500 links: keystroke, 1-block insert, Enter, 10-block paste. Remote cursor redraw time per peer count (ms). Production heads that fail the 3.33.1 content check (count, step 3b).
Before Heads with an entry, read-only, newest row of each document (update comment): 36 heads, 24,776,163 B on 2026-11-08; 51 heads, 27,410,895 B in the #738 read on 2026-11-11; 51 heads, 28,409,530 B at 12:15Z on 2026-11-11. Cursor redraw, local lab, Bun 1.4.4 (JSC), synthetic pads, median of 7 (Measured comment): 14.6 ms at 8 peers and 65.8 ms at 30 peers on the typed 12 MB pad (30,718 blocks). Awareness frame count: not measured yet: agent in the repo, before the bump. The #520 measures on 3.0.10 come from the #520 Measured comment of 2026-11-04. It ran headless Chromium 156.0.8078.4, Playwright 1.64.1 and patched 3.0.10, with 60 and 500 links. <a> lost on A: keystroke 0, 1-block insert 0, Enter 1 (the link in the split block), 10-block paste 0. Iframes lost or reloaded: 0 for all four. Invalid-head count: not measured yet: maintainer, before the deploy.
After not measured yet
Condition Heads: production, deployed SHA, collab database in London on PostgreSQL 18.6, aggregate SQL only. Each read states whether the #738 backfill has run. Awareness and #520 measures: local two-tab pad on make dev-local, named laptop and browser, both SHAs recorded. Cursor redraw: the same bench as the 2026-11-11 comment.
How to run Heads: the #750 head-size SQL (marker \x09transfers), at 1, 3 and 7 days after this deploy. Awareness: count frames on a local two-tab pad for 20 remote edits with no caret move, before and after the bump. #520 measures: the #520 script. Cursor redraw: the 2026-11-11 bench, on 3.3.0.
Pass rule Before the #738 backfill, heads with an entry do not grow for 3 days after this deploy. The 5-head bar at day 7 belongs to #738. The #520 measures are equal to or better than the #520 numbers. onContentError fires on invalid content, and the element stays in the next stored head. The step 3b count is 0 before the deploy. Stop rule: if the 3.33.1 bump breaks a check, take the fallback below, and say why here first.
Guard Links and iframes below a change stay connected, as in the 2026-11-04 #520 comment. collab-heading-sync.cy.js passes. The awareness frame count does not rise.
Owner Agent in the repo: the bump, the probes and the local measures. Maintainer: the (build): front deploy and the head reads.
Claim "New pads no longer gain position-migration maps: heads with an entry grew by 15 in 3 days, and by <g> in the 3 days after this deploy (production)." Before: 36 -> 51, 2026-11-08 to 2026-11-11. The after is read before the #738 backfill.

Upstream state

Read 2026-11-06:

Read 2026-11-11:

  • @tiptap/y-tiptap 3.3.0 was published on 2026-11-10 at 14:01Z, and it is latest.
  • Every @tiptap/* package in the root package.json has a 3.33.1 release. @tiptap/extension-collaboration 3.33.1 peers @tiptap/core 3.33.1, @tiptap/pm 3.33.1 and @tiptap/y-tiptap ^3.0.7.
  • The 3.3.0 dist keeps the fix: 0 hits for writePositionMigration, 5 for clearPositionMigrations and 6 for onInvalidContent.
  • 3.3.0 adds one change over 3.2.0 (Release new stable release ueberdosis/tiptap#8734). yCursorPlugin publishes a new lastSelection awareness field with each selection, and it stays after blur.
  • From 3.2.0, y-tiptap deletes shared content that does not fit the schema, unless onInvalidContent is passed. Collaboration 3.33.0 and later pass it when enableContentCheck is on, which we set at apps/webapp/src/components/TipTap/TipTap.tsx:305. So all @tiptap packages move to 3.33.1 in the same change, as AGENTS.md requires.
  • With content check on, invalid content freezes the editor: onContentError disables collaboration and calls setEditable(false) (TipTap.tsx:306-313). So one stored head with a node outside the 3.33.1 schema would freeze every editor on that pad. Step 3b counts those heads first.

What to do

  1. Agent in the repo. Set "@tiptap/y-tiptap": "^3.3.0" (package.json:177). Set every @tiptap/* catalog line and the three overrides (package.json:35-37) to 3.33.1. Delete the patch line (:197) and patches/@tiptap%[email protected]. Add no override. Rewrite the two Tiptap lines in AGENTS.md (the 3.32.2 catalog line, and "Take y-tiptap 3.3.0 with Tiptap 3.33.1 and drop the local y-tiptap patch #701 moves to 3.2.0") for 3.3.0 and 3.33.1, through the tech-writer skill. In the same commit, update apps/webapp/src/components/TipTap/CLAUDE.md:78 (it names 3.0.10), and add patches/ to the AGENTS.md cold-install rsync recipe. The bump commit also adds captureMessageOnce('onContentError', ...) in onContentError (apps/webapp/src/components/TipTap/TipTap.tsx:310). Without it, the 24 h GlitchTip stop rule cannot fire. Note for release-extensions: the extensions peer @tiptap/core and @tiptap/pm as catalog:, so the next extension release raises its Tiptap peer floor to 3.33.1.
  2. Agent in the repo. Re-run the lockfile probe for this target: one resolved @tiptap/y-tiptap entry, and bun install --frozen-lockfile passes on a cold copy.
  3. Agent in the repo. Invalid-content check: write a Yjs element with node name unknownNode into a local scratch pad. Then open it as a 3.33.1 writer. Pass: onContentError fires, the editor freezes, and the element is still in the next stored head.
    3b. Production invalid-head count (agent in the repo writes, maintainer runs, read-only). Decode every head with the 3.33.1 schema in a one-off script. Post only the count of heads that fail the content check. A count above 0 blocks the deploy until those heads are fixed.
  4. Agent in the repo. Awareness check, for lastSelection: hooks/guardProviderAwareness.ts skips an equal cursor write only. On a local two-tab pad, count awareness frames for 20 remote edits with no caret move. Record the count before and after the bump. If lastSelection re-sends an unchanged value after each remote edit, extend the guard to skip it in the same change.
  5. Agent in the repo. Re-run the Take y-tiptap 3.0.10 so a remote change stops rebuilding the paragraphs below it #520 measures on two clients, 60 and 500 links: keystroke, 1-block insert, Enter, 10-block paste. Links and iframes below the change must stay connected, as in the 2026-11-04 Take y-tiptap 3.0.10 so a remote change stops rebuilding the paragraphs below it #520 comment.
  6. Agent in the repo. Re-test the tiptap#8584 case.
  7. Agent in the repo. Redo caret shift (Take y-tiptap 3.0.10 so a remote change stops rebuilding the paragraphs below it #520 decision 3, ruled yes on 2026-11-06): after a y-redo, the caret lands past the redone text by its size (+14, +14, +12). Run the same script on 3.0.9 and on the new version. If the shift also shows there, file it upstream with the script.
  8. Agent in the repo. Re-run the remote cursor bench of 2026-11-11 on 3.3.0. Done 2026-11-16: it still walks every block. An upstream post is not part of this issue.
  9. Maintainer. Ship it as its own (build): front deploy. Order: Cap store jobs at 1 per worker replica and raise the worker limit to 2 GiB #737, then this issue, then Clear y-tiptap position-migration maps on the server, so big pads load faster #738 and its backfill. Amended 2026-11-11, milestone review: the 12:45Z comment put Clear y-tiptap position-migration maps on the server, so big pads load faster #738 first. Clear y-tiptap position-migration maps on the server, so big pads load faster #738 can pass only when clients stop writing maps, so this issue ships before or with Clear y-tiptap position-migration maps on the server, so big pads load faster #738.
  10. Maintainer. Read the heads with an entry at 1, 3 and 7 days after this deploy. The day 1 and day 3 reads come before the Clear y-tiptap position-migration maps on the server, so big pads load faster #738 backfill. If the backfill has run by day 7, that read is context for Clear y-tiptap position-migration maps on the server, so big pads load faster #738.

Fallback: if the 3.33.1 bump breaks a check, take y-tiptap 3.2.0 alone, with the ySyncOptions.onInvalidContent shim. Say why here before taking it.

Run every content check on a local scratch pad that the builder creates and deletes after. Never type into /demo.

Content-safety checks

Run checks 1-5 and 8 locally on a scratch pad that the builder creates and deletes after. Never type into /demo.

  1. Reload. Type, wait for "synced", reload. The text is there.
  2. Two browsers. Edit one pad in two browsers. Both end with the same text.
  3. Offline, then online. Type offline, go online. The server receives the text.
  4. Fast tab close. Close the tab 50 ms after typing, then reopen. The text is there.
  5. Replica restart while typing. No text is lost or doubled.
  6. Production, 7 days after the deploy. Failed store jobs, document_persist_fallback_total and the store dead-letter queue stay at 0.
  7. Production, first 24 h. GlitchTip shows 0 onContentError events.
  8. Mixed versions. A 3.0.10 tab and a 3.33.1 tab co-edit one scratch pad for 5 minutes. Both end with equal text. Every deploy has both versions on one pad for a while.

Rollback

Revert the bump commit and push a (build): front tip. No stored data changes. Stop rule for the first 24 h: if GlitchTip shows any onContentError event, revert.

Done when

  • @tiptap/y-tiptap is on 3.3.0, every @tiptap/* package is on 3.33.1, and the local patch is gone.
  • Met on the held bump, in the Measured comment and the browser-checks comment of 2026-11-16: the lockfile probe, the invalid-content check, the awareness count, the Take y-tiptap 3.0.10 so a remote change stops rebuilding the paragraphs below it #520 numbers, collab-heading-sync.cy.js, paste-title.cy.ts, content-safety checks 1-5 and 8, tiptap#8584, the redo caret and the cursor bench.
  • The step 3b invalid-head count is 0, posted before the deploy.
  • The bump ships as its own (build): front deploy.
  • Content-safety check 7 (GlitchTip, first 24 h) and check 6 (store failures, 7 days) pass.
  • The head reads at 1, 3 and 7 days are in a Measured comment.

Follow-up of #520 (closed 2026-11-06).

Activity

  1. added this to the v2.4.0 milestone on Nov 6, 2026
  2. added
    Editor
    dependencies
    on Nov 6, 2026
  3. HMarzban commented on Nov 11, 2026

    @HMarzban
    CollaboratorAuthor

    Measured, 2026-11-11 (local lab): remote cursor cost grows with block count

    createDecorations resolves each peer's anchor and head by walking the top-level blocks from the start, on every remote change and awareness change. Time per redraw, median of 7, Bun 1.4.4 (JSC), synthetic pads:

    Pad Blocks 1 peer 8 peers 30 peers
    typed 1 MB 3,017 0.0 ms 0.3 ms 1.0 ms
    typed 4 MB 10,213 0.4 ms 3.6 ms 13.5 ms
    map-heavy 12 MB 10,213 0.9 ms 5.1 ms 14.1 ms
    typed 12 MB 30,718 0.1 ms 14.6 ms 65.8 ms
    • The migration index adds little: 0.6 to 1.5 ms per redraw at 10,213 blocks. Block count drives the cost.
    • The pads are synthetic, so no production freeze is shown yet.

    Next step inside this issue: re-run the same bench on y-tiptap 3.2.0. If it still walks every block, send the fix upstream (compute top-level offsets once per redraw, or coalesce redraws to one per frame) rather than growing the local patch.

  4. HMarzban commented on Nov 11, 2026

    @HMarzban
    CollaboratorAuthor

    Update, 2026-11-11: target y-tiptap 3.3.0 with Tiptap 3.33.1, and move this issue into v2.3.6

    The maps still grow

    Heads that hold a live position-migration entry, read-only, newest row of each document:

    Read Heads with an entry Their bytes All heads
    2026-11-08 36 24,776,163 B 37,802,888 B
    2026-11-11 (the #738 read) 51 27,410,895 B 40,411,375 B
    2026-11-11 12:15Z 51 28,409,530 B 41,410,010 B

    Every 3.0.10 tab that edits a pad keeps adding entries, and nothing on the client deletes them. #738 clears them on the server. Only this issue stops new writes.

    Target: y-tiptap 3.3.0 with every Tiptap package at 3.33.1

    Registry, read 2026-11-11:

    • @tiptap/y-tiptap 3.3.0 was published on 2026-11-10 at 14:01Z, and it is latest. 3.2.0 was published on 2026-11-05.
    • Every @tiptap/* package in the root package.json has a 3.33.1 release, published 2026-11-10 at 13:58Z. @tiptap/extension-collaboration 3.33.1 peers @tiptap/core 3.33.1, @tiptap/pm 3.33.1 and @tiptap/y-tiptap ^3.0.7.
    • The 3.3.0 dist keeps the fix: 0 hits for writePositionMigration, 5 for clearPositionMigrations and 6 for onInvalidContent.
    • 3.3.0 adds one change over 3.2.0 (Release new stable release ueberdosis/tiptap#8734). yCursorPlugin publishes a new lastSelection awareness field with each selection, and it stays after blur.

    Why 3.33.1 in the same change, not y-tiptap alone:

    • From 3.2.0, y-tiptap deletes shared content that does not fit the schema, unless onInvalidContent is passed. Tiptap 3.32.2's collaboration extension never passes it.
    • Collaboration 3.33.0 and later pass onInvalidContent when enableContentCheck is on (3.33.1 dist, index.js:174). We set it at apps/webapp/src/components/TipTap/TipTap.tsx:305.
    • So with 3.33.1, invalid content stays in the document, editing pauses, and our onContentError freeze runs (:306-313). The PG-1 shim through ySyncOptions is no longer needed.
    • It also meets AGENTS.md:422: keep all @tiptap versions aligned, and bump them in one change. The catalog and the overrides (package.json:35-37) move from 3.32.2 to 3.33.1 together.

    Changes to the plan

    1. Set "@tiptap/y-tiptap": "^3.3.0" (package.json:177). Set every @tiptap/* catalog line and the three overrides to 3.33.1. Delete the patch line (:197) and patches/@tiptap%[email protected]. Add no override.
    2. Re-run the lockfile probe for this target: one resolved @tiptap/y-tiptap entry, and bun install --frozen-lockfile passes on a cold copy.
    3. Invalid-content check: write a Yjs element with node name unknownNode into a local pad, then open it as a 3.33.1 writer. Pass: onContentError fires, the editor freezes, and the element is still in the next stored head.
    4. Awareness check, for lastSelection: hooks/guardProviderAwareness.ts skips an equal cursor write only. On a local two-tab pad, count awareness frames for 20 remote edits with no caret move. Record the count before and after the bump. If lastSelection re-sends an unchanged value after each remote edit, extend the guard to skip it in the same change.
    5. Keep steps 2-4 of this issue (Take y-tiptap 3.0.10 so a remote change stops rebuilding the paragraphs below it #520 measures, tiptap#8584, the redo caret).
    6. Order: Cap store jobs at 1 per worker replica and raise the worker limit to 2 GiB #737, then Clear y-tiptap position-migration maps on the server, so big pads load faster #738, then this issue, as its own (build): front deploy.

    If the 3.33.1 bump breaks a check, the fallback is y-tiptap 3.2.0 alone, with the ySyncOptions.onInvalidContent shim. Say why here before taking it.

    Ruling needed

    Move this issue from v2.4.0 into v2.3.6? Recommended: yes, right after #738. The maps grew by 15 heads in 3 days and by about 1 MB within hours today. #738 removes stored entries, but every 3.0.10 tab writes new ones until this ships.

  5. changed the title [-]Take y-tiptap 3.2.0 and drop the local y-tiptap patch[/-] [+]Take y-tiptap 3.3.0 with Tiptap 3.33.1 and drop the local y-tiptap patch[/+] on Nov 11, 2026
  6. HMarzban commented on Nov 11, 2026

    @HMarzban
    CollaboratorAuthor

    Moved into v2.3.6, 2026-11-11

    This answers the "Ruling needed" in the update comment of 2026-11-11 12:45Z. The maintainer approved the move on 2026-11-11, in the v2.3.6 milestone review.

  7. modified the milestones: v2.4.0, v2.3.6, v2.3.7 on Nov 11, 2026
  8. HMarzban commented on Nov 13, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-11-13: moved to v2.3.7. It ships as its own (build): front early in v2.3.7, after #737.

    Reasons: the 3-day release hold blocks the resolve until about 2026-11-13 14:04Z. The step 3b invalid-head count does not exist yet. The day 1, 3 and 7 head reads all fall after the cut. A body line about 3.3.0 was wrong, and it is corrected above.

  9. HMarzban commented on Nov 16, 2026

    @HMarzban
    CollaboratorAuthor

    Carried here from #771 (maintainer ruling, 2026-11-16): before this upgrade deploys, run extensions/extension-hyperlink/src/interactions/autolinkCollab.test.ts and the bench collab case (scripts/bench/behaviour.ts) on the new y-tiptap. A rename of the y-sync meta key would break the #771 remote-skip, and these two checks catch it.

  10. HMarzban commented on Nov 16, 2026

    @HMarzban
    CollaboratorAuthor

    Measured, 2026-11-16

    The bump is built and measured locally, and held, not committed: the production step 3b invalid-head count and the browser content-safety checks (make dev-local) must pass first, because y-tiptap 3.2.0 and later delete content that does not fit the schema unless the content check holds. The patch is kept locally. Laptop: Bun 1.4.4, darwin arm64. The probes ran headless in jsdom 26.1.0, not in a browser. Before: sha 288d4d260, y-tiptap 3.0.10 patched, Tiptap 3.32.2. After: the same tree with the bump.

    Versions and lockfile probe

    • All 41 @tiptap/* lock entries are 3.33.1.
    • @tiptap/y-tiptap has one entry, 3.3.0. Its integrity sha512-TLblfhvX... matches the registry.
    • The patch file and its patchedDependencies line are gone. The lock diff touches only @tiptap lines (79 insertions, 80 deletions).
    • Tiptap 3.34.0 (2026-11-13) is now past the 3-day hold. So the install used --minimum-release-age=345600 to stay on 3.33.1, as this issue says.
    • Cold install per AGENTS.md: bun install --frozen-lockfile --ignore-scripts --cache-dir installed 1,707 packages in 50.48 s, exit 0.

    Tests, before -> after

    Suite Before After
    webapp jest 540/540 540/540
    hocuspocus bun test 1,251 pass, 7 skip 1,251 pass, 7 skip
    extension-hyperlink unit 530/530 530/530
    autolinkCollab.test.ts (#771) 16/16 16/16
    hyperlink bench, collab case (#771) 1/1 1/1
    mermaid / indent / floating-popover unit 14 / 22 / 17 14 / 22 / 17

    bun run typecheck passes after the bump. 3.3.0 still names its key y-sync, so the #771 remote-skip keeps working.

    Headless probes (two editors on relayed Y.Docs)

    Check 3.0.9 3.0.10 patched (before) 3.3.0 + 3.33.1 (after)
    unknownNode: onContentError calls 0 0 1
    Editor after open shows text, editable empty, not editable shows text, frozen
    unknownNode in the next head no, deleted yes yes
    tiptap#8584 (paragraph and heading) pass pass pass
    Redo caret shift (14, 14, 12 chars) -14, -14, -12 -14, -14, -12 0, 0, 0
    Awareness frames from A, 20 remote edits, no caret move 0 0 0
    <a> lost on A, 60 links: keystroke, insert, Enter, paste 0, 55, 54, 55 0, 0, 0, 0 0, 0, 0, 0
    <a> lost on A, 500 links 0, 495, 494, 495 0, 0, 0, 0 0, 0, 0, 0
    Iframes lost on A 0 0 0

    Mixed versions, headless (check 8 stand-in)

    • A 3.0.10 editor and a 3.3.0 editor made 2,000 random edits each run, on seeds 1, 2 and 3, with a batched relay.
    • Yjs and the editor JSON ended equal in all 3 runs, with 0 errors. Position-migration entries at the end: 0.
    • Control, 3.0.10 with 3.0.10, seed 1: 752 entries. A run that drops one update ends unequal, so the check can see a split.

    Remote cursor bench (step 8)

    This is the 2026-11-11 bench-cpu.ts (sha256 115f93b3...). The fixtures were rebuilt today from tracked markdown, so these pads differ from the ones measured on 11-11. Each cell is a median of 7. Before is 1 clean run. After is 3 runs.

    Pad Blocks 30 peers, before 30 peers, after (range of 3)
    typed_1m 3,082 1.1 ms 0.8-1.2 ms
    typed_4m 10,360 4.4 ms 4.1-4.3 ms
    maps_12m 10,360 6.3 ms 3.8-4.6 ms
    typed_12m 30,186 43.4 ms 43.1-56.8 ms
    • 3.3.0 still walks every top-level block (getParentOffset, dist index.js:136-151). Block count still drives the cost.
    • maps_12m at 30 peers: 6.3 ms (1 run) before, 4.6 ms (median of 3) after. The two sides have different n, so no percent; a hint only.
    • Next step: send the fix upstream. Compute top-level offsets once per redraw.

    Left

    • Step 3b invalid-head count on production. Owner: maintainer. The deploy waits for this count.
    • Content-safety checks 1-5, and check 8 in two real browsers, on make dev-local. Owner: an agent with a dev stack.
    • The Take y-tiptap 3.0.10 so a remote change stops rebuilding the paragraphs below it #520 browser measures, the two-tab awareness count and the redo caret in a browser. Owner: an agent with a dev stack.
    • collab-heading-sync.cy.js and paste-title.cy.ts on make dev-local. Owner: an agent with a dev stack.
    • The upstream cursor-walk issue, with the bench. Owner: an agent drafts it, and the maintainer posts it.
    • The commit, then its own (build): front tip. Owner: maintainer.
    • GlitchTip onContentError for the first 24 h, and store failures for 7 days. Owner: maintainer.
    • Head reads at 1, 3 and 7 days. Owner: maintainer.
    • The next extension release raises the Tiptap peer floor to 3.33.1. Owner: release-extensions.
    • apps/webapp/src/components/TipTap/CLAUDE.md:78 still names 3.0.10. Owner: agent, as a doc follow-up.
    • Doc follow-up (agent): add patches/ to the AGENTS.md cold-install rsync recipe. apps/webapp/src/components/TipTap/CLAUDE.md:78 names y-tiptap 3.0.10; update it with the bump.
    • Maintainer: on 3.3.0 the guardProviderAwareness equal-cursor skip never runs (y-tiptap writes through setLocalState). Frame counts did not rise, so no change is needed. Keep or remove that skip?
  11. HMarzban commented on Nov 16, 2026

    @HMarzban
    CollaboratorAuthor

    Measured, 2026-11-16: browser checks on the held bump

    Browser checks on local make dev-local processes. Laptop: darwin 27.0.0 arm64, Bun 1.4.4. Browsers: Playwright 1.64.1, Chromium 156.0.8078.4 (headless) and Cypress 16.2.1 with Chrome 157 (headless). New: dcd69569b plus the held bump (y-tiptap 3.3.0, Tiptap 3.33.1). Old: origin/main c03126ed6 (y-tiptap 3.0.10 patched, Tiptap 3.32.2). Both webapps used one REST and one WS server. Scratch pads were deleted after.

    Content-safety checks

    Check Result
    1 Reload Pass. Same tab, a fresh context and the database head each hold the text once.
    2 Two browsers Pass, 3 of 3. Text and JSON equal, character counts exact, database equal.
    3 Offline, then online Pass. An observer saw nothing while offline. The text arrived 204 ms after online, once.
    4 Fast tab close (50 ms) Pass, 10 of 10. The server had the text before the reopen each time.
    5 WS restart while typing SIGTERM: pass. SIGKILL after the first store: pass. SIGKILL before the first store: no text lost or doubled in the editors, but no database row (see below).
    8 Mixed versions, 5 min Pass. 5 of 5 checkpoints equal. Final text, JSON and database head equal. 0 errors.

    Checks 6 and 7 are production reads and were not run.

    #520 measures, awareness, redo (Chromium, two clients)

    Measure Old New
    Links lost on A, 60 and 500 links: keystroke, insert, Enter in a link, Enter at a block end, 10-block paste 0 each 0 each
    Iframes lost or reloaded 0 0
    Awareness frames from A, 20 remote edits, no caret move 0 0
    Redo caret offset, texts of 14, 14 and 12 chars 0, 0, 0 0, 0, 0
    • Counter checks worked on both versions. A forced iframe reload counted 1 load. A deleted, then re-inserted link block counted 1 lost link. 20 own caret moves sent 20 awareness frames.
    • Enter inside a link lost 0 links here, where the 2026-11-04 run lost 1. The caret position in that run is not recorded.
    • The +14 redo shift from Take y-tiptap 3.0.10 so a remote change stops rebuilding the paragraphs below it #520 did not show in this browser run on either version.
    • collab-heading-sync.cy.js: 2 of 2 pass. paste-title.cy.ts: 3 of 3 pass.

    Found on both versions (not from the bump)

    • A WS SIGKILL within a new pad's first store window left no stored row: 4 of 4 runs new, 1 of 1 old. After the restart, the live doc showed isDraft: true and needsInitialization: true again, so store() skipped the saves. A blur and refocus cleared it, and the save landed. To be filed as a separate issue.
    • Two users who press Enter and type at the same document end at once ended with one extra character in 1 of 15 runs on each version. Both clients converged.

    Left

    • The step 3b invalid-head count on production (maintainer). It is the only check left before the bump can ship. The patch stays held until then.
  12. HMarzban commented on Nov 16, 2026

    @HMarzban
    CollaboratorAuthor

    The two faults found in the browser checks, which also happen on 3.0.10, are now filed: #799 (a collaboration server restart in a new pad's first save window stops saves until the editor refocuses) and #800 (one extra character when two people press Enter and type at the document end). Neither blocks this bump.

  13. HMarzban commented on Nov 16, 2026

    @HMarzban
    CollaboratorAuthor

    Review, 2026-11-16 (maintainer approved).

    • Step 1: the bump commit now adds captureMessageOnce('onContentError', ...) in onContentError (apps/webapp/src/components/TipTap/TipTap.tsx:310). Today it only calls console.error, so the 24 h GlitchTip stop rule could never fire.
    • Step 1: the two doc fixes join the bump commit: apps/webapp/src/components/TipTap/CLAUDE.md:78 and patches/ in the AGENTS.md rsync recipe.
    • Why: deleted the "pass rule is rewritten" sentence. The current pass rule stays.
    • Step 8: marked done. The upstream cursor-walk post is not part of this issue.
    • Done when: the nine boxes met in the two 2026-11-16 Measured comments are now one ticked line. What is left: the step 3b count, the deploy, checks 6 and 7, and the head reads.
  14. HMarzban commented on Nov 17, 2026

    @HMarzban
    CollaboratorAuthor

    Content-safety checklist. The shared checklist lives in release-product §Content-safety checklist. Run it for this issue, plus the extra checks in this body. Record each item as pass or fail in the Measured comment, as §Measured comment format says. The list in this body stays as it is (#762, ruling A).

  15. HMarzban commented on Nov 24, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-11-24

    Keep #701 in v2.3.7 only if Step 3b reads 0 invalid heads and the rebuilt bump deploys by 2026-11-25 (Day 7 read on 2026-12-02). Otherwise move #701 to v2.3.8.

    Next step: run the local Step 3b decode script read-only against production today.

  16. HMarzban commented on Nov 24, 2026

    @HMarzban
    CollaboratorAuthor

    Update, 2026-11-24: local Step 3b read-only script ready

    Prepared and verified the local read-only decode helper Notes/release-2.3.7/bench/701-step3b-check.ts:

    • Reads JSON lines ({ id, state_base64 }), decodes Y.Doc via yjs, skips empty docs, and checks whether all item structs sit in the legacy >= 1e9 synthetic ID band or mix real client IDs (0 invalid heads required to keep #701 in v2.3.7).
    • Verified locally with --self-test ({ total: 4, empty: 1, valid: 1, invalid: 2 }), --print-sql, and --stdin — all exit 0.

    Next step: Maintainer runs read-only psql Step 3b against production into 701-step3b-check.ts --stdin and decides before the 2026-11-25 cutoff whether #701 stays in v2.3.7 or moves to v2.3.8.

  17. modified the milestones: v2.3.7, v2.3.8 on Nov 24, 2026
  18. HMarzban commented on Nov 24, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-11-24: moved to v2.3.8.

    The 2026-11-24 gate cannot pass before the v2.3.7 cut:

    #738 (v2.3.8) already depends on this issue.

  19. HMarzban commented on Nov 24, 2026

    @HMarzban
    CollaboratorAuthor

    Rebuilt on main (v2.3.8, ready for Step 3b)

    Rebuilt #701 cleanly against current main (uncommitted pending approval; refreshed patch also saved to Notes/release-2.3.7/held/701-ytiptap.patch):

    • Upgraded all @tiptap/* packages to 3.33.1 and @tiptap/y-tiptap to ^3.3.0 (bun install --minimum-release-age=1036800, strictly @tiptap/*-only bun.lock diff), and dropped patches/@tiptap%[email protected] + its package.json patchedDependencies entry.
    • Added captureMessageOnce('onContentError', ...) in apps/webapp/src/components/TipTap/TipTap.tsx and synced AGENTS.md + apps/webapp/src/components/TipTap/CLAUDE.md.
    • Updated Notes/release-2.3.7/bench/701-step3b-check.ts to validate with yXmlFragmentToProsemirror(schema, fragment) + pmDoc.check() (needed because @tiptap/y-tiptap 3.3.0's yXmlFragmentToProseMirrorRootNode silently filters unknown nodes); --self-test passes ({ total: 4, empty: 1, valid: 1, invalid: 2 }).
    • Verified locally: cold temp-dir install (1,733 packages installed), extension-hyperlink (530 unit + 16 autolinkCollab pass), webapp Jest (82 suites / 649 tests pass), hocuspocus.server (1,400 pass), typecheck, lint, lint:styles, format, and check:agent-docs.

    Next step: Run the production Step 3b read-only query into bun Notes/release-2.3.7/bench/701-step3b-check.ts --stdin (0 invalid heads required) before committing/deploying in v2.3.8.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Editordependenciestiptap

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions