mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1504] Roleplay generation actions can persist blank assistant messages or swipes when visible output is empty #754
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#754
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 @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1504
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Roleplay generation can persist a visible assistant message with empty
contentwhen the provider stream produces reasoning/thinking metadata but no visible response text.This came out of the Roleplay smoke/audit follow-up for #1486.
Native QA repro
Environment: native Tauri QA app, isolated QA identifier, LM Studio localhost server on
127.0.0.1:1234, custom OpenAI-compatible connection usinggoogle/gemma-4-e4b.Thinking...placeholder.content, butextra.thinking,generationPromptSnapshot, andgenerationPromptSnapshotsBySwipeare present.Observed UI: a blank assistant message renders in the transcript after retry.
Observed storage shape from the QA profile:
Expected
If the visible assistant content is empty after provider/post-processing, generation should not create a blank assistant transcript row. It should either surface a recoverable generation error, keep the retry affordance, or store a meaningful assistant response.
Thinking/reasoning metadata should not be enough by itself to make the turn look successful.
Likely owner
Generation persistence/failure-path contract:
src/engine/generation/start-generation.tscreates assistant messages insaveAssistantMessagewithout guarding empty visible content.src/features/runtime/generation/hooks/use-generate.tstreats the generation as complete once the engine returns, so the UI ends up with a blank assistant row instead of a visible failure/retry state.thinkingchunks separately from visibletokenchunks, so this path is reachable when the provider returns reasoning-only output, maxes out during reasoning, or post-processing strips all visible text.Notes
Duplicate check before filing did not find an open issue for
blank assistant output,empty assistant message,reasoning thinking blank roleplay,thinking metadata, orempty content generation.@Xelvanis commented on GitHub (May 29, 2026):
Additional native QA repro from the same audit: the empty-input Roleplay
Continuepath can hit the same failure, not only retry.After deleting the prior blank retry row in the isolated QA profile and leaving the last persisted message as an assistant, I clicked the empty send button. The app created a new assistant message with empty
content, whileextra.thinking,generationPromptSnapshot, andgenerationPromptSnapshotsBySwipewere populated. The transcript showed no visible assistant text for that turn.This keeps the likely owner the same: generation persistence/failure-path handling should not treat thinking-only output as a successful visible assistant message.
@Xelvanis commented on GitHub (May 29, 2026):
Additional native QA repro from the same audit: assistant Regenerate can persist an active blank swipe.
Flow:
2/2, active swipe index1, with emptycontent.Observed storage for the target assistant after waiting:
This is a no-visible-output variant of the same failure-path bug: the generation path should not treat an empty visible assistant output as a successful transcript row or active swipe, even when prompt metadata exists.
@SpicyMarinara commented on GitHub (May 29, 2026):
Addressed in
b2cebc28on refactor. Roleplay assistant persistence now rejects generations with no visible assistant content unless attachments exist, so thinking-only provider output cannot create a blank assistant message/swipe. Added a focused regression test covering a thinking-only stream while keeping the user message persisted.