mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6966] [MERGED] fix(chat): editable image captioning prompt, and stop on caption failures #7408
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#7408
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/6966
Author: @SpicyMarinara
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/image-captioning-prompt📝 Commits (6)
da59142fix(chat): let users edit the image captioning prompt and stop on caption failuresad8eec9Merge remote-tracking branch 'origin/staging' into fix/image-captioning-prompte0ba1e1Merge remote-tracking branch 'origin/staging' into fix/image-captioning-promptbabcd84Merge remote-tracking branch 'origin/staging' into fix/image-captioning-promptcfe4afefix(chat): recaption after a prompt change, and report load errorsc813e8cdocs(changelog): drop repeated entries📊 Changes
10 files changed (+402 additions, -46 deletions)
View changed files
📝
CHANGELOG.md(+4 -2)📝
docs/prompts/generation-parameters.md(+4 -0)➕
e2e/image-captioning-prompt.e2e.ts(+164 -0)📝
packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx(+45 -2)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/server/src/services/generation/image-captioning-runtime.ts(+73 -38)📝
packages/server/src/services/generation/prompt-attachments.ts(+2 -0)➕
packages/shared/src/constants/image-captioning-prompt.ts(+5 -0)📝
packages/shared/src/index.ts(+1 -0)📝
scripts/regressions/prompt-attachments.regression.ts(+101 -4)📄 Description
Linked issue
Closes #6960
Why this change
The image captioning prompt was hard-coded, so the only way to ask for more detailed captions was to edit
image-captioning-runtime.js. When the captioning connection was broken, Marinara quietly sent the raw image to the chat model, so captioning looked like it worked when it didn't.What changed
packages/shared/src/constants/image-captioning-prompt.ts, with the same text as before.docs/prompts/generation-parameters.md) and the CHANGELOG are updated. The old regression that expected the silent fallback now expects the error.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What I ran (not a replacement for the checklist):
Checks:
pnpm check,pnpm regression:promptandpnpm smoke:ui(7/7) pass.Regression
prompt-attachments: covers a failed call, an empty reply and a deleted connection, which all give an error. A turn with no images still works, the custom prompt is used, and a blank one falls back to the default. Before the fix it failed with "Missing expected rejection".New
e2e/image-captioning-prompt.e2e.ts:Local CodeRabbit: 2 findings, both fixed, with new regression cases that fail before.
To check by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/prompts/generation-parameters.mdis updated. The translated packs will follow in adocs-i18nPR.UI evidence (if applicable)
Covered by the new e2e on desktop and mobile Chromium; it reuses the existing text area and reset button styles.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.