[GH-ISSUE #1522] Branch groups: delete dialog counts the root as a branch, and existing ungrouped roots are not migrated #768

Closed
opened 2026-10-20 17:33:09 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1522

Two follow-ups from #1509 (root chat now enrolled into its branch group, #1519).

  1. Delete-all wording (decided behavior). Per the #1519 review: a branch group's "delete all" intentionally removes the whole group including the original chat, which makes branched groups consistent with ST-imported groups (whose root is already a group member and already deleted by delete_chat_group). The remaining issue is labels:

    • src/app/shell/ChatSidebar.tsx delete dialog (around lines 1216 and 1243): "This conversation has {n} branches" / "Delete All {n} Branches" now counts the root as a branch and implies the original survives.
    • src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx "Delete All Branches" footer button: same implication.
      Reword to match the behavior (e.g. "Delete entire group" / "Delete all {n} chats" / "{n} chats in this group"), keeping terminology consistent across ChatFilesDrawer, ChatBranchSelector, and ChatSidebar. The deletion itself is correct; only the copy needs to align.
  2. No migration for already-branched chats. #1519 only enrolls the root for chats branched after the fix. Profiles that already have branches whose root stayed groupId: null are not retroactively repaired, so Manage Chat Files still shows the no-group state from those roots. A one-time migration (for each chat that is the target of some other chat's groupId, set its own groupId to that id when currently null) would repair existing data.

Originally created by @Romuromylus on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1522 Two follow-ups from #1509 (root chat now enrolled into its branch group, #1519). 1. **Delete-all wording (decided behavior).** Per the #1519 review: a branch group's "delete all" intentionally removes the whole group including the original chat, which makes branched groups consistent with ST-imported groups (whose root is already a group member and already deleted by `delete_chat_group`). The remaining issue is labels: - `src/app/shell/ChatSidebar.tsx` delete dialog (around lines 1216 and 1243): "This conversation has {n} branches" / "Delete All {n} Branches" now counts the root as a branch and implies the original survives. - `src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx` "Delete All Branches" footer button: same implication. Reword to match the behavior (e.g. "Delete entire group" / "Delete all {n} chats" / "{n} chats in this group"), keeping terminology consistent across `ChatFilesDrawer`, `ChatBranchSelector`, and `ChatSidebar`. The deletion itself is correct; only the copy needs to align. 2. **No migration for already-branched chats.** #1519 only enrolls the root for chats branched after the fix. Profiles that already have branches whose root stayed `groupId: null` are not retroactively repaired, so Manage Chat Files still shows the no-group state from those roots. A one-time migration (for each chat that is the target of some other chat's `groupId`, set its own `groupId` to that id when currently null) would repair existing data.
bsakaguchi 2026-10-20 17:33:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#768
No description provided.