mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #391] [MERGED] fix(slurp): name the reason when creator setup fails #948
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#948
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/391
Author: @Gunterlie
Created: 8/16/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @Gunterlie
Base:
staging← Head:cold-start-slurp📝 Commits (4)
dd7e8a0fix(slurp): name the reason when creator setup fails91d416cfix(slurp): name the empty model answer at every parse sitee9e22e4build(slurp): release 1.0.51df40ebfix(slurp): tie each setup reason to its creator📊 Changes
22 files changed (+471 additions, -209 deletions)
View changed files
📝
artifacts/slurp-1.0.5.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v3/catalog.json(+8 -8)📝
packages/slurp/client.js(+11 -11)📝
packages/slurp/manifest.json(+5 -5)📝
packages/slurp/server.mjs(+149 -149)📝
packages/slurp/src/engine/packages/client/src/components/slurp/SlurpOnboardingPanel.tsx(+54 -9)📝
packages/slurp/src/engine/packages/client/src/hooks/use-slurp.ts(+1 -0)📝
packages/slurp/src/engine/packages/client/src/localization/locales/en.json(+2 -0)📝
packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts(+34 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-ambient-profile-generation.service.ts(+4 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-fan-activity.service.ts(+4 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generation.service.ts(+2 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-invited-post-draft.service.ts(+2 -1)➕
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-model-answer.ts(+15 -0)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-profiles.service.ts(+2 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-reply-generation.service.ts(+2 -1)📝
packages/slurp/src/engine/packages/server/src/services/slurp/slurp-stage-profile-draft.service.ts(+8 -2)📝
scripts/build-feature-packages.mjs(+1 -1)...and 2 more files
📄 Description
Pull request
TL;DR — Slurp's onboarding wizard could fail with no explanation and no retry. Empty model answers now fail with a readable message at every Slurp parse site, every bulk skip and failure carries a reason, and the completion screen shows those reasons plus a working retry. Ships as
slurp1.0.5.Linked issue
Closes #390
Why this change
A user hit "0 creators joined, but 2 could not finish setting up or writing a first post" with nothing actionable on screen. Three separate defects stacked up:
JSON.parse("")and surfaced asSyntaxError: Unexpected end of JSON input, which names neither the cause nor a fix.failedstate, whose copy blames first-post generation — even though no generation ran. The retry button is bound to generation outcomes, so it never rendered, despite the copy promising it.What changed
Package
slurp, source underpackages/slurp/src/engine:slurp-model-answer.ts(new) — onerequireModelAnswer(content, what)guard that rejects an empty model answer with a message naming the failing work and the fix.slurp-stage-profile-draft.service.ts— the repair retry no longer echoes an empty assistant turn, which several providers reject. That is why both attempts failed identically in the reported log.slurp.routes.ts—noteReasonon every skip and failure path inPOST /noodler/accounts/bulk; the response gainsreasons: string[], deduplicated. Skips get plain text ("Already a Slurp creator from an earlier run", "The source character or persona no longer exists in Noodle", the leak-guard rejection, the write failure); failures carry the real error message.SlurpOnboardingPanel.tsx— new localcreationFailedcompletion state, so a run that created nothing is reported as a setup failure; the reasons render as a list under the detail text in any completion state; retry is offered for setup failures; the failure count falls back to the selected count when the request itself is lost.use-slurp.ts,locales/en.json— response type and two new keys.tests/slurp-onboarding-failure-reasons.regression.ts(new) — exercises the guard for real, and walksservices/slurpso a newly added parse site fails the suite until it is guarded.scripts/build-feature-packages.mjs— Slurp version 1.0.4 → 1.0.5.client.js,server.mjs,manifest.json,artifacts/slurp-1.0.5.zip(replacing 1.0.4), and all three catalog lanes.Package and security impact
slurp(1.0.4 → 1.0.5)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated, all passing against the final 1.0.5 build:
npm run test:noodle:regressions, including the new regressionnode scripts/validate-catalog.mjsnode scripts/test-catalog-lanes.mjsnode scripts/validate-package-locales.mjsThe new regression calls
requireModelAnswerdirectly: three empty inputs throw with the expected message, a valid answer passes through unchanged. It then asserts that the set of files inservices/slurpcontaining aparseGameJsonish(call matches its covered list, and that each call routes through the guard.Not performed, and deliberately left unticked above: the package was not installed or updated through a running Engine, and the empty-response path was not exercised against a live provider. The change was built and validated from source only.
Bundle note: the payload was rebuilt against a staging Engine checkout. An earlier rebuild against a different local Engine checkout produced a ~64 KB smaller
client.jsbecause that checkout carries a different React copy innode_modules; that build was discarded.Documentation impact
Follow-up, not in this PR
The real root cause is one level down, in Engine's
parseGameJsonish, where the final fallback rethrows the raw parse error. One guard there would cover all seven Slurp callers and every Engine caller. That file is not package-owned, so it needs an Engine PR;slurp-model-answer.tscarries a comment recording the duplication and the upgrade path.Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.