[PR #1341] [MERGED] fix(slurp2): 0.3.29 — say why the image prompt rewrite gave nothing #1411

Closed
opened 2026-10-21 05:11:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1341
Author: @Gunterlie
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/slurp2-image-rewrite-reason


📝 Commits (2)

  • 86cf843 fix(slurp2): 0.3.29 — say why the image prompt rewrite gave nothing
  • aa21cfd fix(slurp2): keep the 0.3.29 splash note in-universe

📊 Changes

19 files changed (+580 additions, -498 deletions)

View changed files

➕ artifacts/slurp2-0.3.29.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/client.js (+54 -54)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+362 -370)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+8 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt-rewrite.ts (+53 -20)
📝 packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt.ts (+5 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/ads/slp-garnish-image-service.ts (+5 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-images-service.ts (+5 -0)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-public-images-service.ts (+9 -4)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/slurp2-image-prompt-boundaries.regression.ts (+27 -0)

📄 Description

Pull request

Linked issue

Closes #1340

Why this change

  • A player keeps getting [slurp] Image prompt rewrite unusable (the rewrite did not run or returned nothing (check the agent text connection)); sending the capped draft and cannot tell what failed. Seven different causes all produced that one message.

What changed

  • rewriteSlpImagePrompt takes an onFailure(reason) callback and reports the concrete cause: empty answer, answer cut off at the token limit, invalid JSON, JSON without a prompt field (with its keys), no text connection, or a failed request. Answer-based reasons quote up to 160 characters of the answer and name the model.
  • selectSlpImageProviderPrompt takes rewriteFailure and uses it in place of the generic text. All three callers (post images, public images, garnish ads) pass it. A rewrite rejected for breaking the scene's content level now says so instead of "returned nothing".
  • Which prompts are accepted does not change.
  • slurp2 0.3.28 → 0.3.29 (patch): CHANGELOG, splash release entry, rebuilt client.js, server.mjs, artifact and catalog entries.
  • Regression: tests/slurp2-image-prompt-boundaries.regression.ts asserts the callers wire onFailure/rewriteFailure and that selectSlpImageProviderPrompt reports the given reason.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. The warning quotes part of the model's image-prompt answer into the server log; that text is already shown in the Creator-private Deep details.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Agent ran: npm run check, test-catalog-lanes, validate-package-locales, validate-catalog, catalog-release-notes, typecheck-packages slurp2, and the regressions slurp2-image-prompt-boundaries, slurp-image-prompt-wiring, slurp2-release-notes, slurp2-architecture, slurp2-fix1-image-pipeline, slurp2-perspective — all pass.
  • Built with MARINARA_ENGINE_ROOT on an Engine staging worktree.
  • Not done: no live sideload; the new log text has not been seen on a running Engine.

Documentation impact

  • No documentation changes needed

Summary by CodeRabbit

  • New Features
    • Slurp 0.3.29 provides more specific warnings when image-prompt rewriting fails, such as empty or invalid responses, request failures, missing text connections, or content-level mismatches.
    • When a rewritten prompt can’t be used, the fallback message now explains the failure when that information is available.

🔄 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-Agents/pull/1341 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp2-image-rewrite-reason` --- ### 📝 Commits (2) - [`86cf843`](https://github.com/Pasta-Devs/Marinara-Agents/commit/86cf843535d08e0c03d029920c29c659594756d3) fix(slurp2): 0.3.29 — say why the image prompt rewrite gave nothing - [`aa21cfd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aa21cfd139db096317136bcc9f84f705bfa5458e) fix(slurp2): keep the 0.3.29 splash note in-universe ### 📊 Changes **19 files changed** (+580 additions, -498 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.29.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/client.js` (+54 -54) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+362 -370) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+8 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt-rewrite.ts` (+53 -20) 📝 `packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt.ts` (+5 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/ads/slp-garnish-image-service.ts` (+5 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-images-service.ts` (+5 -0) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-public-images-service.ts` (+9 -4) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/slurp2-image-prompt-boundaries.regression.ts` (+27 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #1340 ## Why this change - A player keeps getting `[slurp] Image prompt rewrite unusable (the rewrite did not run or returned nothing (check the agent text connection)); sending the capped draft` and cannot tell what failed. Seven different causes all produced that one message. ## What changed - `rewriteSlpImagePrompt` takes an `onFailure(reason)` callback and reports the concrete cause: empty answer, answer cut off at the token limit, invalid JSON, JSON without a `prompt` field (with its keys), no text connection, or a failed request. Answer-based reasons quote up to 160 characters of the answer and name the model. - `selectSlpImageProviderPrompt` takes `rewriteFailure` and uses it in place of the generic text. All three callers (post images, public images, garnish ads) pass it. A rewrite rejected for breaking the scene's content level now says so instead of "returned nothing". - Which prompts are accepted does not change. - slurp2 0.3.28 → 0.3.29 (patch): CHANGELOG, splash release entry, rebuilt `client.js`, `server.mjs`, artifact and catalog entries. - Regression: `tests/slurp2-image-prompt-boundaries.regression.ts` asserts the callers wire `onFailure`/`rewriteFailure` and that `selectSlpImageProviderPrompt` reports the given reason. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. The warning quotes part of the model's image-prompt answer into the server log; that text is already shown in the Creator-private Deep details. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Agent ran: `npm run check`, `test-catalog-lanes`, `validate-package-locales`, `validate-catalog`, `catalog-release-notes`, `typecheck-packages slurp2`, and the regressions `slurp2-image-prompt-boundaries`, `slurp-image-prompt-wiring`, `slurp2-release-notes`, `slurp2-architecture`, `slurp2-fix1-image-pipeline`, `slurp2-perspective` — all pass. - Built with `MARINARA_ENGINE_ROOT` on an Engine `staging` worktree. - Not done: no live sideload; the new log text has not been seen on a running Engine. ## Documentation impact - [x] No documentation changes needed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Slurp 0.3.29 provides more specific warnings when image-prompt rewriting fails, such as empty or invalid responses, request failures, missing text connections, or content-level mismatches. * When a rewritten prompt can’t be used, the fallback message now explains the failure when that information is available. <!-- 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-21 05:11:00 +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-Agents#1411
No description provided.