[GH-ISSUE #5126] [Issue]: Playwright web server fails to start on Windows without pnpm launcher metadata #2835

Closed
opened 2026-10-21 05:56:33 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Xelvanis on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5126

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The repository's standard Playwright config.webServer chain can fail before the test body on Windows. Without npm_execpath, Node cannot launch the pnpm .CMD shim directly; after forcing a pnpm CLI, Playwright's piped stdin can stall the nested mobile client before Vite becomes ready.

Expected behavior

A freshly bootstrapped Windows source worktree should run the standard Playwright web-server path without manual environment injection. Direct interactive pnpm dev should retain terminal input, and POSIX behavior should remain unchanged.

Actual behavior

The initial shared build fails with spawn pnpm ENOENT when npm_execpath is absent. If pnpm is manually bound, startup can time out after the mobile API becomes healthy because the nested client never starts.

Steps to reproduce

  1. Bootstrap a managed Windows source worktree.
  2. Run pnpm exec playwright test -c playwright.config.ts --grep "Chat Settings adds a formatted greeting after the setup wizard is skipped" --project=desktop-chromium --workers=1 without manually setting npm_execpath.
  3. Observe the pnpm spawn failure or subsequent web-server readiness timeout on the affected source state.

Environment

  • Marinara Engine version: staging source checkout
  • Install type: source / managed worktree
  • OS + version: Windows; exact host version not captured
  • Browser or app shell: Playwright desktop Chromium

Logs, screenshots, or video

  • Bare non-shell pnpm spawn: ENOENT.
  • Forced pnpm CLI: the mobile API reaches health, but the nested mobile client stalls with inherited Playwright stdin.

Additional context

Acceptance criteria:

  • Windows uses a runnable pnpm descriptor without manual npm_execpath.
  • Playwright detaches stdin only for its mobile/desktop project children.
  • Direct Windows development and POSIX retain inherited stdin.
  • Failure visibility, shutdown, and port authority remain unchanged.
  • Focused regression and exact live Playwright command pass.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5126 Originally assigned to: @SpicyMarinara on GitHub. <!-- task-id: windows-playwright-webserver-startup --> ## Summary The repository's standard Playwright `config.webServer` chain can fail before the test body on Windows. Without `npm_execpath`, Node cannot launch the pnpm `.CMD` shim directly; after forcing a pnpm CLI, Playwright's piped stdin can stall the nested mobile client before Vite becomes ready. ## Expected behavior A freshly bootstrapped Windows source worktree should run the standard Playwright web-server path without manual environment injection. Direct interactive `pnpm dev` should retain terminal input, and POSIX behavior should remain unchanged. ## Actual behavior The initial shared build fails with `spawn pnpm ENOENT` when `npm_execpath` is absent. If pnpm is manually bound, startup can time out after the mobile API becomes healthy because the nested client never starts. ## Steps to reproduce 1. Bootstrap a managed Windows source worktree. 2. Run `pnpm exec playwright test -c playwright.config.ts --grep "Chat Settings adds a formatted greeting after the setup wizard is skipped" --project=desktop-chromium --workers=1` without manually setting `npm_execpath`. 3. Observe the pnpm spawn failure or subsequent web-server readiness timeout on the affected source state. ## Environment - Marinara Engine version: staging source checkout - Install type: source / managed worktree - OS + version: Windows; exact host version not captured - Browser or app shell: Playwright desktop Chromium ## Logs, screenshots, or video - Bare non-shell `pnpm` spawn: `ENOENT`. - Forced pnpm CLI: the mobile API reaches health, but the nested mobile client stalls with inherited Playwright stdin. ## Additional context Acceptance criteria: - Windows uses a runnable pnpm descriptor without manual `npm_execpath`. - Playwright detaches stdin only for its mobile/desktop project children. - Direct Windows development and POSIX retain inherited stdin. - Failure visibility, shutdown, and port authority remain unchanged. - Focused regression and exact live Playwright command pass. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:56:33 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 16, 2026):

@SpicyMarinara is taking this issue in the current sweep. A focused draft PR against staging will track the Windows launcher fix.

<!-- gh-comment-id:5306325550 --> @SpicyMarinara commented on GitHub (Aug 16, 2026): @SpicyMarinara is taking this issue in the current sweep. A focused draft PR against `staging` will track the Windows launcher fix.
Author
Owner

@Xelvanis commented on GitHub (Aug 16, 2026):

@SpicyMarinara I PRed https://github.com/Pasta-Devs/Marinara-Engine/pull/5127 already >:

<!-- gh-comment-id:5306335111 --> @Xelvanis commented on GitHub (Aug 16, 2026): @SpicyMarinara I PRed https://github.com/Pasta-Devs/Marinara-Engine/pull/5127 already >:
Author
Owner

@SpicyMarinara commented on GitHub (Aug 16, 2026):

@Xelvanis Thank you — I am reviewing and landing #5127 as the implementation for this sweep, so I will not open a duplicate PR.

<!-- gh-comment-id:5306380027 --> @SpicyMarinara commented on GitHub (Aug 16, 2026): @Xelvanis Thank you — I am reviewing and landing #5127 as the implementation for this sweep, so I will not open a duplicate PR.
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#2835
No description provided.