mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #2139] [MERGED] fix(conversation-calls): a finished call video never reads as missing (1.1.8) #2136
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#2136
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/2139
Author: @SpicyMarinara
Created: 11/6/2026
Status: ✅ Merged
Merged: 11/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/calls-video-manifest-race📝 Commits (2)
5c8b70cfix(conversation-calls): a finished call video never reads as missing (1.1.8)de8b57fMerge branch 'staging' into fix/calls-video-manifest-race📊 Changes
16 files changed (+202 additions, -117 deletions)
View changed files
➕
artifacts/conversation-calls-1.1.8.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(+4 -0)📝
packages/conversation-calls/client.js(+46 -38)📝
packages/conversation-calls/manifest.json(+5 -5)📝
packages/conversation-calls/server.mjs(+38 -38)📝
packages/conversation-calls/src/engine/packages/server/src/services/conversation/call-character-videos.service.ts(+6 -2)📝
scripts/build-feature-packages.mjs(+2 -1)📝
scripts/vendored-engine-baseline.json(+0 -1)📝
tests/calls-swarmui-video.regression.mjs(+58 -7)📝
tests/conversation-calls-summary.regression.mjs(+1 -1)📄 Description
Pull request
Linked issue
Closes #2132
Why this change
tests/calls-swarmui-video.regression.mjsfailed once in CI with'missing' !== 'ready'. It turned out to be a real race in Conversation Calls, not a flaky test.getConversationCallCharacterVideoManifestreadmanifest.jsonfirst and only then checked whether a generation job held its lock. When the job finished during that read, the poll got the old"generating"entry and found no lock. It then reportedgenerating: falsewith the clipmissing.In the app, the client stops polling once
generatingis false. A call's video tile could then stay on "missing" until something else made it refresh.Under load the unmodified test failed 5 times in 300 runs, and 16 in 500 in a second stress loop.
What changed
server.mjs,client.js, manifest, artifact and catalog entries).getConversationCallCharacterVideoManifestnow reads the manifest and builds its answer under the per-character manifest lock (withManifestLock). A job writes its final clip entry under that same lock before it releases its generation lock, so the read and the generation state can't disagree.updateDiskManifest. All six internal callers call the getter after their update has finished.packages/conversation-calls/src/engine/packages/server/src/services/conversation/call-character-videos.service.ts.sources/engineis a pinned vendored snapshot, and its baseline may only shrink. Calls 1.1.2 took overconversation-call-command-runtime.tsthe same way (6f4c190b8).conversationCallsOwnedSourcePaths, and its baseline line is removed.tests/calls-swarmui-video.regression.mjsimports the moved file and adds a deterministic overlap case. It holds one manifest read open while the job finishes, then asserts the answer says either still generating orready.client.jschanged although no client source did. The rebuild picks up the Engine's newer lucide-react, which other packages' bundles already carry.server.mjswithout this fix rebuilds byte-identical.Package and security impact
conversation-callsValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
calls-swarmui-video,calls-playback,calls-speech-to-text,calls-mic-segments,calls-character-call,conversation-calls-summary, all passing.npm run typecheck:packages,npm run check,validate-catalog,validate-package-locales,validate-package-locale-keys,catalog-release-notes,test-catalog-lanes,vendored-engine.regression.mjsandgit diff --check, all passing.validate-vendored-engine.mjsfails, but not because of this PR. It reports 165 "Unbaselined drifted" errors against current Engine staging, and unmodified Agents staging gets the identical 165. The Noodle browser job on staging already fails on this check (163 errors on 2026-11-05). This PR removes one drifted file and adds none.Documentation impact
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.