mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
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#1409
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/1335
Author: @SpicyMarinara
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/calls-character-initiated-call📝 Commits (2)
6f4c190fix(calls): 1.1.2 — ring the user when a character's reply says [call] (#1334)ac3f7a8fix(calls): ring an already-ringing call as the character who placed it (#1334)📊 Changes
16 files changed (+518 additions, -197 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+3 -0)➕
artifacts/conversation-calls-1.1.2.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(+174 -174)➕
packages/conversation-calls/src/engine/packages/server/src/services/conversation/call-command.ts(+112 -0)➕
packages/conversation-calls/src/engine/packages/server/src/services/generation/conversation-call-command-runtime.ts(+15 -0)📝
scripts/build-feature-packages.mjs(+4 -1)➕
tests/calls-character-call.regression.ts(+166 -0)📝
tests/conversation-calls-summary.regression.mjs(+1 -1)📄 Description
Pull request
Linked issue
Closes #1334
Engine report: Pasta-Devs/Marinara-Engine#7479
Why this change
conversation-call-command-runtime.tsis only a host shim: it hands a parsed[call]to whatever package registered theconversation-calls:commandservice. The Calls build registered that same shim fromsources/engineas its service. Pasta-Devs/Marinara-Agents#282 (2026-08-09) refreshedsources/engineand replaced the real handler with the shim.trueand does nothing. A character's[call]created no call, wrote no "Incoming call" line and sent no ringing event. Every Calls build since 2026-08-09 has this problem (1.0.17, 1.1.0, 1.1.1). The bundled code isnre("conversation-calls:command")over a privatenew Map.9fd6e0900, and it works. The[call]instructions reach the prompt when Calls is installed and the command is on.parseCharacterCommandsandfilterEnabledConversationCommandskeep the command.generate.routes.tscallshandleConversationCallCommand, and the client handlesconversation_call_ringing. The Engine needs no change.What changed
[call], Calls creates a ringing call, writes the "Incoming call" line and sends the ringing event. The incoming-call banner or notification then appears. It follows the same rules as a character call throughPOST /api/conversation-calls/start. The chat must be in Conversation mode, character commands and the Calls command must be on, and Call Audio Pipeline must be on. A call that is already ringing rings again, as the character who placed it, with that call's reason. Answering connects that call and plays its greeting, so in a group chat a second character's[call]does not relabel the first character's call. A call already in progress is left alone.packages/conversation-calls/src/engine/.../services/conversation/call-command.ts(new, package-owned) holds the handler. Its storage and logger are passed in, so the regression can run it directly.packages/conversation-calls/src/engine/.../services/generation/conversation-call-command-runtime.ts(new, package-owned) connects the handler to the Calls storage and the logger. In the build it takes the place of the vendored shim at the same path, as the surface and routes already do. Both paths are listed inconversationCallsOwnedSourcePaths, so the build does not copy them back intosources/engine.scripts/build-feature-packages.mjs: Calls goes from 1.1.1 to 1.1.2, above every version the catalog has published (highest: 1.1.1). The build entry is unchanged.server.mjs,manifest.json,artifacts/conversation-calls-1.1.2.zip, the v2/v3/legacy catalogs andnotes.json.client.js,sources/engineandscripts/vendored-engine-baseline.jsonare unchanged.packages/conversation-calls/CHANGELOG.mdhas a 1.1.2[highlight]entry. The catalog build rejects a published version that the changelog does not lead with.tests/calls-character-call.regression.ts, wired into "Pull request checks".tests/conversation-calls-summary.regression.mjsnow expects version 1.1.2.Package and security impact
conversation-calls(1.1.1 → 1.1.2).engine.minstays 2.4.1. The service key and its argument shape match what the Engine has passed since the extraction.restartRequiredis unchanged). No storage changes: the handler uses the existing call session table and chat messages.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdAgent-run checks, all passing on
ac3f7a81(rerun after the review fix):npm run check: 0 errors, 809 warnings, the same count as pristineorigin/staging.npm run typecheck:packages: conversation-calls clean.npm run test:security.calls-character-call, pluscalls-playback,calls-speech-to-text,calls-mic-segments,conversation-calls-summaryandcalls-swarmui-video.node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-package-locale-keys.mjsandnode scripts/validate-catalog.mjs.node scripts/tests/catalog-release-notes.regression.mjs,node scripts/tests/catalog-generatedat-determinism.regression.mjsandnode scripts/tests/vendored-engine.regression.mjs.node scripts/validate-pr-triage.mjsandgit diff --check origin/staging...HEAD.Other evidence:
Repro: before the rebuild, the new regression failed on the 1.1.1
server.mjswith "the built server.mjs must not register the host shim as the [call] service". After the rebuild it passes. The built-bundle check now counts the service key instead of matching one minified form of the shim: the shim names"conversation-calls:command"twice (lookup plus registration), the real handler once. It still fails on the 1.1.1 bundle.Review fix (
ac3f7a81), group-chat re-ring: with Alice's call ringing, Bob's[call]sent the ringing event with Bob's id and reason. The banner showed Bob, but answering connected Alice's call and played Alice's greeting. The event now uses the session's own caller and reason. The updated regression case fails on the6f4c190bhandler (characterId: 'char-1'instead of'char-2') and passes now. Rebuiltserver.mjs, the 1.1.2 zip and the catalogs at Engined71106851.Handler cases covered: a
[call]rings, with the right call status, initiator, reason, greeting, chat line and ringing event. A bare[call]also rings. An already ringing call rings again as its own caller, with its own reason, even when another character's[call]re-rings it. An active call is left alone. The call is blocked when commands are off, when the call command is off, when call audio is off or not set, and in Roleplay. Other commands are ignored.Build:
MARINARA_ENGINE_ROOTat Engined71106851, the root Calls 1.1.1 was built against. A pristineorigin/stagingrebuild of 1.1.1 there was byte-identical. In the new bundle,registerService("conversation-calls:command", …)exposeshandleConversationCallCommand, which uses the real calls storage, thettsapp setting and the bundled Pino logger.End to end on a real Engine (temporary script, not committed): I ran Engine staging
9fd6e0900with only the server, a fresh data directory, the package installed throughscripts/install-package-browser-fixture.mjsand Call Audio Pipeline on. A fake OpenAI-compatible model on 127.0.0.1 answeredomg yes, calling you right now [call: reason="wants to hear your voice", greeting="hey you!"].Parsed 1 character command(s), 1 enabled: ["call"]. There was noconversation_call_ringingevent,ringingCallwas null and the chat had no "Incoming call" line. This matches the report.conversation_call_ringing./api/conversation-calls/chat/:id/statusshowed a ringing call with initiatorcharacter, the right character, the reason and the greeting. The chat read user, then "omg yes, calling you right now" (the[call]text stripped), then "Incoming call". The Engine logged[calls] Character call ringing in chat ….Local CodeRabbit (one run, on
6f4c190b): 2 findings, neither changed.POST /startand the handler from before the extraction also write the line before answering. If the write throws, the Engine's per-commandtry/catchingenerate.routes.tslogs it. Sending the event first would let the browser refresh before the line exists.GitHub CodeRabbit thread (trivial, "the shim check depends on the exact minified output"): fixed in
ac3f7a81by counting the service key instead of matching a minified form, then replied and resolved.Local CodeRabbit (second run, on
ac3f7a81, after several rate-limit retries): 1 trivial finding, not changed. "Avoid coupling this regression to minified bundle text; assert a stable generated-module contract." Declined. The check now uses only a string literal ("conversation-calls:command"), a property name (registerService) and a log message, which esbuild keeps as written.server.mjsis a single bundle that exposes only the package's activate hook, so there is no smaller contract to assert without running the whole Engine host. The check fails on the 1.1.1 bundle and passes on 1.1.2, so it proves the fix.GitHub "Calls package browser" (not required) fails here with a 60 s timeout in the existing "stays responsive when browser blocks voice playback" test, on desktop and mobile. That test fails the same way on earlier runs: the Calls 1.1.1 PR (run 37974438846, 2026-10-09),
fix/1280-calls-speech-to-textandfix/noodle-slurp-browser-ci(run 38167346697, 2026-10-11). This PR leavesclient.jsunchanged. The required "Catalog validation" check, which runs the Calls regressions including the new one, passes.Manual verification notes
Manual checks needed:
[call]text and the Incoming call banner appears above the message box. Also confirm the chat shows an "Incoming call" line.Documentation impact
docs/conversation/calls.mdin the Engine already describes this behavior ("A character can ring you if the Calls command is on").UI evidence (if applicable)
No UI changes. The existing incoming-call banner and notification now appear.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.