[PR #4671] [MERGED] fix: stabilize Playwright and assigned regressions #6463

Closed
opened 2026-10-23 04:10:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4671
Author: @SpicyMarinara
Created: 8/6/2026
Status: ✅ Merged
Merged: 8/6/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/playwright-setup-smoke-fixes


📝 Commits (5)

  • f5122ef chore: coordinate Playwright smoke fixes
  • 3f758d4 fix: stabilize Playwright setup and assigned regressions
  • 958b253 fix: apply CodeRabbit review feedback
  • 2281377 fix: preserve explicit no-color force settings
  • 58e93ce test: cover Playwright color preference parsing

📊 Changes

20 files changed (+403 additions, -155 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 e2e/core-flows.e2e.ts (+94 -79)
➕ e2e/playwright-color-environment.ts (+5 -0)
➕ e2e/respect-no-color.cjs (+5 -0)
📝 packages/client/eslint.config.js (+3 -11)
📝 packages/client/src/components/chat/ChatArea.tsx (+1 -1)
📝 packages/client/src/components/chat/ConversationView.tsx (+1 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+9 -3)
📝 packages/client/src/components/layout/TopBar.tsx (+1 -0)
📝 packages/client/src/hooks/use-visual-viewport-chat-bottom.ts (+5 -4)
📝 packages/client/src/lib/perf-diagnostics.ts (+1 -3)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/client/vite.config.ts (+7 -1)
📝 packages/server/src/services/image/image-generation.ts (+88 -0)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+53 -48)
📝 packages/shared/src/constants/image-generation-defaults.ts (+1 -1)
📝 packages/shared/src/constants/model-lists.ts (+9 -0)
📝 playwright.config.ts (+16 -0)
📝 scripts/regressions/open-issues.regression.ts (+42 -3)
📝 scripts/regressions/provider-compat.regression.ts (+56 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository’s staging branch or a same-repository hotfix/* branch to main.

Linked issues

Closes #4670
Closes #4672
Closes #4673

Why this change

  • Playwright setup and smoke validation had environment noise, stale assertions, and timing races that obscured real browser regressions.
  • Arli.ai connections could not use the provider native authenticated image endpoints.
  • Professor Mari could list lorebook entry previews but could not retrieve the complete body of a selected entry.

What changed

  • Removed the conflicting color environment and unused React Compiler/Babel analysis paths, disabled Babel auto-compaction noise in Vite, refreshed stale smoke expectations, and made reload/animation assertions deterministic.
  • Preserved an intentionally scrolled mobile transcript when the software keyboard opens while keeping bottom-pinned chats pinned.
  • Added native Arli.ai text-to-image and image-to-image requests with Bearer authentication and Automatic1111-compatible generation defaults.
  • Exposed lorebook.getEntry to Professor Mari and documented the preview-then-full-entry retrieval flow.
  • Added focused provider, app-data, and browser regression coverage plus user-facing changelog entries.

Validation

Automated evidence:

  • pnpm check — passed

  • pnpm regression:prompt — passed

  • pnpm regression:providers — passed

  • pnpm smoke:ui — 198 passed, 98 intentionally skipped, 0 failed; no Babel or color-environment warnings

  • pnpm check passes locally

  • Container (Docker / Podman) built and ran without issue

  • Ran the app, clicked through the changes manually

  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)

  • Above manual verification completed (describe below)

  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify preserving the current transcript position when opening and closing the mobile keyboard in Conversation and Roleplay.
  • Manually verify an Arli.ai connection can generate text-to-image and image-to-image output with a real API key.
  • Manually ask Professor Mari to inspect a long lorebook entry and confirm she reads beyond the preview.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • The full desktop/mobile Playwright suite covers the affected interactions; manual verification remains listed above.

Summary by CodeRabbit

  • New Features

    • Added Arli.ai as an image-generation provider for text-to-image and reference-image generation.
    • Expanded Professor Mari’s lorebook access with full entry retrieval.
    • Added clearer Arli.ai setup guidance in image-generation settings.
  • Bug Fixes

    • Improved mobile chat positioning when the keyboard opens or closes.
    • Improved Settings accessibility state reporting.
    • Updated interface behavior and labels across navigation, panels, and feature settings.
  • Tests

    • Added coverage for image generation, lorebook retrieval, image-source detection, color handling, and mobile viewport behavior.

🔄 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-Engine/pull/4671 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/6/2026 **Status:** ✅ Merged **Merged:** 8/6/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/playwright-setup-smoke-fixes` --- ### 📝 Commits (5) - [`f5122ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f5122ef86635afb7e1522793d47c4f475514f608) chore: coordinate Playwright smoke fixes - [`3f758d4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3f758d4d6a8ab8b41a61c07a09b61941c877350d) fix: stabilize Playwright setup and assigned regressions - [`958b253`](https://github.com/Pasta-Devs/Marinara-Engine/commit/958b253fdb61326e53f36db94ee5eccc5b88cf08) fix: apply CodeRabbit review feedback - [`2281377`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2281377b1cbdb42f608aff83d8cb7bda413b6c07) fix: preserve explicit no-color force settings - [`58e93ce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/58e93ce954742ee3292006041b3e39ced9f5ac7f) test: cover Playwright color preference parsing ### 📊 Changes **20 files changed** (+403 additions, -155 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `e2e/core-flows.e2e.ts` (+94 -79) ➕ `e2e/playwright-color-environment.ts` (+5 -0) ➕ `e2e/respect-no-color.cjs` (+5 -0) 📝 `packages/client/eslint.config.js` (+3 -11) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+1 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+9 -3) 📝 `packages/client/src/components/layout/TopBar.tsx` (+1 -0) 📝 `packages/client/src/hooks/use-visual-viewport-chat-bottom.ts` (+5 -4) 📝 `packages/client/src/lib/perf-diagnostics.ts` (+1 -3) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/client/vite.config.ts` (+7 -1) 📝 `packages/server/src/services/image/image-generation.ts` (+88 -0) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+53 -48) 📝 `packages/shared/src/constants/image-generation-defaults.ts` (+1 -1) 📝 `packages/shared/src/constants/model-lists.ts` (+9 -0) 📝 `playwright.config.ts` (+16 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+42 -3) 📝 `scripts/regressions/provider-compat.regression.ts` (+56 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository’s `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issues Closes #4670 Closes #4672 Closes #4673 ## Why this change - Playwright setup and smoke validation had environment noise, stale assertions, and timing races that obscured real browser regressions. - Arli.ai connections could not use the provider native authenticated image endpoints. - Professor Mari could list lorebook entry previews but could not retrieve the complete body of a selected entry. ## What changed - Removed the conflicting color environment and unused React Compiler/Babel analysis paths, disabled Babel auto-compaction noise in Vite, refreshed stale smoke expectations, and made reload/animation assertions deterministic. - Preserved an intentionally scrolled mobile transcript when the software keyboard opens while keeping bottom-pinned chats pinned. - Added native Arli.ai text-to-image and image-to-image requests with Bearer authentication and Automatic1111-compatible generation defaults. - Exposed `lorebook.getEntry` to Professor Mari and documented the preview-then-full-entry retrieval flow. - Added focused provider, app-data, and browser regression coverage plus user-facing changelog entries. ## Validation Automated evidence: - `pnpm check` — passed - `pnpm regression:prompt` — passed - `pnpm regression:providers` — passed - `pnpm smoke:ui` — 198 passed, 98 intentionally skipped, 0 failed; no Babel or color-environment warnings - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify preserving the current transcript position when opening and closing the mobile keyboard in Conversation and Roleplay. - Manually verify an Arli.ai connection can generate text-to-image and image-to-image output with a real API key. - Manually ask Professor Mari to inspect a long lorebook entry and confirm she reads beyond the preview. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - The full desktop/mobile Playwright suite covers the affected interactions; manual verification remains listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Arli.ai as an image-generation provider for text-to-image and reference-image generation. * Expanded Professor Mari’s lorebook access with full entry retrieval. * Added clearer Arli.ai setup guidance in image-generation settings. * **Bug Fixes** * Improved mobile chat positioning when the keyboard opens or closes. * Improved Settings accessibility state reporting. * Updated interface behavior and labels across navigation, panels, and feature settings. * **Tests** * Added coverage for image generation, lorebook retrieval, image-source detection, color handling, and mobile viewport behavior. <!-- 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-23 04:10:40 +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-Engine#6463
No description provided.