t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Android: Tapping "Remove" on swiped queued follow-up fails to delete it

Open mtdewwolf opened this issue 2 weeks ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. In T3 Code Android, open a thread with an active agent run.
  2. Submit a follow-up prompt configured in Queue mode.
  3. Open the "Queued" sheet.
  4. Swipe left on the queued message row to expose the red "Remove" button.
  5. Tap directly on the "Remove" button ([🗑️ Remove]).

Expected behavior

Tapping "Remove" should cancel and remove the queued run (cancelQueuedRun), closing the swipe row and updating the queue list.

Actual behavior

Tapping the "Remove" button registers visually on screen (touch indicator centered on the button), but the item is not deleted. Instead, the swipe container snaps back closed, leaving the queued message intact in the queue.

Impact

Minor bug or occasional failure

Version or commit

main

Environment

Android 17, Samsung Galaxy (landscape 1152x422), T3 Code Mobile

Screenshots, recordings, or supporting files

https://github.com/user-attachments/assets/7341edc1-a301-4834-b69a-9e176895253a

Additional Context & Code Reference

In apps/mobile/src/features/threads/ThreadQueueControl.tsx:

In QueueRowSwipeable, a standard React Native Pressable is rendered inside ReanimatedSwipeable's renderRightActions. On Android, react-native-gesture-handler's native PanGestureHandler intercepts touch events before React Native's JS touch responder can process them on Pressable. Additionally, onSwipeableOpen enforces if (direction !== "right") return; which only handles a full horizontal fling gesture rather than a partial swipe followed by tapping the revealed action button.

mtdewwolf avatar Nov 16 '26 06:11 mtdewwolf

This is the same problem as #15414, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

juliusmarminge avatar Nov 16 '26 07:11 juliusmarminge