[PR #7360] [MERGED] fix(images): image prompt writers follow Style text and instructions without pasting them #7697

Closed
opened 2026-10-24 04:06:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7360
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/7357-image-prompt-instructions


📝 Commits (9)

  • 1da362e fix(images): image prompt writers follow Style text and instructions without pasting them (#7357)
  • eba18f3 Move the CHANGELOG entry away from other open PRs
  • 6591855 fix(images): clean only the prompt writer's own output (#7357)
  • 537c2f3 fix(images): tidy removed guidance without a slow regex (#7357)
  • 901e278 fix(images): find copied guidance by words, keep tag phrases and a subject (#7357)
  • b4aab7e fix(images): keep wrapped guidance sentences whole; check every writer path (#7357)
  • 03af05e fix(images): drop an Illustrator style that only repeats the Style text (#7357)
  • e0eee6c docs(noodle): say Style text is still added with Interpret image prompts off (#7357)
  • 204150d docs(changelog): copied short phrases and tag lists stay (#7357)

📊 Changes

15 files changed (+597 additions, -42 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/media/style-profiles.md (+1 -1)
📝 docs/noodle/settings.md (+3 -1)
📝 packages/server/src/routes/gallery.routes.ts (+7 -1)
📝 packages/server/src/routes/generate.routes.ts (+15 -3)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+15 -4)
📝 packages/server/src/services/agents/agent-executor.ts (+1 -1)
📝 packages/server/src/services/generation/conversation-selfie-command-runtime.ts (+19 -2)
📝 packages/server/src/services/generation/illustrator-background-generation.ts (+22 -10)
📝 packages/server/src/services/generation/illustrator-manual-prompt-generation.ts (+13 -10)
📝 packages/server/src/services/image/image-prompt-compiler.ts (+1 -0)
📝 packages/server/src/services/prompt-overrides/registry/noodle.ts (+2 -1)
📝 packages/shared/src/utils/image-prompt-compiler.ts (+72 -8)
➕ scripts/regressions/image-prompt-guidance.regression.ts (+281 -0)
📝 scripts/regressions/prompt.regression.ts (+143 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7357

Package side: Noodle 1.5.3 for Pasta-Devs/Marinara-Agents#1282. Follows Pasta-Devs/Marinara-Engine#7342 and Pasta-Devs/Marinara-Engine#7352 (#7318).

Why this change

  • The #7318 reporter retested on staging with a new ComfyUI connection (default workflow), Noodle 1.5.2 and the Illustrator:
    • the image connection's Image Prompting Instructions (for example "write everything in capital letters") had no visible effect;
    • the style profile's Style text still showed as plain text in the Illustrator's Image Prompt Review;
    • Noodle's Include descriptions was pasted into the prompt.
  • Mari's rule from #7318: fields written as instructions are handled by the AI that writes the image prompt. They are never pasted into the provider prompt word for word, and never silently dropped. Literal fields (quality tags, prompt prefix, LoRA triggers, Image Appearance Override) stay literal.
  • What actually went wrong in the Engine:
    • The Illustrator's style block told the writer to "carry the visual treatment into the JSON style field". The Engine then prepends the writer's style to the image prompt. So a writer that echoed the Style text (for example the Danbooru profile's "Danbooru-tagged anime generation for SDXL, Illustrious, Pony, NovelAI, and similar checkpoints.") put it back into the prompt word for word. #7342's omitProfileStyleText only stopped the Engine itself from adding it.
    • The manual Illustration button and /illustrate gave the writer the instructions in the system prompt, above the character cards and the whole chat. The automatic Illustrator call puts them in the final user message, next to the request.
    • The Illustrator's scene background writer never got the instructions.
    • Selfie writers dropped Style text that a user wrote into Auto or a copy of it, because resolveImageStyleGuidanceText ignored every profile based on Auto. Selfie prompts are compiled with omitProfileStyleText, so that text went nowhere.
    • Noodle's part (the rewrite never running without an Agents default connection, Include descriptions sitting in the prompt the rewrite edits, and Style text written into Auto or a copy of it never reaching the rewrite as guidance) is package-owned and is fixed in Noodle 1.5.3, Pasta-Devs/Marinara-Agents#1282.

What changed

  • packages/shared/src/utils/image-prompt-compiler.ts:

    • new removeCopiedPromptGuidance(text, guidance) removes each sentence of guidance that a writer copied word for word, ignoring case and punctuation. It compares word tokens, with no regex built from settings text.
      • Only guidance written as a sentence counts: it ends with ., ! or ? and has at least four words between commas. Tag lists and tag phrases such as "masterpiece, best quality" or "cold lighting with deep shadows" are never removed.
      • A writer text that is nothing but copied guidance comes back unchanged, so the image keeps a subject.
      • A ponytail: note records that shorter or unpunctuated instructions are kept even when copied.
    • resolveImageStyleGuidanceText now leaves out only the unedited built-in Auto sentence.
    • compileImagePrompt itself is unchanged.
  • The writer's own output is cleaned before any configured text (positive tags, appearance notes, reference lines) is added, so literal fields stay literal:

    • generate.routes.ts and generate/retry-agents-route.ts (Illustrator, also Image Prompt Review): the writer's prompt and style, against the style instruction it got and the image connection's Image Prompting Instructions;
    • conversation-selfie-command-runtime.ts and gallery.routes.ts (selfies): the writer's prompt, against the style guidance, the connection's instructions and the card's conversation image instructions;
    • illustrator-background-generation.ts: the background writer's scene prompt.
  • agent-executor.ts, illustrator-manual-prompt-generation.ts, illustrator-background-generation.ts: the style instructions now say to express the style in image-model words and never copy the instruction's sentences. Model-facing text only.

  • illustrator-manual-prompt-generation.ts: the <image_prompting_instructions> block moves from the system prompt into the final request message, like the automatic Illustrator call.

  • illustrator-background-generation.ts: the background writer gets the image connection's instructions.

  • prompt-overrides/registry/noodle.ts: the Engine's copy of noodle.imagePost matches Noodle 1.5.3. The characterDescription variable now says the rewrite model gets the notes as context. Diffed identical from NOODLE_IMAGE_POST down.

  • Docs: docs/media/style-profiles.md says in one sentence where Style text goes. docs/noodle/settings.md adds Interpret image prompts and says what it and Include descriptions do.

  • CHANGELOG.md: one [Unreleased] entry.

  • scripts/regressions/prompt.regression.ts: new case "Image prompt writers follow Style text and Image Prompting Instructions without pasting them (#7357)". It covers:

    • a writer that echoes the Danbooru Style sentence and the instructions;
    • a configured positive prompt that repeats an instruction and stays;
    • tag lists kept, and Style text still added when there is no writer;
    • Auto-copy Style text as selfie guidance;
    • instructions in the manual request message and in the background writer's prompt;
    • a sentence wrapped over two lines;
    • source checks that both Illustrator routes, both selfie paths and the background writer clean the writer's own output before configured text is added.

    It fails against staging's code.

Every image-prompt path (audit for #7357)

Path Who writes the prompt Image Prompting Instructions Style text
Roleplay/Game automatic Illustrator, custom image agents Illustrator agent (Engine executor, package prompt template) final user message (unchanged); copies removed (new) <illustrator_image_style> block; copies removed (new). Game with a campaign art style uses that instead (unchanged, by design)
Illustration button, /illustrate, retries, Image Prompt Review Illustrator writer now next to the request; copies removed system prompt; copies removed
Illustrator scene backgrounds background writer now given; copies removed given; copies removed
Conversation /selfie, gallery selfie selfie writer given (unchanged); copies removed given; Auto-copy text now given
Avatars, character sheets, sprites, NPC portraits, Professor Mari images no writer not used (tooltip says selfies and Illustrator) added as written where the profile adds it, never the built-in Auto sentence (#7318 rule, unchanged)
Game scenes, storyboards, Game assets scene/storyboard writers not used (tooltip says selfies and Illustrator) campaign art style / profile, unchanged
Noodle (package) rewrite model when Interpret image prompts is on given; Noodle 1.5.3 adds its own text connection as fallback and removes copies given; Auto-copy text now given; copies removed. With the rewrite off, added as written (docs say so)

Card appearance stays literal where it is documented as such (Attach Card Appearance, Image Appearance Override); Personality and image habits only reach writers.

Not changed here (needs a maintainer decision)

  • Game's Scene image instructions are still added as User image instructions: …, as docs/game/storyboard.md documents ("Required image instructions still apply").
  • The image connection's Image Prompting Instructions are still not given to Game's scene, storyboard and prompt-director writers. The connection tooltip limits them to selfies and Illustrator.
  • No writer: a profile's Style text is still added as written (#7318's rule, encoded in its regression).

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify with a ComfyUI connection whose Image Prompting Instructions say "write everything in capital letters", the Danbooru style profile and Expose media prompts before sending on: press Illustration in a Roleplay chat and check that the review prompt is in capital letters and doesn't contain "Danbooru-tagged anime generation".
  • Manually verify the same with an automatic Illustrator run by checking the prompt in the ComfyUI queue.
  • Manually verify that Gallery → Background with the same connection gives a background prompt that follows the instructions and has no Style text sentence.
  • Manually verify that a Conversation /selfie with a copy of Auto whose Style text is "watercolor" comes out in a watercolor style (the debug log [debug/commands/selfie] prompt-builder system shows the style guidance).
  • Manually verify that a profile whose Style text is a tag list ("masterpiece, best quality") keeps those tags when the writer uses them.
  • Manually verify that an avatar generated with the Anime profile still shows that profile's Style text in the review (no writer, unchanged).
  • Manually verify Settings → Generations → Prompt Overrides → Image Generation Prompt Overrides → Noodle Post Image shows the new characterDescription note.

Agent-run checks: pnpm check (through the shared slot limiter) passes. pnpm regression:prompt passes. Targeted regressions all pass: noodle/prompt, illustrator-disconnect, illustrator-manual-cadence, illustrator-reference-scope, illustrator-visual-retry, illustrator-message-range, illustrator-character-prompts, roleplay-commands, novelai-character-caption-cap, issue-sweep-5380-5434, open-issues, assigned-issue-sweep, assigned-chat-sweep, agent-runtime, capability-agent-runtime, manual-agent-retry-resolution, avatar-lead-prompt, sprite-background, lorebook-image-prompt. The new #7357 case was run against the original code with the new helper stubbed out. It fails there on the echoed Style sentence, and it was the only failure. No browser or live image generation was run.

Local CodeRabbit (coderabbit review --agent --committed, 4 findings), all handled in 659185520:

  • Two findings, one issue: cleaning inside compileImagePrompt could also remove a configured positive prompt that repeats an instruction sentence. Fixed: the cleanup moved to the writer's own output at each call site, before configured text is added. The regression now covers that case.
  • The CHANGELOG entry was too long. Split into two short entries.
  • The docs sentence in style-profiles.md was too long. Split.

CodeQL flagged the comma cleanup in removeCopiedPromptGuidance as a polynomial regular expression on long runs of whitespace. Fixed in 537c2f3bd: each line is now split on commas, trimmed and joined without empty parts. CodeQL is clean on the new head.

GitHub CodeRabbit raised four threads, all fixed and resolved. Fixed in 901e2784f:

  • Keep a subject when the writer returned only guidance.
  • Replace the regex built from guidance words with a token comparison: a 12,000-word text against a 1,000-word guidance sentence takes about 30 ms.

That commit also counts only guidance written as a sentence, following the same review on the Noodle copy. Fixed in b4aab7ea1:

  • Keep a sentence wrapped over two lines whole.
  • Check the call sites, not only the helper.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

docs/media/style-profiles.md and docs/noodle/settings.md changed; the [docs-i18n] follow-up is #7359. CHANGELOG is updated.

UI evidence (if applicable)

No layout change. Image Prompt Review shows prompts without copied Style text or instructions.

Summary by CodeRabbit

  • Bug Fixes
    • Image-generation prompts now follow style and image instructions without copying full instruction sentences into finished prompts. This applies to illustrations, scene backgrounds, and selfies.
    • Scene backgrounds now receive image-connection instructions, and selfies use Auto-profile style guidance.
  • Documentation
    • Clarified how Style text, Interpret image prompts, and Include descriptions affect image generation, including that prompt interpretation is on by default.
    • Updated Noodle Post Image guidance to explain how appearance notes inform Noodle’s prompt-rewriting AI, consistent with Noodle 1.5.3.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7360 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/9/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/7357-image-prompt-instructions` --- ### 📝 Commits (9) - [`1da362e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1da362ee6266a18618d27b02a5967c355e00a00d) fix(images): image prompt writers follow Style text and instructions without pasting them (#7357) - [`eba18f3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eba18f393dbad915801350dd67000811c47db23e) Move the CHANGELOG entry away from other open PRs - [`6591855`](https://github.com/Pasta-Devs/Marinara-Engine/commit/659185520ed34bbcfdf3a9e4cfd85f7932f5f0f8) fix(images): clean only the prompt writer's own output (#7357) - [`537c2f3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/537c2f3bd98ca1d412e8ef2312a3e70c763cffc9) fix(images): tidy removed guidance without a slow regex (#7357) - [`901e278`](https://github.com/Pasta-Devs/Marinara-Engine/commit/901e2784f0848a9585ce4f96ca514d8c3b0a5977) fix(images): find copied guidance by words, keep tag phrases and a subject (#7357) - [`b4aab7e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4aab7ea1c63ed341a2dce197cf3034bd8372236) fix(images): keep wrapped guidance sentences whole; check every writer path (#7357) - [`03af05e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03af05ec7e81a93731cc679fbbb9de6a6e6f1359) fix(images): drop an Illustrator style that only repeats the Style text (#7357) - [`e0eee6c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e0eee6c9af04819b45c1922618828d7a3fac7314) docs(noodle): say Style text is still added with Interpret image prompts off (#7357) - [`204150d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/204150dcf24c276f0dfee837c0593f828218cae4) docs(changelog): copied short phrases and tag lists stay (#7357) ### 📊 Changes **15 files changed** (+597 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/media/style-profiles.md` (+1 -1) 📝 `docs/noodle/settings.md` (+3 -1) 📝 `packages/server/src/routes/gallery.routes.ts` (+7 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+15 -3) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+15 -4) 📝 `packages/server/src/services/agents/agent-executor.ts` (+1 -1) 📝 `packages/server/src/services/generation/conversation-selfie-command-runtime.ts` (+19 -2) 📝 `packages/server/src/services/generation/illustrator-background-generation.ts` (+22 -10) 📝 `packages/server/src/services/generation/illustrator-manual-prompt-generation.ts` (+13 -10) 📝 `packages/server/src/services/image/image-prompt-compiler.ts` (+1 -0) 📝 `packages/server/src/services/prompt-overrides/registry/noodle.ts` (+2 -1) 📝 `packages/shared/src/utils/image-prompt-compiler.ts` (+72 -8) ➕ `scripts/regressions/image-prompt-guidance.regression.ts` (+281 -0) 📝 `scripts/regressions/prompt.regression.ts` (+143 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7357 Package side: Noodle 1.5.3 for Pasta-Devs/Marinara-Agents#1282. Follows Pasta-Devs/Marinara-Engine#7342 and Pasta-Devs/Marinara-Engine#7352 (#7318). ## Why this change - The #7318 reporter retested on staging with a new ComfyUI connection (default workflow), Noodle 1.5.2 and the Illustrator: - the image connection's **Image Prompting Instructions** (for example "write everything in capital letters") had no visible effect; - the style profile's **Style text** still showed as plain text in the Illustrator's **Image Prompt Review**; - Noodle's **Include descriptions** was pasted into the prompt. - Mari's rule from #7318: fields written as instructions are handled by the AI that writes the image prompt. They are never pasted into the provider prompt word for word, and never silently dropped. Literal fields (quality tags, prompt prefix, LoRA triggers, **Image Appearance Override**) stay literal. - What actually went wrong in the Engine: - The Illustrator's style block told the writer to "carry the visual treatment into the JSON `style` field". The Engine then prepends the writer's `style` to the image prompt. So a writer that echoed the Style text (for example the Danbooru profile's "Danbooru-tagged anime generation for SDXL, Illustrious, Pony, NovelAI, and similar checkpoints.") put it back into the prompt word for word. #7342's `omitProfileStyleText` only stopped the Engine itself from adding it. - The manual **Illustration** button and `/illustrate` gave the writer the instructions in the system prompt, above the character cards and the whole chat. The automatic Illustrator call puts them in the final user message, next to the request. - The Illustrator's scene background writer never got the instructions. - Selfie writers dropped Style text that a user wrote into **Auto** or a copy of it, because `resolveImageStyleGuidanceText` ignored every profile based on Auto. Selfie prompts are compiled with `omitProfileStyleText`, so that text went nowhere. - Noodle's part (the rewrite never running without an Agents default connection, Include descriptions sitting in the prompt the rewrite edits, and Style text written into Auto or a copy of it never reaching the rewrite as guidance) is package-owned and is fixed in Noodle 1.5.3, Pasta-Devs/Marinara-Agents#1282. ## What changed - `packages/shared/src/utils/image-prompt-compiler.ts`: - new `removeCopiedPromptGuidance(text, guidance)` removes each sentence of guidance that a writer copied word for word, ignoring case and punctuation. It compares word tokens, with no regex built from settings text. - Only guidance written as a sentence counts: it ends with `.`, `!` or `?` and has at least four words between commas. Tag lists and tag phrases such as "masterpiece, best quality" or "cold lighting with deep shadows" are never removed. - A writer text that is nothing but copied guidance comes back unchanged, so the image keeps a subject. - A `ponytail:` note records that shorter or unpunctuated instructions are kept even when copied. - `resolveImageStyleGuidanceText` now leaves out only the unedited built-in Auto sentence. - `compileImagePrompt` itself is unchanged. - The writer's own output is cleaned before any configured text (positive tags, appearance notes, reference lines) is added, so literal fields stay literal: - `generate.routes.ts` and `generate/retry-agents-route.ts` (Illustrator, also Image Prompt Review): the writer's `prompt` and `style`, against the style instruction it got and the image connection's **Image Prompting Instructions**; - `conversation-selfie-command-runtime.ts` and `gallery.routes.ts` (selfies): the writer's prompt, against the style guidance, the connection's instructions and the card's conversation image instructions; - `illustrator-background-generation.ts`: the background writer's scene prompt. - `agent-executor.ts`, `illustrator-manual-prompt-generation.ts`, `illustrator-background-generation.ts`: the style instructions now say to express the style in image-model words and never copy the instruction's sentences. Model-facing text only. - `illustrator-manual-prompt-generation.ts`: the `<image_prompting_instructions>` block moves from the system prompt into the final request message, like the automatic Illustrator call. - `illustrator-background-generation.ts`: the background writer gets the image connection's instructions. - `prompt-overrides/registry/noodle.ts`: the Engine's copy of `noodle.imagePost` matches Noodle 1.5.3. The `characterDescription` variable now says the rewrite model gets the notes as context. Diffed identical from `NOODLE_IMAGE_POST` down. - Docs: `docs/media/style-profiles.md` says in one sentence where Style text goes. `docs/noodle/settings.md` adds **Interpret image prompts** and says what it and **Include descriptions** do. - `CHANGELOG.md`: one `[Unreleased]` entry. - `scripts/regressions/prompt.regression.ts`: new case "Image prompt writers follow Style text and Image Prompting Instructions without pasting them (#7357)". It covers: - a writer that echoes the Danbooru Style sentence and the instructions; - a configured positive prompt that repeats an instruction and stays; - tag lists kept, and Style text still added when there is no writer; - Auto-copy Style text as selfie guidance; - instructions in the manual request message and in the background writer's prompt; - a sentence wrapped over two lines; - source checks that both Illustrator routes, both selfie paths and the background writer clean the writer's own output before configured text is added. It fails against staging's code. ### Every image-prompt path (audit for #7357) | Path | Who writes the prompt | Image Prompting Instructions | Style text | | --- | --- | --- | --- | | Roleplay/Game automatic Illustrator, custom image agents | Illustrator agent (Engine executor, package prompt template) | final user message (unchanged); copies removed (new) | `<illustrator_image_style>` block; copies removed (new). Game with a campaign art style uses that instead (unchanged, by design) | | **Illustration** button, `/illustrate`, retries, **Image Prompt Review** | Illustrator writer | now next to the request; copies removed | system prompt; copies removed | | Illustrator scene backgrounds | background writer | **now given**; copies removed | given; copies removed | | Conversation `/selfie`, gallery selfie | selfie writer | given (unchanged); copies removed | given; Auto-copy text **now given** | | Avatars, character sheets, sprites, NPC portraits, Professor Mari images | no writer | not used (tooltip says selfies and Illustrator) | added as written where the profile adds it, never the built-in Auto sentence (#7318 rule, unchanged) | | Game scenes, storyboards, Game assets | scene/storyboard writers | not used (tooltip says selfies and Illustrator) | campaign art style / profile, unchanged | | Noodle (package) | rewrite model when **Interpret image prompts** is on | given; Noodle 1.5.3 adds its own text connection as fallback and removes copies | given; Auto-copy text **now given**; copies removed. With the rewrite off, added as written (docs say so) | Card appearance stays literal where it is documented as such (**Attach Card Appearance**, **Image Appearance Override**); Personality and image habits only reach writers. ### Not changed here (needs a maintainer decision) - Game's **Scene image instructions** are still added as `User image instructions: …`, as `docs/game/storyboard.md` documents ("Required image instructions still apply"). - The image connection's Image Prompting Instructions are still not given to Game's scene, storyboard and prompt-director writers. The connection tooltip limits them to selfies and Illustrator. - No writer: a profile's Style text is still added as written (#7318's rule, encoded in its regression). ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify with a ComfyUI connection whose **Image Prompting Instructions** say "write everything in capital letters", the **Danbooru** style profile and **Expose media prompts before sending** on: press **Illustration** in a Roleplay chat and check that the review prompt is in capital letters and doesn't contain "Danbooru-tagged anime generation". - Manually verify the same with an automatic Illustrator run by checking the prompt in the ComfyUI queue. - Manually verify that **Gallery → Background** with the same connection gives a background prompt that follows the instructions and has no Style text sentence. - Manually verify that a Conversation `/selfie` with a copy of **Auto** whose Style text is "watercolor" comes out in a watercolor style (the debug log `[debug/commands/selfie] prompt-builder system` shows the style guidance). - Manually verify that a profile whose Style text is a tag list ("masterpiece, best quality") keeps those tags when the writer uses them. - Manually verify that an avatar generated with the Anime profile still shows that profile's Style text in the review (no writer, unchanged). - Manually verify **Settings → Generations → Prompt Overrides → Image Generation Prompt Overrides → Noodle Post Image** shows the new `characterDescription` note. Agent-run checks: `pnpm check` (through the shared slot limiter) passes. `pnpm regression:prompt` passes. Targeted regressions all pass: `noodle/prompt`, `illustrator-disconnect`, `illustrator-manual-cadence`, `illustrator-reference-scope`, `illustrator-visual-retry`, `illustrator-message-range`, `illustrator-character-prompts`, `roleplay-commands`, `novelai-character-caption-cap`, `issue-sweep-5380-5434`, `open-issues`, `assigned-issue-sweep`, `assigned-chat-sweep`, `agent-runtime`, `capability-agent-runtime`, `manual-agent-retry-resolution`, `avatar-lead-prompt`, `sprite-background`, `lorebook-image-prompt`. The new #7357 case was run against the original code with the new helper stubbed out. It fails there on the echoed Style sentence, and it was the only failure. No browser or live image generation was run. Local CodeRabbit (`coderabbit review --agent --committed`, 4 findings), all handled in 659185520: - Two findings, one issue: cleaning inside `compileImagePrompt` could also remove a configured positive prompt that repeats an instruction sentence. Fixed: the cleanup moved to the writer's own output at each call site, before configured text is added. The regression now covers that case. - The CHANGELOG entry was too long. Split into two short entries. - The docs sentence in `style-profiles.md` was too long. Split. CodeQL flagged the comma cleanup in `removeCopiedPromptGuidance` as a polynomial regular expression on long runs of whitespace. Fixed in 537c2f3bd: each line is now split on commas, trimmed and joined without empty parts. CodeQL is clean on the new head. GitHub CodeRabbit raised four threads, all fixed and resolved. Fixed in 901e2784f: - Keep a subject when the writer returned only guidance. - Replace the regex built from guidance words with a token comparison: a 12,000-word text against a 1,000-word guidance sentence takes about 30 ms. That commit also counts only guidance written as a sentence, following the same review on the Noodle copy. Fixed in b4aab7ea1: - Keep a sentence wrapped over two lines whole. - Check the call sites, not only the helper. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) `docs/media/style-profiles.md` and `docs/noodle/settings.md` changed; the `[docs-i18n]` follow-up is #7359. CHANGELOG is updated. ## UI evidence (if applicable) No layout change. Image Prompt Review shows prompts without copied Style text or instructions. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Image-generation prompts now follow style and image instructions without copying full instruction sentences into finished prompts. This applies to illustrations, scene backgrounds, and selfies. * Scene backgrounds now receive image-connection instructions, and selfies use Auto-profile style guidance. * **Documentation** * Clarified how Style text, **Interpret image prompts**, and **Include descriptions** affect image generation, including that prompt interpretation is on by default. * Updated Noodle Post Image guidance to explain how appearance notes inform Noodle’s prompt-rewriting AI, consistent with Noodle 1.5.3. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:06:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7697
No description provided.