#10697·outline

Auto flatten large documents

Author: tommoorCreated Nov 23, 2025Updated Sep 17, 2026
Labelsenhancementcollaborative editingA1

Currently, when a document state gets above one and a half megabytes, then edits are rejected and the document becomes impossible to edit. This is a rare but very annoying behavior of the system. At certain thresholds, we should auto-compact the document by throwing away edit history stored in state, this will allow the visible size of the document to grow much larger.

The caveat here is that if this is not done correctly, it will cause a merge of the old and new state to happen – having the opposite effect.