mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4841] [Issue]: Intuitive swipe navigation ignores Conversation transcripts on mobile #2675
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2675
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (Aug 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4841
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On mobile browsers, Intuitive swipe navigation does not respond in Conversation chats even though the same horizontal gesture works in Roleplay chats. The Conversation transcript is not connected to the touch gesture recognizer's expected scroll surface.
Expected behavior
With Intuitive swipe navigation enabled, horizontally swiping over either a Conversation or Roleplay transcript should move backward or forward through the latest assistant message's saved swipes. If Reroll past the newest swipe is disabled, swiping past the newest saved swipe should do nothing.
Actual behavior
Roleplay transcript gestures work, but Conversation transcript gestures are discarded at
touchstart, so no swipe navigation occurs.Steps to reproduce
Environment
stagingsource at612d4d2ed174ff8ee65b429fdf64004066c0a1b1Logs, screenshots, or video
No logs, screenshots, or video were provided. The defect was confirmed by tracing the current source.
Additional context
ChatAreaowns the window-level touch listeners. Atpackages/client/src/components/chat/ChatArea.tsx:2265-2314,touchstartis accepted only when the event target is insideChatArea'sscrollRef.Roleplay receives and attaches that ref (
ChatArea.tsx:3082;ChatRoleplaySurface.tsx:2113-2127). Conversation instead creates and attaches a private ref insideConversationView(ConversationView.tsx:530,1175-1179), andChatAreanever receives it. In Conversation mode, the ref consulted by the touch handler is therefore null, causing every gesture to exit at the!surfaceguard before distance or direction is evaluated.The mode gate and navigation mutation already support both Conversation and Roleplay (
ChatArea.tsx:2150-2187), so this is a touch-surface wiring defect rather than missing Conversation swipe support. Desktop arrow-key navigation does not consult the scroll ref.A low-risk repair is to reuse the existing
data-chat-scrollcontract: mark Conversation's transcript scroller withdata-chat-scroll, then resolve the nearest marked scroller from the touch target instead of consulting the Roleplay-only ref. Passing the raw Roleplay scroll ref into Conversation is riskier becauseChatAreaalso drives Roleplay scroll/stream/load-more effects that Conversation already implements locally.Focused mobile regression coverage should exercise both Conversation and Roleplay with a seeded two-swipe assistant message, while preserving vertical scrolling and ignoring gestures that begin on controls/editable fields. Existing targeted coverage only exercises desktop keyboard navigation in Roleplay (
e2e/core-flows.e2e.ts:3981-4034).Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 10, 2026):
@SpicyMarinara is implementing this in draft PR #4847.