mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1271] [Feature]: Optional agent-written image-generation prompts with model-specific formatting (e.g. NovelAI Diffusion 4.5 Full) #618
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#618
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/1271
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
The image-generation prompt system builds the positive prompt by concatenating
written descriptions (for example the
${appearanceLine}in the Game NPCPortrait) into a single string of joined prose. Some image connections/models —
such as NovelAI Diffusion 4.5 Full — expect tag-based formatting rather than
prose. Based on the reporter's observation (stated as "correct me if I'm wrong"),
this concatenated prose appears to be sent as the positive prompt, which results
in unusable images for those models.
Proposed behavior
Add an alternate, toggleable prompt-building mode. When enabled, instead of
concatenating template strings, an agent writes the positive and negative
prompts from the relevant context.
for NovelAI Diffusion 4.5 Full: a brief overview of the tagging system, prompt
order, tag weights, and formatting.
entries, character details, reference images, etc., to improve relevance and
accuracy.
connection/model.
Expected owner or impact area
Refactor branch considerations
From a quick scan (pointer for triage, not from the reporter): image-gen prompt
assembly and agent execution currently appear to live in the React-free engine
(
src/engine/contracts/constants/image-generation-defaults.ts,src/engine/contracts/constants/agent-prompts.ts,src/engine/agents-runtime/executor/agent-executor.ts), with visuals surfacedunder
src/features/runtime/visuals. Suggested guardrails: keep newprompt-strategy logic React-free in the engine rather than in feature
components; route any connection/model calls through shared API wrappers instead
of raw Tauri/remote calls; and avoid broadening Game-mode files (e.g.
GameSurface.tsx) for what is mode-neutral image-gen behavior.Alternatives considered
Not specified by the reporter.
Additional context
Source: community forum post by AzraelRole, 6:47 PM. The reporter offered to
clarify and explicitly framed the "sent as the positive prompt" detail as an
observation to be corrected if wrong.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 26, 2026):
Triage note: labeling this as
scope-riskbecause model-specific image prompt formatting is aligned with image generation, but agent-authored prompts, configurable context, per-connection instructions, negative prompts, and two-stage preview span engine prompt strategy plus UI.The least risky next step is to decide a narrow prompt-strategy contract first, then build one model/connection-focused slice before expanding the context controls.
@SpicyMarinara commented on GitHub (May 27, 2026):
So basically a setting that we can tick on/off whether we want to include appearances from cards and whether we would like to prompt the model with tags or proper descriptions. Let's add it in Settings.
@SpicyMarinara commented on GitHub (May 27, 2026):
Implemented on refactor in
981971c1and750d5302: Settings now exposes image prompt controls for including card appearances and choosing descriptive vs tag-style prompts; those settings are wired into selfie prompts and Game asset prompts. Validation: pnpm check, pnpm lint, and the targeted scene-service vitest run.