[GH-ISSUE #5268] [Issue]: Branch names are ignored outside the branch dialog #2919

Closed
opened 2026-10-21 05:58:00 +07:00 by bsakaguchi · 0 comments
Owner

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

  1. Open the roleplay chat named "NPC".
  2. Create three branches.
  3. Rename the branches in the branch dialog, for example to "NPC_Main Narrative" and "NPC_First Kiss".
  4. View the branches outside the branch dialog, including the sidebar and chat search.
  5. Search for a renamed branch by its branch name, such as "첫키스".
  6. Open a capability package that lists the branches, such as Long Term Memory.

Environment

  • Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da)
  • Install type: other (Windows local install + self-hosted Docker)
  • OS + version: Client: Windows 10.0; servers: Windows 10.0.19045 (x64) and Linux 6.8.0-137-generic (x64)
  • Browser or app shell: Chrome 150.0.0.0 / Whale 4.39.410.14 app shell on Windows

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)
[2026-08-19T14:46:51.348Z] Lattete: Marinara Engine diagnostics
Version: 2.4.3
Build: 2.4.3+34442e26da57
Commit: 34442e26da57
Server OS: Windows 10.0.19045 (x64) + Linux 6.8.0-137-generic (x64)
  └ Windows local install + self-hosted Docker
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Whale/4.39.410.14 Safari/537.36
GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 1050 (0x00001C81) Direct3D11 vs_5_0 ps_5_0, D3D11)

**Branch names are ignored outside the branch dialog**

Repro: Roleplay chat "NPC" → make 3 branches → rename them in the branch dialog (NPC_Main Narrative / NPC_First Kiss …). Everywhere except that dialog they still read "NPC". Both installs.

A branch copies `name: sourceChat.name` and keeps its label in `metadata.branchName` (chats.routes.ts:3757). A resolver already exists: `getChatDisplayName()` in packages/client/src/lib/chat-display.ts (branchName → name fallback).

The bug: it's used in only 4 files (ChatArea, ChatBranchSelector, ChatRoleplaySurface, ChatSettingsDrawer); everything else prints the raw name:
• sidebar renders `{chat.name}` — ChatSidebar.tsx:1210
• **chat search matches `chat.name` only** — ChatSidebar.tsx:398, so "첫키스" finds nothing and named branches are undiscoverable
• capability packages (e.g. Long Term Memory) list every branch under the parent name with only a numeric suffix — NPC(1), NPC(2), NPC(3). The API does expose `branch.title` (capability-persistence.service.ts:75), but each package must know to prefer it.

Scene chats from Conversation mode are fine: they get a unique `name` at creation.

Ask: route the sidebar and chat search through `getChatDisplayName()`, and consider resolving the display name server-side so packages stop getting this wrong one by one.

[attached image 1: https://cdn.discordapp.com/attachments/1539646837638565928/1539646838397739100/image.png?ex=6a87135b&is=6a85c1db&hm=7a20636eb51397b9d8a857dd9b61ea38b57033a9b096993f5606d8e5cc8c7c41&]
[Discord message: https://discord.com/channels/1417099416812392641/1539646837638565928/1539646837638565928]

[2026-08-19T14:46:52.178Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1539646837638565928/1539646841119965255]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
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 1. Open the roleplay chat named "NPC". 2. Create three branches. 3. Rename the branches in the branch dialog, for example to "NPC_Main Narrative" and "NPC_First Kiss". 4. View the branches outside the branch dialog, including the sidebar and chat search. 5. Search for a renamed branch by its branch name, such as "첫키스". 6. Open a capability package that lists the branches, such as Long Term Memory. ## Environment - Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da57) - Install type: other (Windows local install + self-hosted Docker) - OS + version: Client: Windows 10.0; servers: Windows 10.0.19045 (x64) and Linux 6.8.0-137-generic (x64) - Browser or app shell: Chrome 150.0.0.0 / Whale 4.39.410.14 app shell on Windows ## 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) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-08-19T14:46:51.348Z] Lattete: Marinara Engine diagnostics Version: 2.4.3 Build: 2.4.3+34442e26da57 Commit: 34442e26da57 Server OS: Windows 10.0.19045 (x64) + Linux 6.8.0-137-generic (x64) └ Windows local install + self-hosted Docker Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Whale/4.39.410.14 Safari/537.36 GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 1050 (0x00001C81) Direct3D11 vs_5_0 ps_5_0, D3D11) **Branch names are ignored outside the branch dialog** Repro: Roleplay chat "NPC" → make 3 branches → rename them in the branch dialog (NPC_Main Narrative / NPC_First Kiss …). Everywhere except that dialog they still read "NPC". Both installs. A branch copies `name: sourceChat.name` and keeps its label in `metadata.branchName` (chats.routes.ts:3757). A resolver already exists: `getChatDisplayName()` in packages/client/src/lib/chat-display.ts (branchName → name fallback). The bug: it's used in only 4 files (ChatArea, ChatBranchSelector, ChatRoleplaySurface, ChatSettingsDrawer); everything else prints the raw name: • sidebar renders `{chat.name}` — ChatSidebar.tsx:1210 • **chat search matches `chat.name` only** — ChatSidebar.tsx:398, so "첫키스" finds nothing and named branches are undiscoverable • capability packages (e.g. Long Term Memory) list every branch under the parent name with only a numeric suffix — NPC(1), NPC(2), NPC(3). The API does expose `branch.title` (capability-persistence.service.ts:75), but each package must know to prefer it. Scene chats from Conversation mode are fine: they get a unique `name` at creation. Ask: route the sidebar and chat search through `getChatDisplayName()`, and consider resolving the display name server-side so packages stop getting this wrong one by one. [attached image 1: https://cdn.discordapp.com/attachments/1539646837638565928/1539646838397739100/image.png?ex=6a87135b&is=6a85c1db&hm=7a20636eb51397b9d8a857dd9b61ea38b57033a9b096993f5606d8e5cc8c7c41&] [Discord message: https://discord.com/channels/1417099416812392641/1539646837638565928/1539646837638565928] [2026-08-19T14:46:52.178Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1539646837638565928/1539646841119965255] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:58:00 +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#2919
No description provided.