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#1386
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/1288
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/1285-calls-mic-cutoff📝 Commits (2)
ae811f0fix(calls): 1.1.1 — keep every recorded clip and stop cutting slow-checked speech (#1285)922b7c6fix(calls): limit media uploads to one file and 16 fields📊 Changes
19 files changed (+580 additions, -251 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+3 -0)➕
artifacts/conversation-calls-1.1.1.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/conversation-calls/CHANGELOG.md(+5 -0)📝
packages/conversation-calls/client.js(+11 -11)📝
packages/conversation-calls/manifest.json(+5 -5)📝
packages/conversation-calls/server.mjs(+154 -154)📝
packages/conversation-calls/src/engine/packages/client/src/components/chat/ConversationCallSurface.tsx(+13 -48)➕
packages/conversation-calls/src/engine/packages/client/src/lib/call-mic-segmenter.ts(+62 -0)📝
packages/conversation-calls/src/engine/packages/server/src/routes/conversation-calls.routes.ts(+7 -7)➕
packages/conversation-calls/src/engine/packages/server/src/services/conversation/call-upload.ts(+39 -0)📝
scripts/build-feature-packages.mjs(+3 -1)➕
tests/calls-mic-segments.regression.ts(+235 -0)📝
tests/conversation-calls-summary.regression.mjs(+1 -1)📄 Description
Pull request
Linked issue
Closes #1285
Reported in Pasta-Devs/Marinara-Engine#7344 ("the mic cuts off before I've barely finished a sentence"). Follows Pasta-Devs/Marinara-Agents#1281 (Calls 1.1.0).
Why this change
transcriptionMode(and every other field) after the file, so when the request arrived in pieces the field was not parsed yet. The clip was then sent down the provider-native path and failed. The speech was gone. The Pasta-Devs/Marinara-Agents#1281 verifier saw this in 1–2 of 12 uploads.What changed
Package
conversation-calls1.1.0 → 1.1.1. The staging catalog has published up to 1.1.0, and the only higher number ever used (1.0.18) was on a closed, unmerged branch.Upload race (server)
services/conversation/call-upload.ts→readCallUpload(req.parts(...))reads every part of the upload. It buffers the first file withtoBuffer(), so the route's existing 25 MB limit still applies (an oversized upload now gets 413 instead of being silently truncated). It collects every text field in whatever order it arrives. Because the route now reads the whole body, it also bounds it:files: 1, fields: 16(the client sends one file and six fields). A second file gets 413. Too many fields are refused too: 413 on@fastify/multipart9.4, and a "Premature close" 500 on 10.1. Fields keep@fastify/multipart's{ value }shape, so the rest ofPOST /:id/mediais unchanged.use-conversation-calls.ts, which is still a vendored copy undersources/engine, not package-owned. Its field order is unchanged, and the server now handles either order. The soundboard upload has the samereq.file()pattern. It is left alone because its only trailing field (name) falls back to the same file name the client sends.Silence check (client)
setIntervalinConversationCallSurface.tsxinto a package-ownedlib/call-mic-segmenter.ts(createCallMicSegmenter().check(rms, now, clipStartedAt)→start | speech | split | end | wait). The surface still owns the recorder,voicedMs/peakRmsand the send filter.CALL_MIC_*constants move unchanged into the new module, and the regression pins them.History (step 3 of the investigation)
git log -S CALL_MIC_SILENCE_MS/-S CALL_MIC_RMS_CONTINUE/-G CALL_MIC_on Marinara-Engine: the values have been set only once, in 73efb4e28 ("Add Conversation call support for v2.1.0", 2026-07-05). They were later moved unchanged during extraction (5610c23f9, Engine → Agents). The wholestartRecordingfunction, which holds the stream constraints (echoCancellation/noiseSuppression/autoGainControl), the AudioContext/analyser setup (fftSize1024, smoothing 0.15), the timer, the start/continue thresholds, the timer reset on resumed speech, the 60 s split and the min-voiced/min-peak filter, is byte-identical in all 16 Engine revisions of the surface and in Calls 1.1.0. No threshold or timer was changed by mistake, so nothing is restored.Package and security impact
conversation-callsengine.minstays 2.4.1.req.parts(),part.typeandtoBuffer()exist in@fastify/multipart9.4 (Engine 2.4.1) and 10.1 (current Engine), and both were exercised (see checks).Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
npm run check,npm run typecheck:packages,npm run test:security, the Calls regressions (calls-playback,calls-speech-to-text, newcalls-mic-segments,conversation-calls-summary,calls-swarmui-video),node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-package-locale-keys.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs,node scripts/tests/catalog-generatedat-determinism.regression.mjs,node scripts/tests/vendored-engine.regression.mjs,node scripts/tests/ruleset-package.regression.mjs,node scripts/tests/ui-translation-retention.regression.mjs,node scripts/validate-pr-triage.mjsandgit diff --checkall pass. The same list passes on a pristineorigin/stagingworktree (83c4016d), and lint output is identical. Build:MARINARA_ENGINE_ROOTat Engined71106851. At that root, rebuilding Calls 1.1.0 from pristineorigin/stagingchanges nothing (byte for byte). Rebuilding this branch twice gives identical outputs.sources/engineandscripts/vendored-engine-baseline.jsonare unchanged. TheCALL_MIC_*constants pass straight through, and the builtclient.jscontains the new 240 ms cap; the regression checks it. Types: a stricttscof the Calls files overlaid on Engined71106851sources, with the Engine's module augmentations loaded, reports only the pre-existingProviderConnectionerror in the routes. That error is identical on pristine.req.parts()→readCallUploadand the new client module typecheck cleanly. Upload race, real parser (temporary script, not committed): a Fastify server using the Engine's own@fastify/multipart10.1.1 received a 160 KB file part with its fields, and the body was split so thattranscriptionModearrived 30 ms after the file. The oldreq.file()pattern readtranscriptionModein 0/12 uploads;readCallUploadread it in 12/12. Both read it in 12/12 with the fields first or the body in one write. The same results hold with@fastify/multipart9.4.0 (Engine 2.4.1). An oversized upload or a second file returns 413, and 17 fields are refused. Silence check, synthetic speech (temporary script, not committed): macOSsayproduced WAVs with pauses. The analyser's 1024-sample byte snapshot was emulated at every check and run through the old and new logic. In the foreground (with and without ±60 ms jitter) both give identical clips: pauses of 1.5/2.0/2.5 s stay in one clip at three voice levels, and 2.8 s of silence ends it. With 1-second checks, a hesitant sentence ("I think, … what I wanted to say is, … that the movie was, … how do you say, … a little bit boring") was cut into 3 clips by the old logic and kept as 1 by the new. The committed regression fails with wall-clock silence restored: 11 clips instead of 1. A real-browser run with Chromium's fake audio capture hung ongetUserMediain headless mode here, so it was not used. Local CodeRabbit (one run, onae811f02): one finding, fixed in922b7c6e. It said to bound the multipart upload now that every part is read (files/fieldslimits). The fix, the rebuild (byte-identical when rebuilt twice) and the full check list above were rerun after it. The release note wording ("background tab or behind other windows") changed in the same commit.Documentation impact
No documentation states the silence behaviour in hidden tabs. The package release notes cover it.
UI evidence (if applicable)
No visual change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.