[PR #1350] [MERGED] fix(slurp2): 0.3.33 — fixed output-token limits yield to the connection's max tokens #1415

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

📋 Pull Request Information

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

Base: staging ← Head: fix/slurp2-image-rewrite-reasoning-models


📝 Commits (2)

  • b03f0df fix(slurp2): 0.3.33 — fixed output-token limits yield to the connection's max tokens (#1349)
  • 30266a4 fix(slurp2): stored max tokens only raise the fixed limit; failure names a suppressed limit (#1349)

📊 Changes

22 files changed (+407 additions, -322 deletions)

View changed files

➕ artifacts/slurp2-0.3.33.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 (+62 -62)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+183 -183)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+8 -19)
📝 packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt-rewrite.ts (+15 -3)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/assist/slp-assist-service.ts (+13 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/assist/slp-stir-service.ts (+13 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/audience/slp-fan-voice-draft-service.ts (+9 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-creator-page-service.ts (+9 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-page-style-service.ts (+9 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-appearance-service.ts (+13 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)

...and 2 more files

📄 Description

Pull request

Linked issue

Closes #1349

Why this change

  • Discord reports on 0.3.31: on a reasoning model (glm5) the picture rewrite fails with Image prompt rewrite unusable (...), and only works again on deepseek. The user says max tokens was 128k.
  • The rewrite sent a fixed maxTokens: 4_096 and never read the connection's stored max tokens, so a reasoning model spent the limit on thinking and returned nothing. Six more short Slurp calls had the same fixed limit.
  • Caveat: the "128k" may be maxContext, or the max-tokens parameter may be switched off on that connection; this change does not help then. The exact log line is still unconfirmed. The new failure text carries the limit that was sent, which will show it.

What changed

  • slurp2 0.3.33. The rewrite, Page design, Page style, look reading, fan voice, Stir plan and writing help now use Math.max(resolveStoredMaxTokens(connection.defaultParameters, N), N), clamped by clampGenerationMaxOutputTokens (the existing pattern). A larger stored setting raises the limit; a smaller one never starves a call.
  • The rewrite failure text names the limit sent ("provider default" when parameters are suppressed).
  • Splash entry added; three oldest 0.1.x splash entries dropped to keep slp-release.ts under the 800-line rule.
  • Regenerated: client.js, server.mjs, manifest, catalogs, artifacts/slurp2-0.3.33.zip (build script only).
  • Review (Opus): one medium risk (low stored value starving a call) and one low risk (message with suppressed parameters); both fixed.

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 beyond a normal package update

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 (0 errors), catalog lanes, locales, catalog validation, release-notes regression, full Slurp regressions 287/287, slurp2 typecheck. Not run: live test on a glm5 connection.
  • Live: glm5 connection with a large max tokens setting; make a post with a picture
  • Live: low max tokens setting; Make Page still works

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

🔄 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/1350 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/13/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp2-image-rewrite-reasoning-models` --- ### 📝 Commits (2) - [`b03f0df`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b03f0df274b6defed54f39cb4541a5e3c03d1cce) fix(slurp2): 0.3.33 — fixed output-token limits yield to the connection's max tokens (#1349) - [`30266a4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/30266a448f8374b58cb05bac570b82f80e4a717b) fix(slurp2): stored max tokens only raise the fixed limit; failure names a suppressed limit (#1349) ### 📊 Changes **22 files changed** (+407 additions, -322 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.33.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` (+62 -62) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+183 -183) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+8 -19) 📝 `packages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt-rewrite.ts` (+15 -3) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/assist/slp-assist-service.ts` (+13 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/assist/slp-stir-service.ts` (+13 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/audience/slp-fan-voice-draft-service.ts` (+9 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-creator-page-service.ts` (+9 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-page-style-service.ts` (+9 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-appearance-service.ts` (+13 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) _...and 2 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1349 ## Why this change - Discord reports on 0.3.31: on a reasoning model (glm5) the picture rewrite fails with `Image prompt rewrite unusable (...)`, and only works again on deepseek. The user says max tokens was 128k. - The rewrite sent a fixed `maxTokens: 4_096` and never read the connection's stored max tokens, so a reasoning model spent the limit on thinking and returned nothing. Six more short Slurp calls had the same fixed limit. - Caveat: the "128k" may be `maxContext`, or the max-tokens parameter may be switched off on that connection; this change does not help then. The exact log line is still unconfirmed. The new failure text carries the limit that was sent, which will show it. ## What changed - slurp2 0.3.33. The rewrite, Page design, Page style, look reading, fan voice, Stir plan and writing help now use `Math.max(resolveStoredMaxTokens(connection.defaultParameters, N), N)`, clamped by `clampGenerationMaxOutputTokens` (the existing pattern). A larger stored setting raises the limit; a smaller one never starves a call. - The rewrite failure text names the limit sent ("provider default" when parameters are suppressed). - Splash entry added; three oldest 0.1.x splash entries dropped to keep `slp-release.ts` under the 800-line rule. - Regenerated: `client.js`, `server.mjs`, manifest, catalogs, `artifacts/slurp2-0.3.33.zip` (build script only). - Review (Opus): one medium risk (low stored value starving a call) and one low risk (message with suppressed parameters); both fixed. ## 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 beyond a normal package update ## 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` (0 errors), catalog lanes, locales, catalog validation, release-notes regression, full Slurp regressions 287/287, slurp2 typecheck. Not run: live test on a glm5 connection. - [ ] Live: glm5 connection with a large max tokens setting; make a post with a picture - [ ] Live: low max tokens setting; Make Page still works ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation --- <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:05 +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#1415
No description provided.