[PR #4153] [MERGED] Fix Roleplay Enter draft flicker #6255

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-roleplay-enter-flicker


📝 Commits (1)

  • cb84030 Fix Roleplay Enter draft flicker

📊 Changes

2 files changed (+16 additions, -4 deletions)

View changed files

📝 packages/client/src/components/chat/ChatInput.tsx (+10 -3)
📝 scripts/regressions/roleplay-streaming.regression.ts (+6 -1)

📄 Description

Why

With Send on Enter disabled, pressing Enter inserted a newline but left the Roleplay textarea on its delayed resize path. For one paint, the new two-line content could overflow the old one-line height, briefly hiding the existing draft before the debounce completed.

What changed

  • Schedule a single pre-paint textarea resize only when Enter/Shift+Enter creates a newline.
  • Leave ordinary Roleplay keystrokes on the existing 150 ms debounced resize path, preserving typing responsiveness.
  • Add a Roleplay regression guard for both behaviors.

Validation

  • pnpm regression:roleplay
  • git diff --check

Manual verification

  • In Roleplay with Send on Enter disabled, type a draft and press Enter; verify the existing line remains visible.
  • Type continuously in Roleplay and compare responsiveness with Conversation mode.
  • With Send on Enter enabled, verify Enter sends and Shift+Enter creates a newline.

No linked issue was provided; one should be opened if this regression needs issue tracking.


🔄 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/4153 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/26/2026 **Status:** ✅ Merged **Merged:** 7/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-roleplay-enter-flicker` --- ### 📝 Commits (1) - [`cb84030`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cb840303126db63aa84be3008092aaf2c55e2170) Fix Roleplay Enter draft flicker ### 📊 Changes **2 files changed** (+16 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatInput.tsx` (+10 -3) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+6 -1) </details> ### 📄 Description ## Why With **Send on Enter** disabled, pressing Enter inserted a newline but left the Roleplay textarea on its delayed resize path. For one paint, the new two-line content could overflow the old one-line height, briefly hiding the existing draft before the debounce completed. ## What changed - Schedule a single pre-paint textarea resize only when Enter/Shift+Enter creates a newline. - Leave ordinary Roleplay keystrokes on the existing 150 ms debounced resize path, preserving typing responsiveness. - Add a Roleplay regression guard for both behaviors. ## Validation - `pnpm regression:roleplay` - `git diff --check` ## Manual verification - [ ] In Roleplay with Send on Enter disabled, type a draft and press Enter; verify the existing line remains visible. - [ ] Type continuously in Roleplay and compare responsiveness with Conversation mode. - [ ] With Send on Enter enabled, verify Enter sends and Shift+Enter creates a newline. No linked issue was provided; one should be opened if this regression needs issue tracking. --- <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:39 +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#6255
No description provided.