[PR #1355] [MERGED] fix(calls): make the Calls browser proof pass on current Engine staging (#1338) #1417

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

📋 Pull Request Information

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

Base: staging ← Head: fix/1338-calls-browser-e2e


📝 Commits (8)

  • 24770d9 test(calls): dismiss the chat layout intro in the browser proof; upload the trace on failure (#1338)
  • 3489c86 Merge remote-tracking branch 'origin/staging' into fix/1338-calls-browser-e2e
  • 44facba test(calls): keep a timed-out step's error visible in the Calls browser proof (#1338)
  • 6ebd5f3 Merge branch 'staging' into fix/1338-calls-browser-e2e
  • d431d82 Merge branch 'staging' into fix/1338-calls-browser-e2e
  • 3662e10 Merge branch 'staging' into fix/1338-calls-browser-e2e
  • c9beccb fix(calls): 1.1.4 — keep the Chat Settings bubble off the phone Call Chat close button (#1338)
  • 6ca417a fix(calls): move focus into the phone Call Chat dialog and keep it there (#1338)

📊 Changes

15 files changed (+97 additions, -38 deletions)

View changed files

📝 .github/workflows/calls-browser.yml (+9 -0)
➕ artifacts/conversation-calls-1.1.4.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/client.js (+11 -11)
📝 packages/conversation-calls/manifest.json (+3 -3)
📝 packages/conversation-calls/src/engine/packages/client/src/components/chat/ConversationCallSurface.tsx (+23 -2)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/conversation-calls-summary.regression.mjs (+6 -1)
📝 tests/package-calls.e2e.ts (+4 -2)

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

Why this change

  • The "Calls package browser" job has timed out on every Calls PR since early October, so it no longer tells us whether Calls still works. I reproduced it locally against Engine staging 1c0e7e1b1. There are two separate causes:
    1. Desktop and mobile: Engine now opens a one-time "Make this chat your own" dialog (chatWindowIntro, Engine 7f4e6ae98, 2026-10-04) over the chat. The test's first click on "Open call" waited behind it until the 60s timeout.
    2. Mobile only: Engine's floating "Chat Settings" bubble (.mari-window-bubble, Engine 118b7d3fc, 2026-10-04) now sits over the Calls call-chat sheet's "Close call chat" button. Playwright reports <button … title="Chat Settings" … class="mari-window-bubble fixed"> intercepts pointer events. Real phone users hit the same overlap, and Engine v2.5.0 ships the bubble, so this is a product bug, not just a test problem.
  • CI kept no artifacts, so neither cause was visible from a failed run. (The 2026-10-01 run's log has expired, so I can't say what it hit.)

What changed

Test and CI:

  • tests/package-calls.e2e.ts: seed chatWindowIntroDismissed: true next to the existing chatHelpSeenModes seed. The test's assertions are unchanged.
  • tests/package-calls.e2e.ts: the cleanup deletes in finally ignore their own errors. After a test timeout Playwright has already closed the request context, so the first delete threw and replaced the error from the step that hung. The CI log then pointed at the cleanup line (162) instead of the blocked "Close call chat" tap.
  • .github/workflows/calls-browser.yml: on failure, upload test-results/ (Playwright trace, screenshot, video) as a 7-day calls-browser-playwright-<attempt> artifact. The upload-artifact pin is the one Engine's own Playwright workflow uses.

Calls 1.1.3 → 1.1.4 (conversation-calls, package-owned source):

  • The mobile Call Chat sheet opts into Engine's existing chat-local modal contract: role="dialog", aria-modal="true", and aria-label="Call Chat" (the sheet's visible title, so no new copy). Engine's globals.css (efe26fd6f, in v2.5.0) hides its floating windows and the Chat Settings bubble while such a dialog is open: body:has([data-chat-mode] [role="dialog"][aria-modal="true"]) .mari-window-bubble { visibility: hidden }.
  • The sheet now mounts only in the mobile layout (mobileChatOpen && mobileCallLayout). Before, it stayed mounted (CSS-hidden by md:hidden) when the window crossed the breakpoint with Call Chat open, for example when a phone is rotated to landscape. With the dialog role, that hidden sheet would still have matched the rule above and hidden Engine's floating windows on desktop.
  • Because the sheet now claims aria-modal, it also manages focus. It reuses the vendored useDialogFocusScope hook, as Noodle's mobile drawer and Slurp's sheet already do. Focus moves to the close button when Call Chat opens, Tab stays inside the sheet and its portaled Connections menu, and focus returns to "Open call chat" when it closes. The voice-typing path still focuses the composer. This answers the local CodeRabbit review (see Validation).
  • scripts/build-feature-packages.mjs: Calls 1.1.4, above every version the catalog lanes have published (highest was 1.1.3).
  • packages/conversation-calls/CHANGELOG.md: 1.1.4 entry (patch, unmarked). The release-notes build requires the changelog to lead with the published version.
  • tests/conversation-calls-summary.regression.mjs: pins 1.1.4. It now also asserts that the built client.js carries the dialog attributes and that the source wires the focus scope to the mobile-only sheet. These assertions fail against the 1.1.3 source.
  • Rebuilt the Calls manifest, client.js, artifacts/conversation-calls-1.1.4.zip, the v2/v3/legacy catalog entries, and the notes.json sidecars.

Build provenance

  • Built with MARINARA_ENGINE_ROOT at Engine d71106851 (the root #1356 used for Calls 1.1.3), in a detached worktree with pnpm install --frozen-lockfile.
  • First check: unchanged Calls 1.1.3 rebuilt at that root was byte-identical (git status clean after the build rewrote the manifest, payloads and ZIP).
  • The 1.1.4 build changes only client.js (server.mjs is unchanged), plus the manifest, ZIP, catalog entries and notes. artifacts/conversation-calls-1.1.4.zip sha256 33b765da6f44ba0f3d747a06082a7ef51690fc9b3430dff0db74d63a8cb7951f.

Package and security impact

  • Affected package IDs: conversation-calls (1.1.3 → 1.1.4).
  • Engine compatibility impact: none. engine.min stays 2.4.1. Older Engines have no floating bubbles and no rule keyed on the role, so there the attributes only add dialog semantics and focus handling.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none

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

  • Calls browser proof, final build, run locally 3 times with MARINARA_ENGINE_ROOT=<Engine staging 171d45068> node scripts/run-package-browser-tests.mjs conversation-calls tests/package-calls.e2e.ts: 2 passed on every run, desktop and mobile both green (6.5s, 6.5s, 6.1s). The mobile proof screenshot shows Call Chat with the close X clear and no Chat Settings bubble.
  • One-off local probe on the mobile project, against the same host (a temporary spec, deleted afterwards, not committed): the bubble was visible before Call Chat opened, hidden while it was open, and visible again after it closed. Focus landed on "Close call chat" when the sheet opened and stayed inside the sheet through 12 Tab/Shift+Tab presses. It returned to "Open call chat" on close. With Call Chat open, widening the viewport to 1440px unmounted the sheet, and the chat-local modal rule no longer matched.
  • Earlier, before the package change: on origin/staging, desktop and mobile both timed out, and the failure snapshot showed the "Make this chat your own" dialog. On this branch's test-only commits, desktop passed and mobile timed out on "Close call chat" because the Chat Settings bubble intercepted the tap. CI run 38375681084 showed the same thing, and its uploaded calls-browser-playwright-1 artifact (about 2.7 MB) holds a mobile trace.zip with the intercepted tap.
  • On the final commit, all of these pass locally: npm run check (0 errors; the 811 warnings are already there on staging, and the changed files add none), npm run typecheck:packages, 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, npm run test:security and git diff --check. So do all six Calls regressions from the PR checks workflow and tests/claude-subscription-overlay.regression.mjs.
  • Local CodeRabbit (--committed against the staging merge base, run once on the package commit) returned 2 findings, both asking for the same fix: move focus into the Call Chat dialog, trap it, and restore it on close. That fix is in the second package commit. CodeRabbit did not review that commit locally. The GitHub review will cover it.
  • Manually verify on a phone-width Engine staging window: open a Calls call and tap "Open call chat". The Chat Settings bubble should disappear while Call Chat is open, and the "Close call chat" X should be tappable. After closing Call Chat, the bubble should come back.
  • Manually verify on a phone: rotate to landscape with Call Chat open, then back. Engine's floating windows and bubble should show in landscape, and Call Chat should be open again in portrait.
  • Manually verify with VoiceOver or TalkBack on a phone: opening Call Chat should move to its close button, and the call controls behind the sheet should not be reachable until it closes.

Known limits

  • ponytail: the vendored useDialogFocusScope is frozen and predates Engine's stacked-modal guard. If an Engine dialog opens above Call Chat (for example the ⌘K omnibar with a hardware keyboard at phone width), Tab inside that dialog returns to the sheet. Noodle's drawer and Slurp's sheet have the same limit. Upgrade path: a package-owned copy of Engine's current hook.
  • With aria-modal, screen readers may treat the portaled Connections menu as outside the dialog. Engine's own chat-local modals have the same limit.

Documentation impact

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

Summary by CodeRabbit

  • Bug Fixes

    • On phones, the Chat Settings bubble now hides while Call Chat is open and returns when it closes, so it no longer covers the close button.
    • The mobile Call Chat sheet now has dialog semantics and improved focus handling for assistive technology.
  • Release

    • Conversation Calls updated to version 1.1.4.

🔄 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/1355 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/1338-calls-browser-e2e` --- ### 📝 Commits (8) - [`24770d9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/24770d90cc60aa3decafbca5749c550f3413c55d) test(calls): dismiss the chat layout intro in the browser proof; upload the trace on failure (#1338) - [`3489c86`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3489c86fce12e06ea61a617b020e3ce40da1d2a9) Merge remote-tracking branch 'origin/staging' into fix/1338-calls-browser-e2e - [`44facba`](https://github.com/Pasta-Devs/Marinara-Agents/commit/44facba6f526fdb736adea444a9d7badfa98b708) test(calls): keep a timed-out step's error visible in the Calls browser proof (#1338) - [`6ebd5f3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6ebd5f3aafb01e7d336aa3d4774ab77213a83496) Merge branch 'staging' into fix/1338-calls-browser-e2e - [`d431d82`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d431d821114c6e848ddf2387041e040c58f5ef4d) Merge branch 'staging' into fix/1338-calls-browser-e2e - [`3662e10`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3662e10d164a58fb7646c7e9451c8f43c469c891) Merge branch 'staging' into fix/1338-calls-browser-e2e - [`c9beccb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c9beccb0a886dc5c3f13048af1e70d400e1b96da) fix(calls): 1.1.4 — keep the Chat Settings bubble off the phone Call Chat close button (#1338) - [`6ca417a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6ca417a47957f05f344ca3bdde28435e751efe56) fix(calls): move focus into the phone Call Chat dialog and keep it there (#1338) ### 📊 Changes **15 files changed** (+97 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/calls-browser.yml` (+9 -0) ➕ `artifacts/conversation-calls-1.1.4.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/client.js` (+11 -11) 📝 `packages/conversation-calls/manifest.json` (+3 -3) 📝 `packages/conversation-calls/src/engine/packages/client/src/components/chat/ConversationCallSurface.tsx` (+23 -2) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/conversation-calls-summary.regression.mjs` (+6 -1) 📝 `tests/package-calls.e2e.ts` (+4 -2) </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 #1338 ## Why this change - The "Calls package browser" job has timed out on every Calls PR since early October, so it no longer tells us whether Calls still works. I reproduced it locally against Engine staging `1c0e7e1b1`. There are two separate causes: 1. **Desktop and mobile:** Engine now opens a one-time "Make this chat your own" dialog (`chatWindowIntro`, Engine `7f4e6ae98`, 2026-10-04) over the chat. The test's first click on "Open call" waited behind it until the 60s timeout. 2. **Mobile only:** Engine's floating "Chat Settings" bubble (`.mari-window-bubble`, Engine `118b7d3fc`, 2026-10-04) now sits over the Calls call-chat sheet's "Close call chat" button. Playwright reports `<button … title="Chat Settings" … class="mari-window-bubble fixed"> intercepts pointer events`. Real phone users hit the same overlap, and Engine v2.5.0 ships the bubble, so this is a product bug, not just a test problem. - CI kept no artifacts, so neither cause was visible from a failed run. (The 2026-10-01 run's log has expired, so I can't say what it hit.) ## What changed Test and CI: - `tests/package-calls.e2e.ts`: seed `chatWindowIntroDismissed: true` next to the existing `chatHelpSeenModes` seed. The test's assertions are unchanged. - `tests/package-calls.e2e.ts`: the cleanup deletes in `finally` ignore their own errors. After a test timeout Playwright has already closed the request context, so the first delete threw and replaced the error from the step that hung. The CI log then pointed at the cleanup line (162) instead of the blocked "Close call chat" tap. - `.github/workflows/calls-browser.yml`: on failure, upload `test-results/` (Playwright trace, screenshot, video) as a 7-day `calls-browser-playwright-<attempt>` artifact. The `upload-artifact` pin is the one Engine's own Playwright workflow uses. Calls 1.1.3 → **1.1.4** (`conversation-calls`, package-owned source): - The mobile Call Chat sheet opts into Engine's existing chat-local modal contract: `role="dialog"`, `aria-modal="true"`, and `aria-label="Call Chat"` (the sheet's visible title, so no new copy). Engine's `globals.css` (`efe26fd6f`, in v2.5.0) hides its floating windows and the Chat Settings bubble while such a dialog is open: `body:has([data-chat-mode] [role="dialog"][aria-modal="true"]) .mari-window-bubble { visibility: hidden }`. - The sheet now mounts only in the mobile layout (`mobileChatOpen && mobileCallLayout`). Before, it stayed mounted (CSS-hidden by `md:hidden`) when the window crossed the breakpoint with Call Chat open, for example when a phone is rotated to landscape. With the dialog role, that hidden sheet would still have matched the rule above and hidden Engine's floating windows on desktop. - Because the sheet now claims `aria-modal`, it also manages focus. It reuses the vendored `useDialogFocusScope` hook, as Noodle's mobile drawer and Slurp's sheet already do. Focus moves to the close button when Call Chat opens, Tab stays inside the sheet and its portaled Connections menu, and focus returns to "Open call chat" when it closes. The voice-typing path still focuses the composer. This answers the local CodeRabbit review (see Validation). - `scripts/build-feature-packages.mjs`: Calls 1.1.4, above every version the catalog lanes have published (highest was 1.1.3). - `packages/conversation-calls/CHANGELOG.md`: 1.1.4 entry (patch, unmarked). The release-notes build requires the changelog to lead with the published version. - `tests/conversation-calls-summary.regression.mjs`: pins 1.1.4. It now also asserts that the built `client.js` carries the dialog attributes and that the source wires the focus scope to the mobile-only sheet. These assertions fail against the 1.1.3 source. - Rebuilt the Calls manifest, `client.js`, `artifacts/conversation-calls-1.1.4.zip`, the v2/v3/legacy catalog entries, and the `notes.json` sidecars. ### Build provenance - Built with `MARINARA_ENGINE_ROOT` at Engine `d71106851` (the root #1356 used for Calls 1.1.3), in a detached worktree with `pnpm install --frozen-lockfile`. - First check: unchanged Calls 1.1.3 rebuilt at that root was byte-identical (`git status` clean after the build rewrote the manifest, payloads and ZIP). - The 1.1.4 build changes only `client.js` (`server.mjs` is unchanged), plus the manifest, ZIP, catalog entries and notes. `artifacts/conversation-calls-1.1.4.zip` sha256 `33b765da6f44ba0f3d747a06082a7ef51690fc9b3430dff0db74d63a8cb7951f`. ## Package and security impact - Affected package IDs: `conversation-calls` (1.1.3 → 1.1.4). - Engine compatibility impact: none. `engine.min` stays 2.4.1. Older Engines have no floating bubbles and no rule keyed on the role, so there the attributes only add dialog semantics and focus handling. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none ## 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 - Calls browser proof, final build, run locally 3 times with `MARINARA_ENGINE_ROOT=<Engine staging 171d45068> node scripts/run-package-browser-tests.mjs conversation-calls tests/package-calls.e2e.ts`: `2 passed` on every run, desktop and mobile both green (6.5s, 6.5s, 6.1s). The mobile proof screenshot shows Call Chat with the close X clear and no Chat Settings bubble. - One-off local probe on the mobile project, against the same host (a temporary spec, deleted afterwards, not committed): the bubble was visible before Call Chat opened, hidden while it was open, and visible again after it closed. Focus landed on "Close call chat" when the sheet opened and stayed inside the sheet through 12 Tab/Shift+Tab presses. It returned to "Open call chat" on close. With Call Chat open, widening the viewport to 1440px unmounted the sheet, and the chat-local modal rule no longer matched. - Earlier, before the package change: on `origin/staging`, desktop and mobile both timed out, and the failure snapshot showed the "Make this chat your own" dialog. On this branch's test-only commits, desktop passed and mobile timed out on "Close call chat" because the Chat Settings bubble intercepted the tap. CI run 38375681084 showed the same thing, and its uploaded `calls-browser-playwright-1` artifact (about 2.7 MB) holds a mobile `trace.zip` with the intercepted tap. - On the final commit, all of these pass locally: `npm run check` (0 errors; the 811 warnings are already there on staging, and the changed files add none), `npm run typecheck:packages`, `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`, `npm run test:security` and `git diff --check`. So do all six Calls regressions from the PR checks workflow and `tests/claude-subscription-overlay.regression.mjs`. - Local CodeRabbit (`--committed` against the staging merge base, run once on the package commit) returned 2 findings, both asking for the same fix: move focus into the Call Chat dialog, trap it, and restore it on close. That fix is in the second package commit. CodeRabbit did not review that commit locally. The GitHub review will cover it. - Manually verify on a phone-width Engine staging window: open a Calls call and tap "Open call chat". The Chat Settings bubble should disappear while Call Chat is open, and the "Close call chat" X should be tappable. After closing Call Chat, the bubble should come back. - Manually verify on a phone: rotate to landscape with Call Chat open, then back. Engine's floating windows and bubble should show in landscape, and Call Chat should be open again in portrait. - Manually verify with VoiceOver or TalkBack on a phone: opening Call Chat should move to its close button, and the call controls behind the sheet should not be reachable until it closes. ### Known limits - `ponytail:` the vendored `useDialogFocusScope` is frozen and predates Engine's stacked-modal guard. If an Engine dialog opens above Call Chat (for example the ⌘K omnibar with a hardware keyboard at phone width), Tab inside that dialog returns to the sheet. Noodle's drawer and Slurp's sheet have the same limit. Upgrade path: a package-owned copy of Engine's current hook. - With `aria-modal`, screen readers may treat the portaled Connections menu as outside the dialog. Engine's own chat-local modals have the same limit. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * On phones, the Chat Settings bubble now hides while Call Chat is open and returns when it closes, so it no longer covers the close button. * The mobile Call Chat sheet now has dialog semantics and improved focus handling for assistive technology. * **Release** * Conversation Calls updated to version 1.1.4. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:11:07 +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#1417
No description provided.