mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2866] [Issue]: /continue appends to the latest assistant message instead of creating a new reply #1453
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#1453
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 @Romuromylus on GitHub (Jun 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2866
Originally assigned to: @Romuromylus on GitHub.
Summary
In Roleplay mode, the
/continueslash command appends the generated continuation to the latest assistant message even when that message is no longer the last message in the chat. After the user posts a new message,/continuewrites onto an earlier assistant message (e.g. the scenario / first message) instead of creating a new reply.Expected behavior
When the last message in the chat is a user message,
/continueshould generate a fresh assistant reply (a new message), the same way the/continuetoolbar button only offers to continue when the last message is an assistant reply.Actual behavior
/continuealways targets the latest assistant message regardless of position. If the user has posted since that reply, the new text is appended onto the older assistant message (in the reported case, the scenario message at index 0) rather than creating a new message.Steps to reproduce
/impersonate "Hi"(or any path that makes the user post the most recent message)./continue.Using
/guided respond for CharA. do not respond for Userin place of/continuedoes not exhibit this, because that path always generates a new message.Environment
Logs, screenshots, or video
Reported and corroborated in the community Discord. No console errors; the misbehavior is in slash-command target selection.
Additional context
Root cause is client-side: the
/continueslash handler inpackages/client/src/lib/slash-commands.tsuseslatestAssistantMessageIdunconditionally, with no equivalent of the toolbar button'slastMessageRole === "assistant"gate (ChatInput.tsx). When the trailing message is a user message, the only/last assistant message is an earlier one (the scenario), so the continuation appends there.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: