Repository navigation
Recover compact sidebar swipes after interrupted drags - #4112
Merged
Merged
Conversation
ymichael
deleted the
bb/investigate-flaky-sidebar-swipe-thr_e2bgmgxf8g
branch
September 22, 2026 23:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
A compact sidebar opening swipe sets
openMobile=trueat drag intent. If its terminal event is lost, the page can remain only partly translated while the drawer is logically open. Both touch and pointer start handlers then reject every later opening swipe until reload. Text-selection cancellation could clear an active drag without resetting that state. The end handlers also ignored the release coordinate, so sparse move events could settle a sufficient swipe closed. Fixes #4110.What changed
changedTouches, so another finger's end does not terminate the tracked gesture.This changes only
apps/app/src/components/ui/sidebar.tsxand its test. There are no server/daemon wire, CLI, SDK, configuration, or protocol changes.How you verified
pnpm exec turbo run test --filter=@bb/app -- src/components/ui/sidebar.test.tsx: 40 passed on the rebased head.pnpm exec turbo run typecheck --filter=@bb/app: passed.pnpm start:worktree --dryruntwice, then a persistent source server at the review app; server and daemon health passed.touchend, observeddata-state="open"withtranslate="20px", then confirmed the next swipe opened fully with no inline translation. It also passed text-selection cleanup, a tap without a swipe, normal opening and closing swipes, a trigger tap, and the desktop trigger. The procedure and output are in the originating BB thread's storage, outside this commit.Related PR #3544 recovered interrupted sessions before drag intent. This PR covers interruption after the drawer has become logically open.
BB-Thread-ID: thr_e2bgmgxf8g