plugins/_chat_branching/README.md
Create a new chat from any existing point in a conversation.
Adds a Branch button to every chat message. Clicking it clones the current chat up to that message, creating a new conversation you can continue independently.
ID-based log ↔ history linking
Every LogItem and history.Message share a UUID generated at creation time. The branch button is only shown on messages that carry this ID.
Clone & trim
log_no, discards the rest.history.messages so log and history stay consistent.Persist & refresh
| Path | Purpose |
|---|---|
api/branch_chat.py | API endpoint — clone, trim, persist |
extensions/webui/set_messages_after_loop/inject-branch-buttons.js | Injects the Branch button into each message DOM element |
_chat_branchingChat Branching