mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1509] [Issue]: Manage Chat Files misses Roleplay branches from the original chat #761
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#761
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 @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1509
Originally assigned to: @Romuromylus on GitHub.
Summary
After creating Roleplay branches, Manage Chat Files works from a branch chat but the original/root chat still says it is not part of a group and has no branches.
Expected behavior
Once a Roleplay chat has branches, opening Manage Chat Files from either the original chat or any branch should show the same branch group and allow switching/managing the chat files.
Actual behavior
Branch records are created with
groupIdset to the original chat id, but the original/root chat keepsgroupId: null. Because the drawer only fetches a group when the active chat haschat.groupId, opening Manage Chat Files from the original chat shows the no-group empty state even though branch records exist for that original chat id.Steps to reproduce
Impact area
Environment
origin/refactorat229e7d89(Fix PR 1499 review follow-ups)v24.16.0, pnpm10.33.21.95.0, cargo1.95.0Logs, screenshots, or video
Local QA screenshots captured during the audit:
scratch/roleplay-audit-a10-chat-files.png: Manage Chat Files from an active branch shows2 chat files in this group.scratch/roleplay-audit-a10-root-chat-files-missing-branches.png: Manage Chat Files from the original/root chat shows the no-group/no-branches empty state.Observed storage evidence from the same QA profile:
id: 36b9d7fb-92b7-47df-ae9f-15e9221b3cc9name: New RoleplaygroupId: nullgroupIdequal to the original chat id:371388b1-07d5-44d2-9503-31a9c105b36b3821006b-1562-4cdc-b3c1-e84b32a3b751Regression notes
Found during the 2026-05-29 Roleplay mode audit on latest
origin/refactor. No earlier known-good commit identified.Additional context
Likely areas to inspect:
src-tauri/src/commands/storage/chats.rs:branch_chatuses the source chat id as the branchgroupIdwhen the source chat has no existing group id, but does not appear to patch the source chat into that group.src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx: the drawer returns the no-group empty state whenchat.groupIdis missing, so it cannot discover branches whosegroupIdequals the current root chat id.src/features/modes/shared/chat-ui/components/ChatBranchSelector.tsx: similarif (!groupId) return nullbehavior may hide branch switching from the original/root chat.Duplicate checks:
gh issue list --repo Pasta-Devs/Marinara-Engine --state all --search "Roleplay original chat branch groupId Manage Chat Files no branches"returned no matches.gh issue list --repo Pasta-Devs/Marinara-Engine --state all --search "chat_branch groupId source chat branch files"returned no matches.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (May 29, 2026):
Fixed by #1519 (merged into
refactoraseaa7567). branch_chat now enrolls the source chat into the new group, so Manage Chat Files and the branch selector discover the branches when opened from the original chat. Follow-ups (delete-dialog wording and a migration for chats branched before this fix) are tracked in #1522.