Linora

0008. Undo/redo: per-client stacks of inverse ops

Status: Accepted (2026-11-27)

Context

src/history.ts stores closures that rewrite primitive buffers. In multiplayer, undo must revert only my own changes and must not clobber others’ later edits to other properties.

Decision

Alternatives

Consequences

Undo needs no snapshots of primitive buffers; memory is proportional to what was edited. A bulk generate of 5M nodes stores its inverse as one sorted id list.