Skip to content

fix: harden summary editor mount and tiptap content normalization#4699

Open
ComputelessComputer wants to merge 1 commit intomainfrom
c-branch-17
Open

fix: harden summary editor mount and tiptap content normalization#4699
ComputelessComputer wants to merge 1 commit intomainfrom
c-branch-17

Conversation

@ComputelessComputer
Copy link
Collaborator

Fixes the two summary-editor failures behind #4696 and #4695.

This guards caret-position checks until the TipTap view is actually mounted, which prevents the coordsAtPos crash during mount/remount while AI summary generation swaps views. It also normalizes AI-generated markdown and stored TipTap JSON into schema-valid documents before loading them, which repairs invalid list and image structures that were failing ProseMirror schema checks.

Closes #4696
Closes #4695

- guard caret-position checks until the TipTap editor view is mounted
- normalize parsed markdown and loaded TipTap JSON into schema-valid documents
- validate shared TipTap content with ProseMirror check() and add regressions for list and image edge cases
@netlify
Copy link

netlify bot commented Mar 22, 2026

Deploy Preview for char-cli-web canceled.

Name Link
🔨 Latest commit 9ac29ec
🔍 Latest deploy log https://app.netlify.com/projects/char-cli-web/deploys/69c03ddd3bdb810008305e08

@netlify
Copy link

netlify bot commented Mar 22, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 9ac29ec
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69c03ddf2850a60008a60932
😎 Deploy Preview https://deploy-preview-4699--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Guard caret checks until editor view mounts Normalize AI markdown before TipTap insert

1 participant