[PR #945] [MERGED] fix(calls): keep blocked Safari playback responsive and cancellable #1204

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/945
Author: @SpicyMarinara
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/calls-safari-playback


📝 Commits (6)

  • ebf5bac chore: start Calls Safari playback fix
  • 961c17a fix(calls): yield while Safari blocks voice playback
  • 947354a test(calls): keep release and browser checks in CI
  • 6479248 ci: scope installed Calls browser proof to its package
  • a94fbc7 test(slurp): follow current staged settings and profile controls
  • 19ff923 Merge remote-tracking branch 'origin/staging' into codex/calls-safari-playback

📊 Changes

19 files changed (+771 additions, -281 deletions)

View changed files

➕ .github/workflows/calls-browser.yml (+67 -0)
📝 .github/workflows/pull-request-checks.yml (+7 -2)
➕ artifacts/conversation-calls-1.0.17.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 (+12 -12)
📝 packages/conversation-calls/manifest.json (+5 -5)
📝 packages/conversation-calls/server.mjs (+273 -224)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 sources/engine/packages/client/src/lib/tts-service.ts (+83 -6)
➕ tests/calls-playback.regression.ts (+97 -0)
📝 tests/conversation-calls-summary.regression.mjs (+1 -1)
➕ tests/package-calls.e2e.ts (+164 -0)
📝 tests/package-slurp2.e2e.ts (+15 -6)

📄 Description

Why this change

Calls bundled an older audio-playback loop: Safari could reject autoplay while the page was already visible, causing immediate retries that starved the event loop. Backport the existing Engine playback guard into Calls, so it waits for a trusted gesture, cancels cleanly when the call ends, and bounds repeated failures.

Closes #944
Closes Pasta-Devs/Marinara-Engine#6346

What changed

Calls 1.0.17 rebuilds the package, artifact and catalog entries from the maintained source. Decode failures fail immediately; foreground retries have the same floor and limit as Engine. No new dependencies, permissions, entrypoints or storage migration.

Validation

  • The focused regression failed before the fix and passes after it: no immediate retry while autoplay is blocked, trusted-gesture recovery, synthetic-event rejection, cancellation, decode failure and retry limit.
  • Installed the rebuilt artifact into isolated Engine staging fixtures. Desktop and phone-sized Chromium both kept timers and controls responsive with blocked voice playback; End call cancelled it successfully.
  • npm run check, package type checks, catalog/lane/localization/release-note validations, Calls SwarmUI regression and bundle syntax checks passed. Existing lint warnings remain.
  • Local CodeRabbit completed with zero product findings. Hosted review findings for the release assertion and browser CI coverage were addressed. The final local CodeRabbit review of the CI/test follow-up at a94fbc7 also completed with zero findings. Hosted incremental re-review is currently rate limited; the completed implementation review and all its resolved findings remain recorded on this PR.
  • The installed Calls browser proof passed on GitHub CI. It uses its own workflow with the existing package runner; Noodle/Slurp suites retain their existing shared-builder triggers. Their stale Slurp Remastered fixture now applies staged settings explicitly, follows current navigation/tabs, and preserves the already-open profile controls. Persistence and viewer-access assertions remain in place; all 13 active browser cases passed locally (one existing mobile skip).

The package installer fixture validates the ZIP and manifest before installation. A physical iPhone running iOS 18.7 and a real TTS provider were unavailable; the original device needs a retest after updating Calls. The browser proof injects autoplay rejection and uses a fake audio response.

Owner: @SpicyMarinara, assisted by Codex.

Manual verification

  • Update Calls through Agents → Download Agents, then restart as prompted.
  • Manually verify a real call on iOS 18.7 stays responsive after a spoken reply.
  • Check voice recovery after a tap, call cancellation, and normal audio playback.

UI evidence

Desktop/mobile installed-package proof.


🔄 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/945 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/19/2026 **Status:** ✅ Merged **Merged:** 9/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/calls-safari-playback` --- ### 📝 Commits (6) - [`ebf5bac`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ebf5bac5097ceb67967ff20624c74d1df75e9f0e) chore: start Calls Safari playback fix - [`961c17a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/961c17a7c9d4fb5b9b979fb0ae6e902b3e819fff) fix(calls): yield while Safari blocks voice playback - [`947354a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/947354a5f7d84a5f90c218c49355717bcd7f768c) test(calls): keep release and browser checks in CI - [`6479248`](https://github.com/Pasta-Devs/Marinara-Agents/commit/64792485ae96fe9c2f8744badcbc5d4c9a6cd5d8) ci: scope installed Calls browser proof to its package - [`a94fbc7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a94fbc7bd0dd4e5691b7e3518253a8ebbba86d66) test(slurp): follow current staged settings and profile controls - [`19ff923`](https://github.com/Pasta-Devs/Marinara-Agents/commit/19ff923e43a7a75ea3070e1abe01419d8a3fd663) Merge remote-tracking branch 'origin/staging' into codex/calls-safari-playback ### 📊 Changes **19 files changed** (+771 additions, -281 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/calls-browser.yml` (+67 -0) 📝 `.github/workflows/pull-request-checks.yml` (+7 -2) ➕ `artifacts/conversation-calls-1.0.17.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` (+12 -12) 📝 `packages/conversation-calls/manifest.json` (+5 -5) 📝 `packages/conversation-calls/server.mjs` (+273 -224) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `sources/engine/packages/client/src/lib/tts-service.ts` (+83 -6) ➕ `tests/calls-playback.regression.ts` (+97 -0) 📝 `tests/conversation-calls-summary.regression.mjs` (+1 -1) ➕ `tests/package-calls.e2e.ts` (+164 -0) 📝 `tests/package-slurp2.e2e.ts` (+15 -6) </details> ### 📄 Description ## Why this change Calls bundled an older audio-playback loop: Safari could reject autoplay while the page was already visible, causing immediate retries that starved the event loop. Backport the existing Engine playback guard into Calls, so it waits for a trusted gesture, cancels cleanly when the call ends, and bounds repeated failures. Closes #944 Closes Pasta-Devs/Marinara-Engine#6346 ## What changed Calls 1.0.17 rebuilds the package, artifact and catalog entries from the maintained source. Decode failures fail immediately; foreground retries have the same floor and limit as Engine. No new dependencies, permissions, entrypoints or storage migration. ## Validation - The focused regression failed before the fix and passes after it: no immediate retry while autoplay is blocked, trusted-gesture recovery, synthetic-event rejection, cancellation, decode failure and retry limit. - Installed the rebuilt artifact into isolated Engine staging fixtures. Desktop and phone-sized Chromium both kept timers and controls responsive with blocked voice playback; End call cancelled it successfully. - `npm run check`, package type checks, catalog/lane/localization/release-note validations, Calls SwarmUI regression and bundle syntax checks passed. Existing lint warnings remain. - Local CodeRabbit completed with zero product findings. Hosted review findings for the release assertion and browser CI coverage were addressed. The final local CodeRabbit review of the CI/test follow-up at `a94fbc7` also completed with zero findings. Hosted incremental re-review is currently rate limited; the completed implementation review and all its resolved findings remain recorded on this PR. - The installed Calls browser proof passed on GitHub CI. It uses its own workflow with the existing package runner; Noodle/Slurp suites retain their existing shared-builder triggers. Their stale Slurp Remastered fixture now applies staged settings explicitly, follows current navigation/tabs, and preserves the already-open profile controls. Persistence and viewer-access assertions remain in place; all 13 active browser cases passed locally (one existing mobile skip). The package installer fixture validates the ZIP and manifest before installation. A physical iPhone running iOS 18.7 and a real TTS provider were unavailable; the original device needs a retest after updating Calls. The browser proof injects autoplay rejection and uses a fake audio response. Owner: @SpicyMarinara, assisted by Codex. ## Manual verification - [ ] Update Calls through Agents → Download Agents, then restart as prompted. - [ ] Manually verify a real call on iOS 18.7 stays responsive after a spoken reply. - [ ] Check voice recovery after a tap, call cancellation, and normal audio playback. ## UI evidence [Desktop/mobile installed-package proof](https://gist.github.com/SpicyMarinara/09985efe25a0886d67755d87171823b5#file-05-calls-html). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:05:30 +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#1204
No description provided.