Worktree sessions get closed by accidental taps on mobile #57

Closed
opened 2026-11-12 06:50:25 +00:00 by pedromcaraujo · 0 comments

On a phone, the worktree pills in the channel bar always show a small × right at the pill's edge. A tap that is meant to switch to the worktree often lands on it instead. A clean worktree then closes immediately with no confirmation, so the session is killed and the checkout is removed. The branch is kept, so the work isn't lost, but the session is gone.

The sidecar logs confirm that these are real POST /worktrees/close calls coming from the phone, many of them per day.

Fix: hide the × in the mobile layout. On mobile, worktrees are closed from the palette instead ("Close worktree " on the current session, or "Prune worktrees"). Desktop keeps its hover-only ×.

On a phone, the worktree pills in the channel bar always show a small **×** right at the pill's edge. A tap that is meant to switch to the worktree often lands on it instead. A clean worktree then closes immediately with no confirmation, so the session is killed and the checkout is removed. The branch is kept, so the work isn't lost, but the session is gone. The sidecar logs confirm that these are real `POST /worktrees/close` calls coming from the phone, many of them per day. **Fix:** hide the × in the mobile layout. On mobile, worktrees are closed from the palette instead ("Close worktree <name>" on the current session, or "Prune worktrees"). Desktop keeps its hover-only ×.
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
pedromcaraujo/forge#57
No description provided.