mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5268] [Issue]: Branch names are ignored outside the branch dialog #2919
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#2919
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 @SpicyMarinara on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5268
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Renamed roleplay chat branches display their parent chat name everywhere except the branch dialog. This also prevents chat search from finding branches by their assigned names and causes capability packages to list branches with ambiguous numeric suffixes.
Expected behavior
Renamed branches should display their branch names throughout the sidebar, chat search, and capability package listings. Chat search should match the branch display name, and packages should prefer the exposed branch title or resolved display name.
Actual behavior
A branch retains the parent chat's name in most contexts, so branches renamed to values such as "NPC_Main Narrative" or "NPC_First Kiss" still appear as "NPC". Searching for a branch name such as "첫키스" returns no results, and capability packages list branches as "NPC(1)", "NPC(2)", and "NPC(3)".
Steps to reproduce
Environment
34442e26da)Logs, screenshots, or video
No logs provided. Screenshot attached: https://cdn.discordapp.com/attachments/1539646837638565928/1539646838397739100/image.png?ex=6a87135b&is=6a85c1db&hm=7a20636eb51397b9d8a857dd9b61ea38b57033a9b096993f5606d8e5cc8c7c41&
Additional context
Reproduced on both the Windows local install and the self-hosted Docker install. Branches copy name: sourceChat.name and retain the assigned label in metadata.branchName (chats.routes.ts:3757). getChatDisplayName() in packages/client/src/lib/chat-display.ts already resolves branchName with a name fallback, but it is currently used in only ChatArea, ChatBranchSelector, ChatRoleplaySurface, and ChatSettingsDrawer. The sidebar renders chat.name at ChatSidebar.tsx:1210, and chat search matches chat.name only at ChatSidebar.tsx:398. Capability packages such as Long Term Memory receive branch.title through capability-persistence.service.ts:75, but currently need to resolve it individually. Suggested fix: route sidebar and chat search through getChatDisplayName(), and consider resolving the display name server-side for capability packages.
Discord thread: Branch names are ignored outside the branch dialog
Discord thread link: https://discord.com/channels/1417099416812392641/1539646837638565928
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: