[PR #4177] [MERGED] Fix Firefox Roleplay composer paint latency #6266

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4177
Author: @SpicyMarinara
Created: 7/27/2026
Status: ✅ Merged
Merged: 7/27/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/4168-firefox-roleplay-composer


📝 Commits (4)

  • f00a377 Fix Firefox Roleplay composer paint latency
  • ea34d5c Merge branch 'staging' into agent/4168-firefox-roleplay-composer
  • a57dfa8 Merge branch 'staging' into agent/4168-firefox-roleplay-composer
  • b8a5c54 test(roleplay): scope Firefox CSS regression

📊 Changes

2 files changed (+39 additions, -1 deletions)

View changed files

📝 packages/client/src/styles/globals.css (+8 -1)
📝 scripts/regressions/roleplay-streaming.regression.ts (+31 -0)

📄 Description

Why

Follow-up to #4168. The Roleplay composer still stuttered while typing and deleting text in Firefox, even though the input handler itself remained fast. Firefox was repainting the heavier Roleplay scene through the composer's blurred translucent surface; Conversation and Game did not expose the same paint cost.

What changed

  • disable backdrop-filter for the Roleplay composer only in Firefox
  • give that Firefox fallback an opaque, theme-aware card surface so the scene behind it is not repainted during input
  • add regression coverage for both parts of the Gecko-specific fallback

Chromium, Conversation, and Game styling remain unchanged.

Verification

  • pnpm check
  • pnpm regression:roleplay
  • Firefox computed-style verification: backdrop-filter: none with an opaque background stack
  • Maintainer manually verified smooth Roleplay typing and deletion in Firefox

Manual review

  • Recheck typing and Backspace in a populated Roleplay chat on Firefox
  • Confirm the composer remains visually correct in dark and light themes

Summary by CodeRabbit

  • Bug Fixes

    • Improved the Roleplay chat input’s appearance in Firefox.
    • Prevented backdrop blur from affecting the composer while typing.
    • Ensured the input shell uses an opaque background for clearer, more consistent rendering.
  • Tests

    • Added regression coverage to verify Firefox-specific Roleplay composer styling.

🔄 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/4177 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/27/2026 **Status:** ✅ Merged **Merged:** 7/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/4168-firefox-roleplay-composer` --- ### 📝 Commits (4) - [`f00a377`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f00a3777a3de45fd996406f5829658df300f7735) Fix Firefox Roleplay composer paint latency - [`ea34d5c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ea34d5c56bd24f35b09dbf79344d9e1648bdcd6f) Merge branch 'staging' into agent/4168-firefox-roleplay-composer - [`a57dfa8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a57dfa8cac77324d69e92ceca3832d477178585a) Merge branch 'staging' into agent/4168-firefox-roleplay-composer - [`b8a5c54`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8a5c54a65616915d535a85931afa4cdd002c4da) test(roleplay): scope Firefox CSS regression ### 📊 Changes **2 files changed** (+39 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/styles/globals.css` (+8 -1) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+31 -0) </details> ### 📄 Description ## Why Follow-up to #4168. The Roleplay composer still stuttered while typing and deleting text in Firefox, even though the input handler itself remained fast. Firefox was repainting the heavier Roleplay scene through the composer's blurred translucent surface; Conversation and Game did not expose the same paint cost. ## What changed - disable `backdrop-filter` for the Roleplay composer only in Firefox - give that Firefox fallback an opaque, theme-aware card surface so the scene behind it is not repainted during input - add regression coverage for both parts of the Gecko-specific fallback Chromium, Conversation, and Game styling remain unchanged. ## Verification - `pnpm check` - `pnpm regression:roleplay` - Firefox computed-style verification: `backdrop-filter: none` with an opaque background stack - Maintainer manually verified smooth Roleplay typing and deletion in Firefox ## Manual review - [ ] Recheck typing and Backspace in a populated Roleplay chat on Firefox - [ ] Confirm the composer remains visually correct in dark and light themes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved the Roleplay chat input’s appearance in Firefox. - Prevented backdrop blur from affecting the composer while typing. - Ensured the input shell uses an opaque background for clearer, more consistent rendering. - **Tests** - Added regression coverage to verify Firefox-specific Roleplay composer styling. <!-- 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:08:46 +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#6266
No description provided.