mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3472] [Issue]: New RP chats appear blank with no intro messages after updates #1876
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#1876
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 @SpicyMarinara on GitHub (Jul 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3472
Originally assigned to: @SpicyMarinara on GitHub.
Summary
After each new update, new RP chats appear blank with no intro messages for the reporter. The reporter has to ask Professor Mari support AI to redo a fix after every update.
Expected behavior
New RP chats should include their intro messages and should continue working after updates without requiring a repeated support fix.
Actual behavior
New RP chats appear blank with no intro messages, and the user needs Professor Mari to redo a fix after each update.
Steps to reproduce
Environment
Logs, screenshots, or video
Not provided in the Discord context.
Additional context
Reporter says this may be specific to their setup and that the issue recurs whenever there is a new update.
Discord thread: New rp chats appear blank with no intro messages.
Discord thread link: https://discord.com/channels/1417099416812392641/1525479824565600338
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 11, 2026):
Bug Report: New chats are created blank — character greeting (
first_mes) is never insertedApp version: 2.1.1 (Windows, packaged install)
Severity: High — affects every newly created chat
Status: Reproduced, root-caused, and fixed locally (patch included below)
Summary
When creating a new chat through the Chat Setup Wizard, the character's greeting (
first_mes) is never inserted. The chat opens completely blank, even though the character card's greeting field is fully populated. Users must manually copy-paste the intro from the character info.Steps to Reproduce
first_mes.Reproduced consistently with multiple characters (fresh cards and existing ones) and across app restarts.
Root Cause
A race/interaction between two features that don't know about each other:
PATCH /chats/:idwithcharacterIds).packages/server/src/routes/chats.routes.ts, ~line 712) sees characters were added and inserts a system message for each: " has joined the chat." — a feature intended for adding characters to ongoing group chats.seedInitialGreetingsIfEmpty(packages/client/src/components/chat/ChatSetupWizard.tsx, ~line 1998), which checksGET /chats/:id/message-count. The count is now 1 (the join notice), so the seeder concludes the chat is not empty and silently skips inserting the greeting.Result: every new chat contains only a system "has joined" notice (which the UI may not render), and no greeting is ever seeded.
Fix (applied locally, both ends guarded)
Server — suppress the "has joined" system notice during initial chat setup (when the chat previously had zero characters). Join notices still fire when adding characters to a chat that already has some, which is when they're actually meaningful:
Client — make the greeting seeder ignore system messages when deciding whether the chat is empty, so it's robust even if a system notice slips in:
(Alternative for the client side, if fetching all messages is undesirable: extend the
message-countendpoint to accept arolefilter or exclude system messages, and keep the count-based check.)Verification
After applying both patches and rebuilding (
packages/serverandpackages/client— note that a staletsconfig.tsbuildinfocan make the server build silently emit nothing; acleanfirst is required):first_mesimmediately.Additional Notes
distoutput and the launcher only rebuilds on version change, source-level hotfixes are wiped by every manual update. An upstream fix would be much appreciated. 🍝