[PR #808] [MERGED] fix(slurp2): repair schedule refresh, dialog keys, and header logo; add reply timing #1148

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

📋 Pull Request Information

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

Base: staging ← Head: fix/slurp2-schedule-logo-reply-timing


📝 Commits (3)

  • 786e1a1 fix(slurp2): repair schedule refresh, dialog keys, and header logo; add reply timing
  • 8557e21 style(slurp2): format the 0.0.4 release notes
  • ef23169 fix(slurp2): skip the typing hold when reply wait is zero

📊 Changes

30 files changed (+704 additions, -247 deletions)

View changed files

➕ artifacts/slurp2-0.0.4.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/slurp2/CHANGELOG.md (+9 -0)
📝 packages/slurp2/client.js (+27 -27)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+166 -166)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpSettings.tsx (+125 -2)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpShell.tsx (+3 -2)
➕ packages/slurp2/src/engine/packages/client/src/components/slurp/slurp-logo.ts (+9 -0)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts (+13 -1)
📝 packages/slurp2/src/engine/packages/client/src/hooks/use-slurp.ts (+12 -0)
📝 packages/slurp2/src/engine/packages/client/src/localization/locales/en.json (+26 -2)
📝 packages/slurp2/src/engine/packages/server/src/routes/slurp-messages.routes.ts (+1 -0)
📝 packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts (+1 -1)
📝 packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-conversation-schedule-generation.ts (+19 -4)

...and 10 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #807

Why this change

  • Refresh Conversation Schedule crashed with e.chatComplete is not a function: the route handed the stored connection row to the generator, which expected a built provider.
  • Raw locale keys showed in the refresh dialog (capabilities.actions.cancel) and on the settings loading screen (capabilities.actions.loading). Neither key exists in any locale.
  • The header logo broke. 0.0.1 loaded it from Slurp Legacy's package asset URL, and any package-asset URL only resolves while the Engine lists the package as ready.
  • Feature request: users want to control DM reply delays. The delays were hard-coded, including a fixed 180-minute cap, and the Creator settings text wrongly said an unscheduled Creator is always reachable.

What changed

  • slurp-conversation-schedule-generation.ts builds the provider from the connection (createLLMProvider, the same construction message generation uses). The route passes the connection only.
  • The two missing keys now use existing keys (ui.slurp.actions.cancel, ui.slurp.studio.loading).
  • New slurp-logo.ts inlines the logo as a PNG data URI (same pattern as slurp-gunterlie-avatar.ts). The PNG is byte-identical to Slurp Legacy's slurp-logo.png. SlurpShell.tsx uses it for every header logo.
  • New Slurp settings (flat messages* keys; normalizeSlurpSettings fills defaults for stored installs):
    • messagesUnscheduledAlwaysReachable (default false)
    • messagesMaxReplyDelayMinutes (default 180; 0 answers right away)
    • messagesUnknownReturnDelayMinutes (120)
    • high/medium rapport check-in min/max (10–20, 30–60)
    • no-schedule away ranges after a recent / older post (30–90, 120–240)
      Defaults keep the shipped pacing. slurpReplyPacing and resolveSlurpCreatorAvailability take them; all four availability callers and both pacing callers pass the settings.
  • Messaging settings gains a Reply timing group; en.json gains its text and corrects the two "always reachable" strings.
  • slurp2 bumped to 0.0.4 (build-feature-packages.mjs, slurp2-release.ts, CHANGELOG.md); rebuilt server.mjs, client.js, manifest, artifacts/slurp2-0.0.4.zip, and catalogs. artifacts/slurp2-0.0.3.zip is unchanged.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none (minEngineVersion unchanged)
  • New or changed permissions/entrypoints: none. Executable server.mjs and client.js payloads changed.
  • Restart, storage, update, or uninstall impact: new settings keys only; missing keys resolve to defaults, so existing installs keep current behavior. No migrations. 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

Automated, run locally:

  • npm run check (Prettier + ESLint), npm run typecheck:packages
  • scripts/test-catalog-lanes.mjs, scripts/validate-package-locales.mjs, scripts/validate-catalog.mjs, scripts/tests/catalog-release-notes.regression.mjs
  • tests/slurp2-release-notes, slurp2-logo (new), slurp2-locale-keys (new), slurp-messaging (extended), slurp-felt-mood, slurp-follow-up-pipeline, slurp-conversation-schedule-refresh, slurp-schedule-status, slurp-creator-schedule-context
  • Negative cases: the locale-key check reports both missing keys against the old SlurpSettings.tsx. The old bundled server.mjs contained X$(e,t,r){ … e.chatComplete(…), matching the user's stack trace; the new bundle builds the provider first.
  • New pacing checks: zero longest wait → instant; longest wait caps a queued reply; close-fan range sets the check-in delay; Always reachable makes an unscheduled Creator online; away-range settings set the guessed return time.
  • All tests/slurp* regressions: the same 12 fail on base 47d35233 and on this branch (slurp-alive, -boundary, -chat-mood, -garnish-ads-pool, -lifecycle-safety, -phase1-durability, -population, -ppv-paywall, -relationship-panel, -reply-obligation, -stance, -studio). No new failures. CI does not run these.

Manual proof gaps: not installed or updated through a live Engine. A real schedule refresh against a provider, the new settings UI, and the header logo were not checked by hand. New settings text is English only; de/ko/pl fall back.

Documentation impact

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

UI evidence (if applicable)

Not captured.

Summary by CodeRabbit

  • New Features

    • Added configurable reply timing controls, including rapport-based delays, maximum reply delays, return timing, and unscheduled Creator reachability.
    • Added options for recent and stale post availability timing.
  • Bug Fixes

    • Fixed Conversation Schedule refresh behavior.
    • Corrected settings and dialog text display.
    • Fixed header logo loading.
  • Release

    • Updated Slurp Remastered to version 0.0.4.

🔄 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/808 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/12/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp2-schedule-logo-reply-timing` --- ### 📝 Commits (3) - [`786e1a1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/786e1a1416afcb68b5b147604ef066921f8125cd) fix(slurp2): repair schedule refresh, dialog keys, and header logo; add reply timing - [`8557e21`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8557e21863f8db64ec40c24d7928225306120d22) style(slurp2): format the 0.0.4 release notes - [`ef23169`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ef23169cf59402216823739dcb43ce70703b6bac) fix(slurp2): skip the typing hold when reply wait is zero ### 📊 Changes **30 files changed** (+704 additions, -247 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.0.4.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/slurp2/CHANGELOG.md` (+9 -0) 📝 `packages/slurp2/client.js` (+27 -27) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+166 -166) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpSettings.tsx` (+125 -2) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpShell.tsx` (+3 -2) ➕ `packages/slurp2/src/engine/packages/client/src/components/slurp/slurp-logo.ts` (+9 -0) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts` (+13 -1) 📝 `packages/slurp2/src/engine/packages/client/src/hooks/use-slurp.ts` (+12 -0) 📝 `packages/slurp2/src/engine/packages/client/src/localization/locales/en.json` (+26 -2) 📝 `packages/slurp2/src/engine/packages/server/src/routes/slurp-messages.routes.ts` (+1 -0) 📝 `packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts` (+1 -1) 📝 `packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-conversation-schedule-generation.ts` (+19 -4) _...and 10 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #807 ## Why this change - **Refresh Conversation Schedule crashed** with `e.chatComplete is not a function`: the route handed the stored connection row to the generator, which expected a built provider. - **Raw locale keys** showed in the refresh dialog (`capabilities.actions.cancel`) and on the settings loading screen (`capabilities.actions.loading`). Neither key exists in any locale. - **The header logo broke.** 0.0.1 loaded it from Slurp Legacy's package asset URL, and any package-asset URL only resolves while the Engine lists the package as ready. - **Feature request:** users want to control DM reply delays. The delays were hard-coded, including a fixed 180-minute cap, and the Creator settings text wrongly said an unscheduled Creator is always reachable. ## What changed - `slurp-conversation-schedule-generation.ts` builds the provider from the connection (`createLLMProvider`, the same construction message generation uses). The route passes the connection only. - The two missing keys now use existing keys (`ui.slurp.actions.cancel`, `ui.slurp.studio.loading`). - New `slurp-logo.ts` inlines the logo as a PNG data URI (same pattern as `slurp-gunterlie-avatar.ts`). The PNG is byte-identical to Slurp Legacy's `slurp-logo.png`. `SlurpShell.tsx` uses it for every header logo. - New Slurp settings (flat `messages*` keys; `normalizeSlurpSettings` fills defaults for stored installs): - `messagesUnscheduledAlwaysReachable` (default `false`) - `messagesMaxReplyDelayMinutes` (default 180; `0` answers right away) - `messagesUnknownReturnDelayMinutes` (120) - high/medium rapport check-in min/max (10–20, 30–60) - no-schedule away ranges after a recent / older post (30–90, 120–240) Defaults keep the shipped pacing. `slurpReplyPacing` and `resolveSlurpCreatorAvailability` take them; all four availability callers and both pacing callers pass the settings. - Messaging settings gains a **Reply timing** group; `en.json` gains its text and corrects the two "always reachable" strings. - slurp2 bumped to **0.0.4** (`build-feature-packages.mjs`, `slurp2-release.ts`, `CHANGELOG.md`); rebuilt `server.mjs`, `client.js`, manifest, `artifacts/slurp2-0.0.4.zip`, and catalogs. `artifacts/slurp2-0.0.3.zip` is unchanged. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none (`minEngineVersion` unchanged) - New or changed permissions/entrypoints: none. Executable `server.mjs` and `client.js` payloads changed. - Restart, storage, update, or uninstall impact: new settings keys only; missing keys resolve to defaults, so existing installs keep current behavior. No migrations. Normal package update. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] 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 - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated, run locally: - `npm run check` (Prettier + ESLint), `npm run typecheck:packages` - `scripts/test-catalog-lanes.mjs`, `scripts/validate-package-locales.mjs`, `scripts/validate-catalog.mjs`, `scripts/tests/catalog-release-notes.regression.mjs` - `tests/slurp2-release-notes`, `slurp2-logo` (new), `slurp2-locale-keys` (new), `slurp-messaging` (extended), `slurp-felt-mood`, `slurp-follow-up-pipeline`, `slurp-conversation-schedule-refresh`, `slurp-schedule-status`, `slurp-creator-schedule-context` - Negative cases: the locale-key check reports both missing keys against the old `SlurpSettings.tsx`. The old bundled `server.mjs` contained `X$(e,t,r){ … e.chatComplete(…)`, matching the user's stack trace; the new bundle builds the provider first. - New pacing checks: zero longest wait → instant; longest wait caps a queued reply; close-fan range sets the check-in delay; Always reachable makes an unscheduled Creator online; away-range settings set the guessed return time. - All `tests/slurp*` regressions: the same 12 fail on base `47d35233` and on this branch (`slurp-alive`, `-boundary`, `-chat-mood`, `-garnish-ads-pool`, `-lifecycle-safety`, `-phase1-durability`, `-population`, `-ppv-paywall`, `-relationship-panel`, `-reply-obligation`, `-stance`, `-studio`). No new failures. CI does not run these. **Manual proof gaps:** not installed or updated through a live Engine. A real schedule refresh against a provider, the new settings UI, and the header logo were not checked by hand. New settings text is English only; de/ko/pl fall back. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not captured. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added configurable reply timing controls, including rapport-based delays, maximum reply delays, return timing, and unscheduled Creator reachability. - Added options for recent and stale post availability timing. - **Bug Fixes** - Fixed Conversation Schedule refresh behavior. - Corrected settings and dialog text display. - Fixed header logo loading. - **Release** - Updated Slurp Remastered to version 0.0.4. <!-- 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:03:52 +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#1148
No description provided.