(handler: (patch: JsonPatch, seq: number) => void)
| 344 | } |
| 345 | |
| 346 | // Cache the result for incremental updates |
| 347 | this.cachedSnapshot = conversation; |
| 348 | this.cachedUpToIndex = this.messages.length - 1; |
| 349 | |
| 350 | return { ...conversation, entries: [...conversation.entries], seq: this.patchSeq }; |
| 351 | } |
| 352 |