mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1522] Branch groups: delete dialog counts the root as a branch, and existing ungrouped roots are not migrated #768
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#768
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).
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.tsxdelete 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, andChatSidebar. The deletion itself is correct; only the copy needs to align.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: nullare 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'sgroupId, set its owngroupIdto that id when currently null) would repair existing data.