mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
- insertMessageAfter: update active_message_id when appending to tail so the new reply is on the active path after reload - editAndOverwriteAll: add hasConfig + abort checks before deleteMessagesFrom to prevent data loss when LLM is unconfigured or a concurrent request starts - editCurrentRoundOnly: defer all DB mutations until after stream completes; on abort/error only in-memory state is restored - sync in-memory parentId after relinking so follow-up edits send the correct historyLeafMessageId Co-authored-by: Cursor <cursoragent@cursor.com>