README
Agent Runtimes / chat/document/EphemeralDocument
chat/document/EphemeralDocument
EphemeralDocument — an in-memory Lexical rich-text document rendered next to the chat.
This is the document analogue of EphemeralNotebook. The Lexical
editor state lives purely in memory and is mirrored into the agent-runtime
Zustand store (ephemeralDocumentModels) so the document survives navigating
away from and back to the same runtime page. While mounted, its lexical
frontend tools are reported upward via onToolsReady so the agent can drive
the document blocks (insert / update / delete / read).
IMPORTANT: this module statically imports @datalayer/jupyter-lexical, which
initialises Lumino-backed nodes on load. It is therefore lazy-loaded by
ChatBase (via React.lazy) so notebook-only chats never pull in lexical.
Interfaces
Functions
References
default
Renames and re-exports EphemeralDocument