Worktree sessions get closed by accidental taps on mobile #57
Labels
No labels
bug
docs
enhancement
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pedromcaraujo/forge#57
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?
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/closecalls 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 ×.