[GH-ISSUE #258] [Issue]: Drop down Branch selector does not update counter upon creation of a new branch #101

Closed
opened 2026-10-20 17:25:08 +07:00 by bsakaguchi · 5 comments
Owner

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

Originally assigned to: @LukaTheHero on GitHub.

Summary

Another small issue with the drop down branch selector: If the user creates a new branch, the counter does not update.

As in one of my previous bugs (#234), this only updates if the user goes to a different chat (not within the same branch) and then returns to it, when it will have run an update.

Expected behavior

The counter should update when you create a new branch.

Actual behavior

The counter only gets updated if you go to a different chat, then come back.

Steps to reproduce

  1. Create a chat with a branch or two.
  2. Observe how the counter does not update.
  3. Go and look at a different chat, then go back to the one you made branches on.
  4. The branch counter has now updated.

Environment

  • Marinara Engine version: Release: v1.5.5 Build: 5943808
  • 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 (Apr 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/258 Originally assigned to: @LukaTheHero on GitHub. ## Summary Another small issue with the drop down branch selector: If the user creates a new branch, the counter does not update. As in one of my previous bugs (#234), this only updates if the user goes to a different chat (not within the same branch) and then returns to it, when it will have run an update. ## Expected behavior The counter should update when you create a new branch. ## Actual behavior The counter only gets updated if you go to a different chat, then come back. ## Steps to reproduce 1. Create a chat with a branch or two. 2. Observe how the counter does not update. 3. Go and look at a different chat, then go back to the one you made branches on. 4. The branch counter has now updated. ## Environment - Marinara Engine version: Release: v1.5.5 Build: 5943808 - 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:25:08 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@LukaTheHero commented on GitHub (Apr 28, 2026):

I read through the report — thanks, all the info I needed was there. I tried reproducing under the same circumstances (Windows 11 25H2, Firefox, installer build) and the counter updates correctly for me on every branch I create.

Just to make sure we're on the same element — is this the dropdown branch selector you mean?

Image Image

If yes, a short clip of the moment right after branching where the counter doesn't tick over would help a lot. If it's actually a different control (e.g. inside Manage Chat Files), point me at the right one and I'll re-test there.

<!-- gh-comment-id:4332545256 --> @LukaTheHero commented on GitHub (Apr 28, 2026): I read through the report — thanks, all the info I needed was there. I tried reproducing under the same circumstances (Windows 11 25H2, Firefox, installer build) and the counter updates correctly for me on every branch I create. Just to make sure we're on the same element — is this the dropdown branch selector you mean? <img width="564" height="539" alt="Image" src="https://github.com/user-attachments/assets/b3e02a89-5792-4cd7-b4a3-d20711ce87f4" /> <img width="467" height="86" alt="Image" src="https://github.com/user-attachments/assets/53cca7a4-931d-4a9a-ad95-49ca5461f341" /> If yes, a short clip of the moment right after branching where the counter doesn't tick over would help a lot. If it's actually a different control (e.g. inside Manage Chat Files), point me at the right one and I'll re-test there.
Author
Owner

@DarkPulse commented on GitHub (Apr 28, 2026):

Okay, I've done that. Admittedly not the 100% the best example since I used the same character card twice, but I did have the foresight to change the user persona at least, so you can see when I switch between chats when the persona name changes.

https://github.com/user-attachments/assets/fcd066b3-f47d-4b8b-8d12-e480e644fb45

Here's what I do in order:

  1. I start up the first conversation, and begin to branch. The first branch pops the counter, but then I keep clicking. You'll see it begin to become (branch) (branch) (branch) but the counter remains at 2. I ultimately click for five total branches.
  2. I swap to the second chat. (Notice the persona's name changes and the branch indicator disappears.)
  3. I swap back to the original. The branch counter has still not updated. It still reads 2, but we clearly have at least 3 branches per the chat name. (Again, in truth we have 5 total.)
  4. Swap back to the second chat again. I now begin creating branches here. It updates the number to 2 at the first branch, but no longer updates when I keep pressing for branches. I once more press for five total branches.
  5. I swap back to the first chat. At this point I was still expecting that to say 2, but to my surprise, the branch counter has now correctly updated to show there's five branches. Somehow, making branches in a new chat made the number get corrected in this chat.
  6. I swap back and forth a few more times, showing that the second chat is still not updating even when swapping back and forth. (In truth, this is when I discovered that new, secondary aspect I just mentioned of branches in another chat making the incorrect number update, lol.)

I'm no coder, but my guess is that the branch counter is failing to get updated when you push for multiple branches in succession within one chat. The code that pops the brancher and counter runs right the first time, but then fails to update the counter if you keep doing it (but the name does get correctly reflected). However, if you then go to another chat and pull for a new branch in that one, something in the logic updates it for the other chats - but it will always fail to update on the current chat if you keep pushing for branches until a branch gets made in a different chat. The counter then correctly counts them.

<!-- gh-comment-id:4332948287 --> @DarkPulse commented on GitHub (Apr 28, 2026): Okay, I've done that. Admittedly not the 100% the best example since I used the same character card twice, but I did have the foresight to change the user persona at least, so you can see when I switch between chats when the persona name changes. https://github.com/user-attachments/assets/fcd066b3-f47d-4b8b-8d12-e480e644fb45 Here's what I do in order: 1. I start up the first conversation, and begin to branch. The first branch pops the counter, but then I keep clicking. You'll see it begin to become (branch) (branch) (branch) but the counter remains at 2. I ultimately click for five total branches. 2. I swap to the second chat. (Notice the persona's name changes and the branch indicator disappears.) 3. I swap back to the original. The branch counter has still not updated. It still reads 2, but we clearly have at least 3 branches per the chat name. (Again, in truth we have 5 total.) 4. Swap back to the second chat again. I now begin creating branches here. It updates the number to 2 at the first branch, but no longer updates when I keep pressing for branches. I once more press for five total branches. 5. I swap back to the first chat. At this point I was still expecting that to say 2, but to my surprise, the branch counter has now correctly updated to show there's five branches. Somehow, making branches in a new chat made the number get corrected in this chat. 6. I swap back and forth a few more times, showing that the second chat is still not updating even when swapping back and forth. (In truth, this is when I discovered that new, secondary aspect I just mentioned of branches in another chat making the incorrect number update, lol.) I'm no coder, but my guess is that the branch counter is failing to get updated when you push for multiple branches in succession within one chat. The code that pops the brancher and counter runs right the first time, but then fails to update the counter if you keep doing it (but the name does get correctly reflected). However, if you then go to another chat and pull for a new branch in that one, something in the logic updates it for the other chats - but it will always fail to update on the current chat if you keep pushing for branches until a branch gets made in a different chat. The counter then correctly counts them.
Author
Owner

@LukaTheHero commented on GitHub (Apr 28, 2026):

ok, thanks for the added info, I'm in the middle of fixing another bug, afterwards I'll come back and fix this if I can reproduce, cheers!

<!-- gh-comment-id:4333040697 --> @LukaTheHero commented on GitHub (Apr 28, 2026): ok, thanks for the added info, I'm in the middle of fixing another bug, afterwards I'll come back and fix this if I can reproduce, cheers!
Author
Owner

@DarkPulse commented on GitHub (Apr 28, 2026):

Just to give an update: Managed to update to ecbfc60 and I can't replicate the issue anymore. This may have been fixed in the myriad of fixes since then. Counters are tracked correctly and immediately.

<!-- gh-comment-id:4333736932 --> @DarkPulse commented on GitHub (Apr 28, 2026): Just to give an update: Managed to update to ecbfc60 and I can't replicate the issue anymore. This may have been fixed in the myriad of fixes since then. Counters are tracked correctly and immediately.
Author
Owner

@SpicyMarinara commented on GitHub (Apr 28, 2026):

Closing then, thanks.

<!-- gh-comment-id:4333812226 --> @SpicyMarinara commented on GitHub (Apr 28, 2026): Closing then, thanks.
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#101
No description provided.