mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Remove the message branching/tree system in favor of a simpler editing model: - Default: edit a message and only regenerate the current round's AI response - Optional: overwrite all subsequent messages when editing Key changes: - Backend: add updateMessageContent, deleteAndRelinkMessage, insertMessageAfter, deleteMessagesFrom, forkConversation; remove createMessageBranch, switchMessageBranch - Platform layer: add IPC/HTTP handlers for new methods across Electron and CLI - Frontend store: refactor editMessageAndRegenerate with two modes - UI: replace branch navigation with "overwrite subsequent" checkbox, auto-resizing edit textarea - Fix insertMessageAfter missing debug_context from pendingDebugContextMap - Update tests to cover new editing methods Co-authored-by: Cursor <cursoragent@cursor.com>