docs/plans/2026-04-26-slate-v2-human-editing-stress-sweep.md
Done for this sweep slice.
Use the real debug browser to stress test Slate v2 examples like a human editor and surface browser-visible editing bugs.
/Users/zbeyens/git/slate-v2.http://localhost:3100.dev-browser --connect http://127.0.0.1:9222.active goal state before handoff.dev-browser./Users/zbeyens/git/slate-v2/site/examples/ts. First pass will cover:
plaintext, richtext, hovering-toolbar, markdown-shortcuts,
markdown-preview, check-lists, tables, inlines, mentions,
images, embeds, editable-voids, paste-html, code-highlighting,
forced-layout, styling, android-tests, scroll-into-view,
search-highlighting, highlighted-text, review-comments,
persistent-annotation-anchors, large-document-runtime, and
huge-document./Users/zbeyens/.dev-browser/tmp/slate-v2-human-editing-stress-results.json.
Most initial failures were harness noise from the paste probe, but the route
sweep surfaced real candidates.Meta+V: multiline
plain-text paste after select-all replacement lost the first line in
plaintext and richtext; legacy preserved both lines.forced-layout threw a page error on the same real
paste flow before the fix.scroll-into-view route crash: the file existed and
getAllExamples() exposed it, but the dynamic import map and constants did
not include the route.Editor.replace text insertion path in
/Users/zbeyens/git/slate-v2/packages/slate/src/transforms-text/insert-text.ts./Users/zbeyens/git/slate-v2/packages/slate-dom/test/clipboard-boundary.ts.scroll-into-view route by adding it to
/Users/zbeyens/git/slate-v2/site/constants/examples.ts and
/Users/zbeyens/git/slate-v2/site/pages/examples/[example].tsx.mentions
logs invalid HTML nesting (<div> inside <p>) from the inline mention
renderer. The actual mention insertion flow still worked in the targeted
browser probe.bun test ./packages/slate-dom/test/clipboard-boundary.ts --bail 1bun test ./packages/slate/test/primitive-method-runtime-contract.ts --bail 1dev-browser --connect http://127.0.0.1:9222 proof for plaintext,
richtext, forced-layout, and scroll-into-viewbunx turbo build --filter=./packages/slate --filter=./packages/slate-dom --forcebunx turbo typecheck --filter=./packages/slate --filter=./packages/slate-dom --forcebun typecheck:sitebun run lint:fixbun run lintRequired if published package behavior changes.