Skip to content

[codex] Fix discussion and suggestion regressions#4945

Open
felixfeng33 wants to merge 18 commits intomainfrom
codex/simplify-discussion-ui
Open

[codex] Fix discussion and suggestion regressions#4945
felixfeng33 wants to merge 18 commits intomainfrom
codex/simplify-discussion-ui

Conversation

@felixfeng33
Copy link
Copy Markdown
Collaborator

@felixfeng33 felixfeng33 commented Apr 6, 2026

Summary

This PR simplifies discussion UI plumbing and fixes a batch of suggestion regressions across block and inline editing flows.

What changed

  • simplified discussion ownership and click targets by rebuilding the shared annotation index once per editor version instead of relying on mutable path maps inside wrapper components
  • fixed stale block discussion updates after accept/reject and kept block suggestion wrappers from breaking column, media, and code-drawing layouts
  • restored the hidden Slate children mount points for static/media-style nodes so block selection and discussion affordances still have a place to attach
  • moved trailing-block normalization and related normalize-time inserts outside suggestion tracking so table editing no longer produces fake Add: Paragraph suggestions
  • fixed inline remove flows for inline voids, links, and line breaks:
    • inline-void backspace marks only the inline node, keeps the cursor on the left edge, and reuses the same remove suggestion during continued deletes
    • link deletion stays character-scoped, reject clears stale inline metadata, and accept removes empty links through the real link normalizer path
    • block-start backspace creates a line-break remove suggestion so accepting merges paragraphs instead of deleting the previous block
  • taught block discussion summaries to include inline element text for mentions, dates, equations, and links
  • moved link-specific regressions into real app integration coverage under apps/www/src/__tests__/package-integration and documented the new suggestion edge cases in docs/solutions/

Validation

  • pnpm check

@codesandbox
Copy link
Copy Markdown

codesandbox bot commented Apr 6, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plate Ready Ready Preview, Comment Apr 15, 2026 10:25am

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 6, 2026

🦋 Changeset detected

Latest commit: 1bba8be

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@platejs/link Patch
@platejs/suggestion Patch
@platejs/utils Patch
@platejs/ai Patch
platejs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Keep inline-void deletion atomic, reuse suggestion ids across inline
boundaries, move link coverage to real app integration tests, and patch
the deleteSuggestion test harness so check stays green.
Keep expanded selection delete and replace flows progressing across
mention-shaped inline voids, add regressions for delete and insertText,
and carry the generated next-env route typing update already present in
the worktree.
Checkpoint the current no-package-use-client experiments across app registry
and React surface imports before the next round of build debugging.
@felixfeng33 felixfeng33 marked this pull request as ready for review April 13, 2026 10:34
@felixfeng33 felixfeng33 requested a review from a team April 13, 2026 10:34
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. patch Bugfix & documentation PR plugin:comment plugin:suggestion regression labels Apr 13, 2026
Comment thread apps/www/src/registry/examples/playground-demo.tsx Outdated
Comment thread package.json
"p:tsdown": "cd ${INIT_CWD:-.} && pnpm exec tsdown --config=${PROJECT_CWD:-.}/tooling/config/tsdown.config.ts --log-level warn",
"p:typecheck": "tsc -p ./tsconfig.json",
"prepare": "bun x skiller@latest apply",
"prepare": "if [ -f .agents/skiller.toml ] || [ -f .claude/skiller.toml ]; then bun x skiller@latest apply; else echo '[prepare] skipping skiller apply: no skiller config found'; fi",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can revert

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Bugfix & documentation PR plugin:comment plugin:suggestion regression size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants