[GH-ISSUE #943] Conversation mode message actions stick after desktop click #459

Closed
opened 2026-10-20 17:29:06 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (May 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/943

Originally assigned to: @Promansis on GitHub.

Problem

In conversation mode, clicking a message on desktop reveals the mari-message-actions bar and leaves it visible. This makes the action bar feel stuck after a normal click instead of behaving like hover-only desktop controls.

Expected behavior

  • Desktop: message actions appear on hover and do not pin open from a normal message click.
  • Touch/coarse pointer devices: tapping a message can reveal actions and tapping outside dismisses them.
  • Multi-select mode still toggles message selection from clicks.

Diagnosis

The conversation-mode message component had unguarded onClick handlers that toggled local showActions for system, grouped, and normal messages. ChatMessage.tsx already uses the intended pattern: only toggle message actions when matchMedia("(pointer: coarse)").matches, with touch outside dismissal.

Proposed fix

Mirror the guarded ChatMessage.tsx interaction pattern in ConversationMessage.tsx by adding a message ref, touch outside dismissal, and a coarse-pointer-only tap handler while preserving multi-select click behavior.

Validation

  • Run pnpm check.
  • Manually verify desktop conversation mode: hover reveals actions, normal click does not pin actions open.
  • Manually verify touch/coarse pointer behavior: tap reveals actions and outside tap dismisses.

Manual desktop verification has already been reported by the local tester before PR creation.

Originally created by @Promansis on GitHub (May 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/943 Originally assigned to: @Promansis on GitHub. ## Problem In conversation mode, clicking a message on desktop reveals the `mari-message-actions` bar and leaves it visible. This makes the action bar feel stuck after a normal click instead of behaving like hover-only desktop controls. ## Expected behavior - Desktop: message actions appear on hover and do not pin open from a normal message click. - Touch/coarse pointer devices: tapping a message can reveal actions and tapping outside dismisses them. - Multi-select mode still toggles message selection from clicks. ## Diagnosis The conversation-mode message component had unguarded `onClick` handlers that toggled local `showActions` for system, grouped, and normal messages. `ChatMessage.tsx` already uses the intended pattern: only toggle message actions when `matchMedia("(pointer: coarse)").matches`, with touch outside dismissal. ## Proposed fix Mirror the guarded `ChatMessage.tsx` interaction pattern in `ConversationMessage.tsx` by adding a message ref, touch outside dismissal, and a coarse-pointer-only tap handler while preserving multi-select click behavior. ## Validation - [ ] Run `pnpm check`. - [ ] Manually verify desktop conversation mode: hover reveals actions, normal click does not pin actions open. - [ ] Manually verify touch/coarse pointer behavior: tap reveals actions and outside tap dismisses. Manual desktop verification has already been reported by the local tester before PR creation.
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#459
No description provided.