mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #259] [Issue]: Upon creation of a new branch, user cannot click send to prompt LLM to continue until something is typed #103
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#103
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 @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
Environment
5943808Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@LukaTheHero commented on GitHub (Apr 28, 2026):
Fix is up in #274.
Root cause:
ChatInputwas reading the messages list directly off the React Query cache viagetQueryDatawithout subscribing, so when a new branch's messages finished loading, no re-render fired andcanRetry/canContinuestayed 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
lastMessageRolerecomputes the moment the data lands, restoring the prior behavior where you can branch and immediately click send to continue.