Skip to content

[lexical-website] Documentation: Tuning HistoryExtension for long sessions#8546

Merged
etrepum merged 1 commit into
facebook:mainfrom
etrepum:claude/history-tuning-docs
May 27, 2026
Merged

[lexical-website] Documentation: Tuning HistoryExtension for long sessions#8546
etrepum merged 1 commit into
facebook:mainfrom
etrepum:claude/history-tuning-docs

Conversation

@etrepum

@etrepum etrepum commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Description:

Adds a "Tuning HistoryExtension for memory and long sessions" section to docs/concepts/history.md, documenting:

  • maxDepth — why the default unbounded undo stack is fine for short-lived editors and how to cap it for long-lived ones (chat threads, long documents).
  • delay — how to coalesce more aggressively to reduce history event rate.
  • When NOT to cap history.

References ProseMirror's history plugin defaults (depth: 100,
newGroupDelay: 500ms) as a sensible starting point for both.

…sions

Adds a "Tuning HistoryExtension for memory and long sessions" section
to docs/concepts/history.md, documenting:

- `maxDepth` — why the default unbounded undo stack is fine for
  short-lived editors and how to cap it for long-lived ones
  (chat threads, long documents).
- `delay` — how to coalesce more aggressively to reduce history
  event rate.
- When NOT to cap history.

References ProseMirror's history plugin defaults (depth: 100,
newGroupDelay: 500ms) as a sensible starting point for both.
@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment May 22, 2026 8:25pm
lexical-playground Ready Ready Preview, Comment May 22, 2026 8:25pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 22, 2026
@etrepum etrepum marked this pull request as ready for review May 22, 2026 21:38
@etrepum etrepum enabled auto-merge May 27, 2026 14:37
@etrepum etrepum added this pull request to the merge queue May 27, 2026
Merged via the queue into facebook:main with commit 126ece9 May 27, 2026
9 checks passed
@etrepum etrepum mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

3 participants