[GH-ISSUE #1135] [Issue]: Chats Sidebar does not update when a new branch is selected in current chat #563

Closed
opened 2026-10-20 17:30:13 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @cha1latte on GitHub.

Summary

Whenever you select a different branch, the branch name updates accordingly. However, the chats panel on the left still shows an old chat/branch name until some other event updates it.

Furthermore, because it hasn't updated, clicking to a different RP, then back to the one that "didn't" change, even if you changed the branch, will bring you to the branch that's listed on the sidebar. This means it's entirely possible to be in Roleplay A Branch 1, switch to Roleplay A Branch 4, go to Roleplay B, and then when you go back to Roleplay A, instead of being on A-4, it will be on A-1.

Expected behavior

When you switch branches in a multi-branch roleplay/chat, it should reflect the name in the chats panel. When you click away and then click back, it should bring you to the last selected chat, not the listed one.

Actual behavior

Chat panel does not update the selected branch's name if you just select among other branches.

Steps to reproduce

  1. Start up two Roleplays.
  2. Create a few branches. Give them different names so you can differentiate things.
  3. Expand the left chat panel, if it's not.
  4. Switch between branches.
  5. Observe how nothing changes on the left.
  6. Switch to a different RP.
  7. Switch back to the original one. Note how it brings you back to the one on the left sidebar, not the last one you picked.

Environment

  • Marinara Engine version: Release: v1.6.1, Build: 3663484
  • Install type: Installer
  • OS + version: Windows 11, 25H2
  • Browser or app shell: Browser (Firefox)

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 @DarkPulse on GitHub (May 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1135 Originally assigned to: @cha1latte on GitHub. ## Summary Whenever you select a different branch, the branch name updates accordingly. However, the chats panel on the left still shows an old chat/branch name until some other event updates it. Furthermore, because it hasn't updated, clicking to a different RP, then back to the one that "didn't" change, even if you changed the branch, will bring you to the branch that's listed on the sidebar. This means it's entirely possible to be in Roleplay A Branch 1, switch to Roleplay A Branch 4, go to Roleplay B, and then when you go back to Roleplay A, instead of being on A-4, it will be on A-1. ## Expected behavior When you switch branches in a multi-branch roleplay/chat, it should reflect the name in the chats panel. When you click away and then click back, it should bring you to the last selected chat, not the listed one. ## Actual behavior Chat panel does not update the selected branch's name if you just select among other branches. ## Steps to reproduce 1. Start up two Roleplays. 2. Create a few branches. Give them different names so you can differentiate things. 3. Expand the left chat panel, if it's not. 4. Switch between branches. 5. Observe how nothing changes on the left. 6. Switch to a different RP. 7. Switch back to the original one. Note how it brings you back to the one on the left sidebar, not the last one you picked. ## Environment - Marinara Engine version: Release: v1.6.1, Build: 3663484 - Install type: Installer - OS + version: Windows 11, 25H2 - Browser or app shell: Browser (Firefox) ## 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-20 17:30:13 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@franko-c commented on GitHub (May 24, 2026):

from what I can see, ChatSidebar.tsx:273 — displayChats useMemo deps are [chats, filtered, sort] without activeChatId, so branch switches don't recompute the group representative. getCurrentGameGroupRepresentative is also game-mode only — non-game branches pick first-in-sort-order. not sure if the dep was left out intentionally or just missed.

<!-- gh-comment-id:4529618176 --> @franko-c commented on GitHub (May 24, 2026): from what I can see, `ChatSidebar.tsx:273` — `displayChats` useMemo deps are `[chats, filtered, sort]` without `activeChatId`, so branch switches don't recompute the group representative. `getCurrentGameGroupRepresentative` is also game-mode only — non-game branches pick first-in-sort-order. not sure if the dep was left out intentionally or just missed.
Author
Owner

@cha1latte commented on GitHub (May 24, 2026):

fixed in #1176

<!-- gh-comment-id:4529943781 --> @cha1latte commented on GitHub (May 24, 2026): fixed in #1176
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#563
No description provided.