mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6609] [MERGED] fix: preserve manual Illustrator prompts and character download rendering #7251
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#7251
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/6609
Author: @SpicyMarinara
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/6597-6598-assigned-fixes📝 Commits (6)
355011ctest: reproduce lost Illustrator prompts and translated download crashesc336409fix: retain custom illustration instructions and stabilize download labels8c083e1test: cover repeated translation and selected custom prompt resolutionba29e32fix: preflight complete manual Illustrator requests against context limits8d2945etest: require the selected prompt boundary before its manual overrideca21682Merge branch 'staging' into codex/6597-6598-assigned-fixes📊 Changes
5 files changed (+207 additions, -95 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)➕
e2e/bot-browser-download.e2e.ts(+104 -0)📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+11 -6)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+23 -83)📝
scripts/regressions/prompt.regression.ts(+66 -6)📄 Description
Manual Illustrator requests discarded custom visual instructions if they followed a response-schema heading, shared a line with generation conditions, or appeared inside a schema example. Browser-translated character download labels could also crash the app when React replaced their adjacent loading icon.
This fixes both issues with existing paths and no new dependencies:
/illustrateshare this writer; manual requests still return the existing image-plan schema and bypass automatic cadence. Reuse the shared token-budget estimator before initial and retry calls, respect the connection context limit (Engine default when unspecified), and reject oversized requests without truncating instructions.Closes #6597
Closes #6598
Validation completed:
insertBeforecrash.pnpm check: passed, including localization, formatting, TypeScript, lint and production builds. One existing unrelated GameNarration hook warning remains.pnpm regression:prompt: passed. Added cases cover chat-selected custom prompts, schema-first instructions, inline generation conditions, schema examples and instructions beyond the former 12,000-character cutoff. Macro escaping and the manual response contract remain covered. Oversized initial and retry requests are rejected before the respective provider call.pnpm smoke:ui: first and repeated imports and PNG downloads pass in desktop Chromium, mobile Chromium and mobile WebKit; dark and light themes covered. The existing destination/lorebook-choice browser regression also passed on desktop (its mobile cases are intentionally skipped).scripts/smoke-container.mjs: passed frontend/API, native bindings and persistence across restart on production-code commitba29e3272. Later changes affect test proof only.Browser screenshots: downloadable before/after proof. The self-contained HTML includes the original crash and desktop/mobile results.
Claim limits: browser translation is a reproduced cause of the exact reported crash, inferred from the screenshot rather than confirmed on the reporter's Android/Brave installation. The Termux sharp warning is separate. Prompt verification captures the real writer's provider request; it does not assert that every image model follows every custom instruction.
Manual verification:
/illustratewith their image provider.Summary by CodeRabbit
/illustraterequests retain custom Illustrator prompts, including visual instructions alongside response schemas. Requests that exceed the connection’s context limit now report an error instead of silently cutting instructions.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.