[GH-ISSUE #259] [Issue]: Upon creation of a new branch, user cannot click send to prompt LLM to continue until something is typed #103

Closed
opened 2026-10-20 17:25:10 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @LukaTheHero on GitHub.

Summary

If the user creates a new branch, the option to immediately click send will not be active. It will only activate once the user has typed something. This prevents, for example, branching at the end of a user message and then immediately being able to click send to prompt the LLM to reply.

Note the user does not have to SEND the reply - merely type something, then delete it. The send button gets activated as soon as something is typed, but not a moment before.

I remember this behavior being different in prior versions of Marinara Engine. It changed somewhere in the last few releases.

Expected behavior

Upon branching, I should be able to immediately click to send in order to tell the LLM it's its turn to reply.

Actual behavior

Send cannot be clicked until something is typed in entry box.

Steps to reproduce

  1. Create a chat and branch it.
  2. Observe how send cannot be clicked.
  3. Type literally anything.
  4. Send is now lit up and can be clicked, even if you delete what you just typed.

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/259 Originally assigned to: @LukaTheHero on GitHub. ## Summary If the user creates a new branch, the option to immediately click send will not be active. It will only activate once the user has typed something. This prevents, for example, branching at the end of a user message and then immediately being able to click send to prompt the LLM to reply. Note the user does not have to _**SEND**_ the reply - merely type something, then delete it. The send button gets activated as soon as something is typed, but not a moment before. I remember this behavior being different in prior versions of Marinara Engine. It changed somewhere in the last few releases. ## Expected behavior Upon branching, I should be able to immediately click to send in order to tell the LLM it's its turn to reply. ## Actual behavior Send cannot be clicked until something is typed in entry box. ## Steps to reproduce 1. Create a chat and branch it. 2. Observe how send cannot be clicked. 3. Type literally anything. 4. Send is now lit up and can be clicked, even if you delete what you just typed. ## 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:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Fix is up in #274.

Root cause: ChatInput was reading the messages list directly off the React Query cache via getQueryData without subscribing, so when a new branch's messages finished loading, no re-render fired and canRetry/canContinue stayed false. Typing forced a re-render, which re-read the cache — that's why typing "woke up" the send button.

The PR subscribes to the cache for the active chat's messages key so lastMessageRole recomputes the moment the data lands, restoring the prior behavior where you can branch and immediately click send to continue.

<!-- gh-comment-id:4332438485 --> @LukaTheHero commented on GitHub (Apr 28, 2026): Fix is up in #274. Root cause: `ChatInput` was reading the messages list directly off the React Query cache via `getQueryData` without subscribing, so when a new branch's messages finished loading, no re-render fired and `canRetry`/`canContinue` stayed false. Typing forced a re-render, which re-read the cache — that's why typing "woke up" the send button. The PR subscribes to the cache for the active chat's messages key so `lastMessageRole` recomputes the moment the data lands, restoring the prior behavior where you can branch and immediately click send to continue.
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#103
No description provided.