docs/plans/4900-ai-streaming-history.md
tf.ai.undo() or accept flows slower as chunk count grows..ts changes, verify with install -> build -> typecheck sequence for touched package(s), then pnpm lint:fix.docs/solutions/.withAIBatch only merges batches and tags the last undo batch. It does not compact operations.withAIBatch(..., { split: isFirst }) in the AI kit integration.undoAI currently relies on the last undo batch being tagged as AI and calls native editor.undo().