[GH-ISSUE #6269] [Issue]: Mobile WebKit intermittently stalls closing Chat Settings in dice-turn regression #3498

Closed
opened 2026-10-21 06:03:40 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @kolacheee on GitHub (Sep 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6269

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Mobile WebKit intermittently stalls on Playwright's actionability check for the visible Close Chat Settings button in e2e/game-one-request-dice.e2e.ts. This failed one browser shard for #6266; the separate mobile-webkit failure is its aggregate verdict, not a second failing test.

Evidence supports a pre-existing test/browser timing flake rather than a hybrid-terrain regression. The underlying cause of the actionability stall is not yet established.

Expected behavior

After disabling one-request dice, the settings drawer closes and the test finishes checking the ordinary two-request turn. The existing close-button interaction should become actionable within its timeout.

Actual behavior

At test line 325, closeTools() calls the button click at line 165. Playwright finds the expected button, then remains at “waiting for element to be visible, enabled and stable” until the 10-second action timeout. The complete test eventually exceeds its 120-second timeout.

The same close interaction succeeded three earlier times in this exact test (approximately 231 ms, 441 ms, and 285 ms). The final attempt lasted 10,004.6 ms. The retained trace shows the drawer and close button rendered; no page crash, JavaScript exception, or product error explains the stall. Subsequent dice and terrain-restore cases passed in the same job.

Steps to reproduce

  1. Run the Release Regression Matrix with Playwright 1.61.0, project mobile-webkit, shard 3/4, preserving the preceding test load. The observed run used commit 616c5f451c17b3222dc9f1a0547225d883f014b1.
  2. In Game finishes a rolled turn in one request, and leaves the shipped two-request turn alone, exercise the repeated settings-drawer opens/closes and toggle one-request dice off near lines 317–325.
  3. Observe whether the final Close Chat Settings click stalls after resolving the button. This is intermittent; these steps are an investigation route, not a deterministic reproduction recipe.

Environment

  • Marinara Engine version: 2.4.6; PR #6266 head 616c5f451c17b3222dc9f1a0547225d883f014b1
  • Install type: source, GitHub Actions browser regression lane
  • OS + version: GitHub-hosted Ubuntu runner; see linked job's runner metadata
  • Browser or app shell: Playwright 1.61.0 mobile WebKit; 393 × 659 viewport

Logs, screenshots, or video

TimeoutError: locator.click: Timeout 10000ms exceeded.
- waiting for locator('.mari-chat-settings-drawer').getByRole('button', { name: 'Close Chat Settings' })
- locator resolved to <button aria-label="Close chat settings" ...>
- attempting click action
- waiting for element to be visible, enabled and stable
at closeTools (e2e/game-one-request-dice.e2e.ts:165:109)
at e2e/game-one-request-dice.e2e.ts:325:11

Additional context

The dice test and settings drawer are unchanged between the green terrain head and the failing head; GameSurface.tsx changes in that interval are comments only. The dice scenario has no active combat snapshot or combat tag, so it bypasses the new terrain restore, generation, persistence, and tactical UI paths. An earlier green feature run included the same five preceding terrain cases.

Related WebKit instability: #6141, but this failure did not close or crash the page and should not be assumed to share that cause. No duplicate matching this actionability stall was found during triage.

Next useful diagnostics if it repeats: replay the complete one-worker WebKit shard, record close-button geometry across animation frames, and capture page crash/close events. Do not hide the issue with forced clicks, arbitrary sleeps, or broad timeout increases without establishing why actionability never settled.

This issue records a supported flake classification and the remaining root-cause uncertainty; it does not change merge gates. Reported by @kolacheee with Astra/Sol triage while resolving #6266.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6269 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Mobile WebKit intermittently stalls on Playwright's actionability check for the visible **Close Chat Settings** button in `e2e/game-one-request-dice.e2e.ts`. This failed one browser shard for #6266; the separate `mobile-webkit` failure is its aggregate verdict, not a second failing test. Evidence supports a pre-existing test/browser timing flake rather than a hybrid-terrain regression. The underlying cause of the actionability stall is not yet established. ## Expected behavior After disabling one-request dice, the settings drawer closes and the test finishes checking the ordinary two-request turn. The existing close-button interaction should become actionable within its timeout. ## Actual behavior At test line 325, `closeTools()` calls the button click at line 165. Playwright finds the expected button, then remains at “waiting for element to be visible, enabled and stable” until the 10-second action timeout. The complete test eventually exceeds its 120-second timeout. The same close interaction succeeded three earlier times in this exact test (approximately 231 ms, 441 ms, and 285 ms). The final attempt lasted 10,004.6 ms. The retained trace shows the drawer and close button rendered; no page crash, JavaScript exception, or product error explains the stall. Subsequent dice and terrain-restore cases passed in the same job. ## Steps to reproduce 1. Run the Release Regression Matrix with Playwright 1.61.0, project `mobile-webkit`, shard `3/4`, preserving the preceding test load. The observed run used commit `616c5f451c17b3222dc9f1a0547225d883f014b1`. 2. In `Game finishes a rolled turn in one request, and leaves the shipped two-request turn alone`, exercise the repeated settings-drawer opens/closes and toggle one-request dice off near lines 317–325. 3. Observe whether the final `Close Chat Settings` click stalls after resolving the button. This is intermittent; these steps are an investigation route, not a deterministic reproduction recipe. ## Environment - Marinara Engine version: 2.4.6; PR #6266 head `616c5f451c17b3222dc9f1a0547225d883f014b1` - Install type: source, GitHub Actions browser regression lane - OS + version: GitHub-hosted Ubuntu runner; see linked job's runner metadata - Browser or app shell: Playwright 1.61.0 mobile WebKit; 393 × 659 viewport ## Logs, screenshots, or video - [Failing shard and complete log](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35178010919/job/105063940561) - [Failure artifact: trace, video, and error context](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35178010919/artifacts/10479905715) - [Same test passing on the PR base in 45.5 seconds](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35131126806/job/104912176753), commit `b659229c2e9c7c30d6e3d0e0921f583297dca96e` - [Same test passing on the earlier terrain head in 39.2 seconds](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35173564901/job/105050340278), commit `84c1400e98372049b225397fda46a48c4430231c` ```text TimeoutError: locator.click: Timeout 10000ms exceeded. - waiting for locator('.mari-chat-settings-drawer').getByRole('button', { name: 'Close Chat Settings' }) - locator resolved to <button aria-label="Close chat settings" ...> - attempting click action - waiting for element to be visible, enabled and stable at closeTools (e2e/game-one-request-dice.e2e.ts:165:109) at e2e/game-one-request-dice.e2e.ts:325:11 ``` ## Additional context The dice test and settings drawer are unchanged between the green terrain head and the failing head; `GameSurface.tsx` changes in that interval are comments only. The dice scenario has no active combat snapshot or combat tag, so it bypasses the new terrain restore, generation, persistence, and tactical UI paths. An earlier green feature run included the same five preceding terrain cases. Related WebKit instability: #6141, but this failure did not close or crash the page and should not be assumed to share that cause. No duplicate matching this actionability stall was found during triage. Next useful diagnostics if it repeats: replay the complete one-worker WebKit shard, record close-button geometry across animation frames, and capture page crash/close events. Do not hide the issue with forced clicks, arbitrary sleeps, or broad timeout increases without establishing why actionability never settled. This issue records a supported flake classification and the remaining root-cause uncertainty; it does not change merge gates. Reported by @kolacheee with Astra/Sol triage while resolving #6266. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:03:40 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kolacheee commented on GitHub (Sep 17, 2026):

The next run on 025442b1722b090b4640e0f078d1e08a4435f965 failed the same dice-turn test at a different actionability wait: narration.screenshot() at line 289 timed out while scrolling the element into view and waiting for it to be stable. The dice-marker value/title assertions immediately before the screenshot passed. This run did not reach the later Close Chat Settings failure documented above.

Latest failure log

The changing failure point provides further evidence of WebKit/test stability problems, but does not establish that both stalls share one underlying cause. No hybrid-terrain assertion failed. CodeRabbit completed without actionable findings on this head, all review threads are resolved, and the other current-head checks passed (excluding a superseded canceled triage run). The aggregate mobile-webkit check reports this single shard failure.

<!-- gh-comment-id:5708781358 --> @kolacheee commented on GitHub (Sep 17, 2026): The next run on `025442b1722b090b4640e0f078d1e08a4435f965` failed the same dice-turn test at a different actionability wait: `narration.screenshot()` at line 289 timed out while scrolling the element into view and waiting for it to be stable. The dice-marker value/title assertions immediately before the screenshot passed. This run did not reach the later Close Chat Settings failure documented above. [Latest failure log](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35181617613/job/105074844555) The changing failure point provides further evidence of WebKit/test stability problems, but does not establish that both stalls share one underlying cause. No hybrid-terrain assertion failed. CodeRabbit completed without actionable findings on this head, all review threads are resolved, and the other current-head checks passed (excluding a superseded canceled triage run). The aggregate mobile-webkit check reports this single shard failure.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 17, 2026):

Owner: @SpicyMarinara. Codex is addressing this in draft PR #6282 as part of the requested issue sweep. Focused implementation and regression/browser verification are in progress.

<!-- gh-comment-id:5710997542 --> @SpicyMarinara commented on GitHub (Sep 17, 2026): Owner: @SpicyMarinara. Codex is addressing this in draft PR #6282 as part of the requested issue sweep. Focused implementation and regression/browser verification are in progress.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 17, 2026):

Sweep investigation in #6282: the dice file passed three serial repetitions, and the full CI-shaped local WebKit shard (--fully-parallel --workers=1 --shard=3/4) passed with 72 tests and 32 existing skips. The shorter file-group shard passed too, but is not equivalent to the CI workload.

GitHub reproduced a different stall on the initial prompt-only sweep commit: run 35197115978, job 105122909654 timed out on page.reload() at line 280, after navigation committed but before the load event. The current local runs are macOS WebKit; they do not establish a Linux WebKit root cause. No forced clicks, arbitrary sleeps, timeout increases or new quarantines were added. This issue remains open pending a reproducible cause; the current PR still has to pass its browser gates.

<!-- gh-comment-id:5711632390 --> @SpicyMarinara commented on GitHub (Sep 17, 2026): Sweep investigation in #6282: the dice file passed three serial repetitions, and the full CI-shaped local WebKit shard (`--fully-parallel --workers=1 --shard=3/4`) passed with 72 tests and 32 existing skips. The shorter file-group shard passed too, but is not equivalent to the CI workload. GitHub reproduced a different stall on the initial prompt-only sweep commit: run 35197115978, job 105122909654 timed out on page.reload() at line 280, after navigation committed but before the load event. The current local runs are macOS WebKit; they do not establish a Linux WebKit root cause. No forced clicks, arbitrary sleeps, timeout increases or new quarantines were added. This issue remains open pending a reproducible cause; the current PR still has to pass its browser gates.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 17, 2026):

The current sweep head 6a6d7cb82723682741ba37c52dedab869d902edb reproduced another browser stall in run 35204455084, WebKit shard 3. This time the drawer closed successfully; the subsequent Game actions click at line 172 stalled after Playwright reported the button visible, enabled and stable and reached “performing click action.” It failed on the second settings visit (line 226), before the later reload and screenshot assertions.

The retained trace/video artifact shows the drawer close completing in 431 ms, followed by a 10-second click timeout and stalled page cleanup until the 120-second test deadline. The trace records no page-error or crash event before the stall. The same job passed the other 72 cases, with 32 existing skips. All other browser shards and the native/container checks passed on this head.

I am retaining this failure evidence and rerunning the failed shard through the normal gate. No assertions, clicks, browser timeouts or skips have been weakened. This expands the observed failure signature beyond the original stability wait; it still does not establish a product or browser root cause. The Playwright/WebKit update is separately being validated in #6286, without claiming it fixes this issue.

<!-- gh-comment-id:5712327206 --> @SpicyMarinara commented on GitHub (Sep 17, 2026): The current sweep head `6a6d7cb82723682741ba37c52dedab869d902edb` reproduced another browser stall in [run 35204455084, WebKit shard 3](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35204455084/job/105146946057). This time the drawer closed successfully; the subsequent **Game actions** click at line 172 stalled after Playwright reported the button visible, enabled and stable and reached “performing click action.” It failed on the second settings visit (line 226), before the later reload and screenshot assertions. The retained [trace/video artifact](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35204455084/artifacts/10489229138) shows the drawer close completing in 431 ms, followed by a 10-second click timeout and stalled page cleanup until the 120-second test deadline. The trace records no page-error or crash event before the stall. The same job passed the other 72 cases, with 32 existing skips. All other browser shards and the native/container checks passed on this head. I am retaining this failure evidence and rerunning the failed shard through the normal gate. No assertions, clicks, browser timeouts or skips have been weakened. This expands the observed failure signature beyond the original stability wait; it still does not establish a product or browser root cause. The Playwright/WebKit update is separately being validated in #6286, without claiming it fixes this issue.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 17, 2026):

The unchanged-head rerun passed all 73 active cases in WebKit shard 3 (32 existing skips), and #6282 is now merged to staging after every gate passed. The original failure evidence remains attached above. This intermittent issue stays open because a green rerun does not establish its root cause.

<!-- gh-comment-id:5712607908 --> @SpicyMarinara commented on GitHub (Sep 17, 2026): The unchanged-head rerun passed all 73 active cases in WebKit shard 3 (32 existing skips), and #6282 is now merged to staging after every gate passed. The original failure evidence remains attached above. This intermittent issue stays open because a green rerun does not establish its root cause.
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-Engine#3498
No description provided.