mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7417] [MERGED] fix(conversation): let characters remember and see the selfies they send #7724
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#7724
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7417
Author: @Gunterlie
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @Gunterlie
Base:
staging← Head:say-cheese-no-picture-shown📝 Commits (7)
df025c7fix(conversation): let characters remember the selfie they sent5b9fb20fix(conversation): name the sender of each selfie in prompt history0e8bc68fix(conversation): caption sent selfies once with the chat's captioning modelb689174refactor(generate): drop the duplicate dynamic gallery storage import2bad22bfix(conversation): caption only the newest selfie messages per turn05741adfix(conversation): send selfie captions only known image types; qualify changelogc69bf18Merge remote-tracking branch 'origin/staging' into say-cheese-no-picture-shown📊 Changes
8 files changed (+249 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/generate.routes.ts(+54 -7)📝
packages/server/src/routes/generate/conversation-prompt-formatting.ts(+23 -0)📝
packages/server/src/services/generation/conversation-selfie-command-runtime.ts(+2 -0)📝
packages/server/src/services/generation/image-captioning-runtime.ts(+50 -0)📝
packages/server/src/services/generation/prompt-attachments.ts(+10 -0)📝
packages/shared/src/types/chat.ts(+2 -0)📝
scripts/regressions/prompt.regression.ts(+107 -0)📄 Description
Why
A user reported that in Conversation mode, when a character sends a selfie, the character doesn't know it on the next turn — reacting to the photo usually gets "Lol what photo?". Their captioning model (llama.cpp) captioned uploaded images fine but was never called for selfies.
Root cause: since
4c4091dc4(2026-04-02) every generated image attachment (type: "image") is hidden from prompt history so Illustrator scene images don't make the character think it sent them. Selfies use the same type, so they were hidden too. Captioning only handles inlineimage/*uploads, and the selfie's saved image prompt was never read back. The model only saw its own raw[selfie]tag, which carries no description (and vanishes after an edit).No linked issue — this came in as a direct user report.
What changed
[<Name> sent a selfie: <description>]in prompt history (formatSentSelfieNotes). Illustrator images stay hidden. Selfies are recognised by theirselfie_*filename, which only the selfie runtime writes, so existing chats work.characterName, because one merged group reply can hold several speakers. Older selfies get an unattributed note.ponytail:comment), so a long chat or a changed caption model can't queue a caption call per old selfie before the reply.gallery.storageimport.Validation
pnpm check— pass (one pre-existing clientreact-hooks/exhaustive-depswarning, untouched code)pnpm regression:prompt— pass, incl. new cases: selfie note vs Illustrator image, caption wins over prompt, group sender names, caption made once + cache hit, failed caption doesn't throw, captioning off skips the readtsc --noEmit— passManual verification
[<Name> sent a selfie: …]built from the image prompt.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.