mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1283] [MERGED] fix(noodle): 1.5.3 — image settings reach the rewrite model, not the image prompt #1383
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1383
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-Agents/pull/1283
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/1282-noodle-image-prompt-guidance📝 Commits (9)
9ed1cf2fix(noodle): 1.5.3 — image settings reach the rewrite model, not the image prompt (#1282)85ecc6cdocs(noodle): note the four-word ceiling of removeCopiedPromptGuidance (#1282)88197effix(noodle): tidy removed guidance without a slow regex (#1282)77457c4Merge remote-tracking branch 'origin/staging' into fix/1282-noodle-image-prompt-guidance0c083bffix(noodle): find copied guidance by words, keep tag phrases (#1282)a19689afix(noodle): a wrapped guidance sentence stays one sentence (#1282)da3e189fix(noodle): Style text written into Auto guides the rewrite too (#1282)fae3627docs(noodle): the 1.5.3 note says short copied phrases stay (#1282)c57e643fix(noodle): a rewrite that only copies guidance falls back to the base prompt (#1282)📊 Changes
18 files changed (+479 additions, -221 deletions)
View changed files
➕
artifacts/noodle-1.5.3.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -0)📝
packages/noodle/CHANGELOG.md(+8 -0)📝
packages/noodle/client.js(+1 -1)📝
packages/noodle/manifest.json(+5 -5)📝
packages/noodle/server.mjs(+160 -156)📝
packages/noodle/src/engine/packages/client/src/localization/locales/en.json(+2 -2)📝
packages/noodle/src/engine/packages/server/src/services/noodle/noodle-image-prompt-rewrite.ts(+24 -4)📝
packages/noodle/src/engine/packages/server/src/services/noodle/noodle-image-prompt.ts(+83 -9)📝
packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-images.service.ts(+28 -14)📝
packages/noodle/src/engine/packages/server/src/services/prompt-overrides/registry/noodle.ts(+2 -1)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/noodle-image-prompt-instructions.regression.ts(+123 -4)📄 Description
Pull request
Linked issue
Closes #1282
Reported in Pasta-Devs/Marinara-Engine#7357, the retest of Pasta-Devs/Marinara-Engine#7318 after Noodle 1.5.2 (Pasta-Devs/Marinara-Agents#1279). The Engine side, including the Engine's copy of the
noodle.imagePostdefinition, is Pasta-Devs/Marinara-Engine#7360.Why this change
rewriteNoodleImagePromptonly looked for a text model in the Engine's Agents default connection and the Agents fallback. With neither set it returned nothing. Noodle then sent the base prompt: the instructions were dropped (a server log line only) and the profile's Style text was pasted, which matches everything the reporter saw. Noodle's own text connection was never tried.resolveImageStyleGuidanceTextdrops any Style text on an Auto-based profile, so that text sat in the prompt the rewrite edits.What changed
noodle1.5.2 → 1.5.3, above every version the staging catalog has published (highest: 1.5.2).noodle/noodle-image-prompt-rewrite.ts: without an Agents default, Noodle's own text connection (generationConnectionId) does the rewrite; an Agents default still wins, and the Agents fallback stays last. When no connection is available, a warning says so. Sentences of the instructions, the Style text or the card's image habits that the model copied word for word are removed from its answer. The system prompt now names the art-style guidance as guidance too.noodle/noodle-image-prompt.ts:compileNoodleImagePromptstakes an optional source for the prompt the rewrite edits.removeCopiedPromptGuidancecompares word tokens; no regex is built from settings text, and leftover commas are tidied by splitting..,!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.allowEmptyoption), because the vendored shared dist is frozen. Aponytail:comment says to keep the two in step.noodle/noodle-public-images.service.ts:noodle.imagePosttemplate is rendered a second time without the appearance notes, for the prompt the model edits. The notes still reach it as character context.prompt-overrides/registry/noodle.ts: thecharacterDescriptionvariable says the rewrite model gets the notes as context. The Engine mirror is updated identically in Pasta-Devs/Marinara-Engine#7360.Client
en.json: one plain sentence each.tests/noodle-image-prompt-instructions.regression.ts(already in the PR checks) now also covers:rewriteNoodleImagePrompt, sliced from source with its storage and model stubbed);It fails against staging's code: the prompt given to the rewrite model still contains "Dottore's Appearance".
Rebuilt
packages/noodle/{manifest.json,server.mjs,client.js},artifacts/noodle-1.5.3.zip, the catalog entries and the release notes (packages/noodle/CHANGELOG.md, marked[highlight]).MARINARA_ENGINE_ROOTat Engineead04150a, in a detached worktree installed withpnpm install --frozen-lockfilefrom the shared store. Rebuilding the unchanged package there reproduces the committed 1.5.2 artifact byte for byte (sha2567fa52d29…0975ec3d,git statusclean).staging(Long-Term Memory 1.4.21):git statusstays clean on rebuild. Artifact sha2564982b0f479d8c9fe9fd2beb06422310b69c3cd54c9822b4f1560f98166560213.Package and security impact
noodle(1.5.2 → 1.5.3)>=2.4.6 <4.0.0, capability API 1.35 unchanged)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
npm run checkpasses. So donode scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs,git diff --check,node scripts/validate-pr-triage.mjsandnode scripts/typecheck-packages.mjs noodle. The extendedtests/noodle-image-prompt-instructions.regression.tspasses; against staging's service code it fails on the appearance notes. All 317 Noodle, NoodleR and Slurp regressions were run one by one on this branch and on a pristineorigin/stagingworktree. The same 54 fail on both. No live install or image generation was run.Reviews:
ponytail:note.0c083bf8and resolved:a19689af.Still needed from a human:
<art_style_guidance>, not inside<original_image_prompt>.Documentation impact
packages/noodle/CHANGELOG.mdhas the 1.5.3 entry. The Engine'sdocs/noodle/settings.mdnow describes Interpret image prompts and Include descriptions in Pasta-Devs/Marinara-Engine#7360. The README does not describe how image prompts are assembled.UI evidence (if applicable)
Help-text change only (Settings → Timeline → Image generation): Interpret image prompts and Include descriptions.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.