mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1293] [Issue]: Illustrate button fails persistently after long chats (NovelAI) — 500/generic error, only a new chat recovers; sprite gen mostly fails #641
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#641
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 @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1293
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Pressing "Illustrate" (including from the gallery) after a chat has run for a
while fails: the button spins much longer than usual and then errors (previously
HTTP 500, now a generic error). Once a chat hits this, the Illustrate button stops
working for that chat entirely — sometimes it reports "agent retry completed" but
produces no image. Deleting messages to reduce context does not help; the only fix
is starting a wholly new roleplay or GM game. The automatic illustrator agent
still works (more consistently with reference images turned off). The same problem
affects GM mode (inconsistent), and sprite generation almost always fails.
Provider: NovelAI. Confirmed by a second reporter; the reporter notes it has
persisted across several versions.
Expected behavior
The Illustrate button (and sprite generation) should keep working for a chat
regardless of how long it has run. A single failed image generation should not
permanently disable illustration for that chat, and the underlying error should be
surfaced clearly rather than as a generic error.
Actual behavior
failure it no longer works for that chat; "agent retry completed" sometimes
appears with no output.
reference images off.
Steps to reproduce
see Environment).
fail (sometimes "agent retry completed" with no output).
illustration.
Impact area
Environment
Logs, screenshots, or video
No logs/screenshots were provided beyond the error description. Capturing the
actual provider response/status for a failing Illustrate (the underlying 500 body
from NovelAI) would help, since the current generic error hides it.
Regression notes
Has persisted for the last several versions (reporter). A second reporter
(Solsgriz) says the gallery Illustrate button "stopped working completely several
versions ago." Previously surfaced as HTTP 500; now a generic error.
Additional context
Source: forum thread by Vasht (2-Star), 5/24/26 5:03 AM, with follow-up config
details (6:02 PM) and confirmation from Solsgriz (1-Star). Maintainer Marinara
[MARI] asked about context size; the reporter's testing shows context size does
not change the outcome (5k–500k all fail), which argues against a simple
context-overflow cause.
Triage pointers (from a scan, not from the reporter):
handleIllustrate→retryAgents(activeChatId, ["illustrator"])insrc/features/modes/shared/chat-ui/hooks/use-chat-timeline-actions.ts(~L396-398). Failed agent types are tracked in
src/shared/stores/agent.store.ts(
failedAgentTypes). The "stops working until a new chat" behavior suggests astuck/failed illustrator-agent state that retry does not clear and that deleting
messages does not reset — worth checking against the recent failed-agent
surfacing/clearing work (
surface-failed-agents,retryAgentsfailure-clear).src-tauri/src/commands/storage/images/providers.rsdefinesNOVELAI_V4_PROMPT_HINT— "NovelAI V4/V4.5 prompts support roughly 512 T5 tokensand reject most Unicode prompt characters." A long or non-ASCII generated image
prompt (or a large reference-image payload) could cause NovelAI to reject the
request (historically a 500). The reporter's note that disabling reference images
makes the illustrator agent more reliable points at the reference-image payload
as a contributor (cf. reference-image handling in #1275).
being masked; surfacing the underlying status/body would aid diagnosis.
This is mode-spanning (RP + GM) via the shared illustrate / agent / provider
pipeline rather than a single mode.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 27, 2026):
Fixed on refactor in
8058f66dd4: NovelAI V4/V4.5 prompts are sanitized and capped before provider calls, provider JSON errors are surfaced instead of a generic parse failure, and the Illustrator prompt was tightened to avoid huge character-description leakage. Validated with pnpm check and targeted Rust tests.