[GH-ISSUE #4195] [Issue]: Right Arrow reroll is blocked when the empty chat input is focused #2268

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The Right Arrow shortcut for navigating or regenerating the latest assistant swipe stops working whenever the chat input has focus, even when the input is completely empty.

Expected behavior

When the Conversation or Roleplay chat input is focused and empty, pressing Right Arrow should navigate to the next swipe or regenerate the latest assistant response when Reroll past the newest swipe is enabled. This should match the existing Up Arrow shortcut, which works from an empty focused input.

Actual behavior

The shortcut is ignored whenever the focused target is the chat textarea. The same target guard also blocks Left Arrow swipe navigation from an empty focused input.

Steps to reproduce

  1. Open a Roleplay or Conversation chat with an assistant response.
  2. Enable Intuitive swipe navigation and Reroll past the newest swipe.
  3. Focus the chat input and ensure it is completely empty.
  4. Press Right Arrow.

Environment

  • Marinara Engine version: 2.3.4
  • Install type: installer (.exe)
  • OS + version: Windows 10
  • Browser or app shell: Windows installer app shell (exact shell not provided)

Logs, screenshots, or video

The reporter supplied a screenshot of the original report. No logs were provided.

Additional context

shouldIgnoreIntuitiveSwipeTarget() currently rejects every textarea before the Left/Right Arrow handler reaches swipe navigation. The separate Up Arrow handler explicitly permits an empty textarea, causing the inconsistent behavior.

The fix should allow an unmodified Left or Right Arrow only from the empty main chat composer while continuing to protect non-empty inputs, message editors, settings fields, and touch gestures.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jul 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4195 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The Right Arrow shortcut for navigating or regenerating the latest assistant swipe stops working whenever the chat input has focus, even when the input is completely empty. ## Expected behavior When the Conversation or Roleplay chat input is focused and empty, pressing Right Arrow should navigate to the next swipe or regenerate the latest assistant response when **Reroll past the newest swipe** is enabled. This should match the existing Up Arrow shortcut, which works from an empty focused input. ## Actual behavior The shortcut is ignored whenever the focused target is the chat textarea. The same target guard also blocks Left Arrow swipe navigation from an empty focused input. ## Steps to reproduce 1. Open a Roleplay or Conversation chat with an assistant response. 2. Enable **Intuitive swipe navigation** and **Reroll past the newest swipe**. 3. Focus the chat input and ensure it is completely empty. 4. Press Right Arrow. ## Environment - Marinara Engine version: 2.3.4 - Install type: installer (`.exe`) - OS + version: Windows 10 - Browser or app shell: Windows installer app shell (exact shell not provided) ## Logs, screenshots, or video The reporter supplied a screenshot of the original report. No logs were provided. ## Additional context `shouldIgnoreIntuitiveSwipeTarget()` currently rejects every `textarea` before the Left/Right Arrow handler reaches swipe navigation. The separate Up Arrow handler explicitly permits an empty textarea, causing the inconsistent behavior. The fix should allow an unmodified Left or Right Arrow only from the empty main chat composer while continuing to protect non-empty inputs, message editors, settings fields, and touch gestures. <!-- task-id: right-arrow-empty-chat-input --> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:46:51 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 28, 2026):

Implementation is claimed by @SpicyMarinara on agent/assigned-issues-4195-4198. I’m coordinating this with the other newly assigned issues in one staging-targeted draft PR and will attach the PR here once the first narrow fix is pushed.

<!-- gh-comment-id:5100727112 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Implementation is claimed by @SpicyMarinara on `agent/assigned-issues-4195-4198`. I’m coordinating this with the other newly assigned issues in one staging-targeted draft PR and will attach the PR here once the first narrow fix is pushed.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 28, 2026):

Draft implementation PR: #4199

<!-- gh-comment-id:5100766152 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Draft implementation PR: #4199
Author
Owner

@SpicyMarinara commented on GitHub (Jul 28, 2026):

Fixed on staging via #4199 (a97cc55d6). Empty main Conversation and Roleplay composers now allow unmodified Left/Right swipe navigation while non-empty inputs, modifiers, other editable targets, and touch gestures remain protected. Exact Playwright coverage passed.

<!-- gh-comment-id:5101518929 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Fixed on `staging` via #4199 (`a97cc55d6`). Empty main Conversation and Roleplay composers now allow unmodified Left/Right swipe navigation while non-empty inputs, modifiers, other editable targets, and touch gestures remain protected. Exact Playwright coverage passed.
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#2268
No description provided.