mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1325] [MERGED] fix(slurp2): accept usable image prompt rewrites, treat a budget skip as off (0.3.25) #1400
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#1400
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/1325
Author: @Gunterlie
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @Gunterlie
Base:
staging← Head:fenced-json-prompt-parse📝 Commits (4)
d1035e3fix(slurp2): accept usable image prompt rewrites, treat a budget skip as offef4c589chore(slurp2): rebuild 0.3.25023d659fix(slurp2): guard the rewrite parser call and keep the splash note in-universebcb07b2chore(slurp2): rebuild 0.3.25📊 Changes
19 files changed (+377 additions, -337 deletions)
View changed files
➕
artifacts/slurp2-0.3.25.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(+5 -0)📝
packages/slurp2/client.js(+1 -1)📝
packages/slurp2/manifest.json(+5 -5)📝
packages/slurp2/server.mjs(+276 -276)📝
packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts(+9 -1)📝
packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt-rewrite.ts(+13 -8)📝
packages/slurp2/src/engine/packages/server/src/slp/features/ads/slp-garnish-image-service.ts(+4 -1)📝
packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-images-service.ts(+4 -1)📝
packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-public-images-service.ts(+4 -1)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/slurp-onboarding-failure-reasons.regression.ts(+1 -0)📝
tests/slurp2-image-prompt-boundaries.regression.ts(+12 -0)📄 Description
Linked issue
Closes #1324
Why this change
A player reports
[slurp] Image prompt rewrite unusable (...)again and again in the Engine log, while the model answer looks valid apart from its```jsonfence. The fence was already removed correctly. Two other faults cause the warning:JSON.parse. A line break inside the prompt text, a trailing comma, or text around the object made a usable answer count as "no prompt".What changed
slurp20.3.24 → 0.3.25 (patch).server/src/slp/base/media/slp-image-prompt-rewrite.ts:parseRecorduses Engine'sparseGameJsonish, as every other Slurp model call does. An answer thatjsonishLooksTruncatedreports as cut off still falls back, so half a prompt is never sent.onBudgetSkipcallback, called when the budget refuses the call.slp-images-service.ts,slp-public-images-service.ts,slp-garnish-image-service.ts: on a budget skip the rewrite no longer counts as attempted. The picture gets the full draft, as with enhancing switched off, and Deep details keeps the rewrite statusskipped.client.js,server.mjs,manifest.json,artifacts/slurp2-0.3.25.zip, catalogs.Not covered: an unescaped quotation mark inside the prompt text still fails to parse. The reporter also mentions other log errors; no log lines are available yet. No Slurp release since 2026-09-28 changed a prompt output schema.
Note: draft PR #1321 also uses 0.3.25. It must move to 0.3.26 after this merge.
Package and security impact
slurp2engine.min2.4.6 unchanged; both Engine helpers exist since Engine 2.0.0)Validation
Agent-run checks (boxes left for human verification):
tests/slurp2-image-prompt-boundaries.regression.tshas new assertions: the rewrite usesparseGameJsonishand noJSON.parse, and all three callers clearrewriteAttemptedon a budget skip. These are source assertions; the rewrite module imports Engine code that the test tree cannot load.Probe against Engine's real
jsonish.ts(not kept in the repo): the old parser failed on a line break in the prompt, a trailing comma, and text around the fenced object; the new logic accepts all three and rejects a cut answer.Pass:
slurp-image-prompt-wiring,slurp-image-brief,slurp2-architectureregressions,node scripts/typecheck-packages.mjs slurp2,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs, Prettier on the changed files,git diff --check.Build:
node scripts/build-feature-packages.mjs slurp2. The Engine checkout used for dependencies was onfix/capability-agent-registry-uninstall(079c0ab00) with two unrelated dirty files, not a cleanstaging.Not done: ESLint and the full Slurp regression suite (the worktree has no
node_modules; CI runs both), no install on an Engine, no picture generated with the budget off, no independent review.node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyRebuilt 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.mdDocumentation impact
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.