[PR #1499] [MERGED] fix(calls): schedule updates from a call reach the character card #1489

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1499
Author: @SpicyMarinara
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/calls-schedule-update


📝 Commits (1)

  • 99a144e fix(calls): schedule updates from a call reach the character card

📊 Changes

16 files changed (+160 additions, -152 deletions)

View changed files

➕ artifacts/conversation-calls-1.1.7.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/conversation-calls/CHANGELOG.md (+4 -0)
📝 packages/conversation-calls/manifest.json (+3 -3)
📝 packages/conversation-calls/server.mjs (+46 -46)
📝 packages/conversation-calls/src/engine/packages/server/src/routes/conversation-calls.routes.ts (+33 -75)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 sources/host-runtime-overlay/packages/server/src/lib/host-runtime.ts (+9 -0)
📝 tests/conversation-calls-summary.regression.mjs (+1 -1)
📝 tests/dedup-review-fixes.regression.mjs (+22 -0)
📝 tests/host-runtime-overlay.regression.mjs (+5 -8)

📄 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 #1498

Why this change

  • When a character changes their status during a call ([schedule_update]), Calls edited the current block of the chat's schedule map. The Engine treats that map as a cache and replaces it from the character card on its next presence read, so the change was lost and never showed in the character's other chats. A Conversation reply already puts the change on the card.
  • Engine PR Pasta-Devs/Marinara-Engine#7886 (merged to staging) added api.runtime.persistence.updateCharacterStatus, which applies a [schedule_update] exactly as the Engine does after a reply. This PR makes Calls use it.
  • De-duplication decision D3 (Pasta-Devs/Marinara-Agents#1487): "A package never falls back to a bundled copy of a stateful Engine service; it reports the feature unavailable." The member is optional on the host, so Calls feature-detects it.

What changed

  • conversation-calls 1.1.7: applyCallScheduleUpdate calls api.runtime.persistence.updateCharacterStatus(chatId, characterId, { status, activity, duration }). The old chat-schedule editing (updateCurrentScheduleBlock) is removed.
  • Feature detection: the call prompt offers [schedule_update] only when the Engine has the member. If a model sends it anyway on such an Engine, the call logs the warning "Schedule updates in calls needs a newer Marinara Engine." and goes on with the reply. It never writes the chat's copy. A refused update (bad input, for example) is logged the same way, so the call's reply is never cut short.
  • sources/host-runtime-overlay/.../host-runtime.ts: the optional updateCharacterStatus member on the structural HostPersistence type (types only; the Noodle and Slurp bundles are unchanged).
  • Generated: packages/conversation-calls/server.mjs, manifest.json, artifacts/conversation-calls-1.1.7.zip, catalog v1/v2/v3 entries and notes, from packages/conversation-calls/CHANGELOG.md. client.js is unchanged.
  • Tests: tests/dedup-review-fixes.regression.mjs checks the call uses the host member, feature-detects it, logs failures and no longer writes characterSchedules (it fails on the old source). tests/host-runtime-overlay.regression.mjs drops its assertion on the old metadata patch. tests/conversation-calls-summary.regression.mjs pins 1.1.7.

Package and security impact

  • Affected package IDs: conversation-calls (1.1.6 → 1.1.7, above every version any branch published).
  • Engine compatibility impact: none to the gate (capability API 1.341 and engine.min 2.4.1 unchanged). On an Engine at 1.341 without the member, characters don't offer status changes during calls.
  • New or changed permissions/entrypoints: none (chat-write was already required).
  • Restart, storage, update, or uninstall impact: none. In a multiplayer room the Engine member changes nothing, because the room keeps its own routines.

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

What the agent ran: built with node scripts/build-feature-packages.mjs conversation-calls against Engine origin/staging 2b2b83773 (deps installed, shared built). Passed: npm run check, npm run typecheck:packages, npm run test:security, the Calls regressions (playback, speech to text, mic segments, character call, summary, SwarmUI video), host-runtime-overlay, dedup-review-fixes (also confirmed it fails on the old source), the server and client host gates, singleton and storage-key gates, catalog lanes, determinism and release notes, locale validation, validate-catalog, validate-pr-triage and git diff --check. validate-vendored-engine --baseline-ref origin/staging reports drift against current Engine staging; this PR changes no sources/engine file, so the result is the same as on staging, and CI runs that check only when packages/noodle or sources/engine changes.

Manual checks for a human:

  • Manually verify in the browser, on an Engine with #7886 and Calls 1.1.7: start a call with a Conversation character who has a schedule, ask them to switch to something else (for example "go study for an hour"), and check that the reply's [schedule_update] changes the presence shown on the character in this chat and in another chat with them.
  • Manually verify that a status set by hand on the character stays in charge after a call's [schedule_update].
  • Manually verify that the status goes back to the schedule after the duration the character gave.

Documentation impact

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

UI evidence (if applicable)

None: server-only change.


🔄 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/1499 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/calls-schedule-update` --- ### 📝 Commits (1) - [`99a144e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/99a144e26f4ba6d6b89d2cec22fd90d3d36edf9d) fix(calls): schedule updates from a call reach the character card ### 📊 Changes **16 files changed** (+160 additions, -152 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/conversation-calls-1.1.7.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/conversation-calls/CHANGELOG.md` (+4 -0) 📝 `packages/conversation-calls/manifest.json` (+3 -3) 📝 `packages/conversation-calls/server.mjs` (+46 -46) 📝 `packages/conversation-calls/src/engine/packages/server/src/routes/conversation-calls.routes.ts` (+33 -75) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `sources/host-runtime-overlay/packages/server/src/lib/host-runtime.ts` (+9 -0) 📝 `tests/conversation-calls-summary.regression.mjs` (+1 -1) 📝 `tests/dedup-review-fixes.regression.mjs` (+22 -0) 📝 `tests/host-runtime-overlay.regression.mjs` (+5 -8) </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 #1498 ## Why this change - When a character changes their status during a call (`[schedule_update]`), Calls edited the current block of the chat's schedule map. The Engine treats that map as a cache and replaces it from the character card on its next presence read, so the change was lost and never showed in the character's other chats. A Conversation reply already puts the change on the card. - Engine PR Pasta-Devs/Marinara-Engine#7886 (merged to staging) added `api.runtime.persistence.updateCharacterStatus`, which applies a `[schedule_update]` exactly as the Engine does after a reply. This PR makes Calls use it. - De-duplication decision D3 (Pasta-Devs/Marinara-Agents#1487): "A package never falls back to a bundled copy of a stateful Engine service; it reports the feature unavailable." The member is optional on the host, so Calls feature-detects it. ## What changed - **conversation-calls 1.1.7**: `applyCallScheduleUpdate` calls `api.runtime.persistence.updateCharacterStatus(chatId, characterId, { status, activity, duration })`. The old chat-schedule editing (`updateCurrentScheduleBlock`) is removed. - Feature detection: the call prompt offers `[schedule_update]` only when the Engine has the member. If a model sends it anyway on such an Engine, the call logs the warning "Schedule updates in calls needs a newer Marinara Engine." and goes on with the reply. It never writes the chat's copy. A refused update (bad input, for example) is logged the same way, so the call's reply is never cut short. - `sources/host-runtime-overlay/.../host-runtime.ts`: the optional `updateCharacterStatus` member on the structural `HostPersistence` type (types only; the Noodle and Slurp bundles are unchanged). - Generated: `packages/conversation-calls/server.mjs`, `manifest.json`, `artifacts/conversation-calls-1.1.7.zip`, catalog v1/v2/v3 entries and notes, from `packages/conversation-calls/CHANGELOG.md`. `client.js` is unchanged. - Tests: `tests/dedup-review-fixes.regression.mjs` checks the call uses the host member, feature-detects it, logs failures and no longer writes `characterSchedules` (it fails on the old source). `tests/host-runtime-overlay.regression.mjs` drops its assertion on the old metadata patch. `tests/conversation-calls-summary.regression.mjs` pins 1.1.7. ## Package and security impact - Affected package IDs: `conversation-calls` (1.1.6 → 1.1.7, above every version any branch published). - Engine compatibility impact: none to the gate (capability API 1.341 and `engine.min` 2.4.1 unchanged). On an Engine at 1.341 without the member, characters don't offer status changes during calls. - New or changed permissions/entrypoints: none (`chat-write` was already required). - Restart, storage, update, or uninstall impact: none. In a multiplayer room the Engine member changes nothing, because the room keeps its own routines. ## 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 What the agent ran: built with `node scripts/build-feature-packages.mjs conversation-calls` against Engine `origin/staging` `2b2b83773` (deps installed, shared built). Passed: `npm run check`, `npm run typecheck:packages`, `npm run test:security`, the Calls regressions (playback, speech to text, mic segments, character call, summary, SwarmUI video), `host-runtime-overlay`, `dedup-review-fixes` (also confirmed it fails on the old source), the server and client host gates, singleton and storage-key gates, catalog lanes, determinism and release notes, locale validation, `validate-catalog`, `validate-pr-triage` and `git diff --check`. `validate-vendored-engine --baseline-ref origin/staging` reports drift against current Engine staging; this PR changes no `sources/engine` file, so the result is the same as on `staging`, and CI runs that check only when `packages/noodle` or `sources/engine` changes. Manual checks for a human: - Manually verify in the browser, on an Engine with #7886 and Calls 1.1.7: start a call with a Conversation character who has a schedule, ask them to switch to something else (for example "go study for an hour"), and check that the reply's `[schedule_update]` changes the presence shown on the character in this chat and in another chat with them. - Manually verify that a status set by hand on the character stays in charge after a call's `[schedule_update]`. - Manually verify that the status goes back to the schedule after the duration the character gave. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None: server-only change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:12:03 +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#1489
No description provided.