Repository navigation
Smooth sidebar thread drop transitions - #3639
Merged
Merged
Conversation
ymichael
deleted the
bb/fix-sidebar-row-drop-animation-thr_gqbu6y33t4
branch
September 14, 2026 22:23
ymichael
added a commit
that referenced
this pull request
Sep 14, 2026
## Human comments ## What was wrong The regression test added with #2994 raced the supervisor's real completion against an unrelated 250 ms timer. The loopback health probe and daemon termination are scheduler-dependent, so package-level CI contention could let the timeout win even though the supervisor correctly detected the healthy replacement server, sent the daemon SIGTERM, and resolved as stopped. This is the failure captured in [CI run 34899568032](https://github.com/get-bb/bb/actions/runs/34899568032) on unrelated UI-only PR #3639. ## What changed The port-takeover test now awaits the supervisor promise, which is the behavior's actual completion boundary. Its injected restart delay throws immediately if the supervisor enters the wrong retry path, so a regression fails without leaving blocked asynchronous work. The real ephemeral HTTP health server and the assertions for no restart plus daemon SIGTERM remain intact. This is test-only. It changes no server/daemon wire field, CLI surface, or product behavior, so `HOST_DAEMON_PROTOCOL_VERSION` remains 207. ## How you verified - Before the change on the frozen Intel base, 10 unloaded runs passed in 33–36 ms; 128 bounded CPU workers reproduced `timeout` versus `stopped` while the correct healthy-server stop branch logged, with the test taking 790 ms. - After the change, the same bounded 128-worker Intel stress passed in 690 ms on the host runtime and in 605 ms on Node 22.19.0 x64. - `pnpm exec turbo run test --filter=bb-app --force` under Node 22.19.0: 5 files, 81 tests passed. - `pnpm exec turbo run typecheck --filter=bb-app --force` under Node 22.19.0: 3/3 tasks passed. - `pnpm exec turbo run build --filter=bb-app --force` under Node 22.19.0: 48/48 tasks passed. - `git diff --check origin/main` passed. - All stress workers, Vitest workers, and Turbo/build processes were externally bounded and absent after their runs. The complete repository-wide 92-package test matrix was not run locally; validation covered the changed `bb-app` package and its full forced build graph. > AGENT GENERATED: by GPT-5.6-Sol
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
Sidebar thread drops combined dnd-kit’s overlay return animation with an early teardown of the projected destination. The source row also continued reserving layout space until the mutation rendered, while empty source sections retained child spacing for an extra frame. Together these state and layout transitions made rows snap backward and neighboring sections jump when a drop landed. The full-width floating drag copy also obscured potential row and parenting targets.
What changed
How you verified
pnpm exec turbo run typecheck --filter=@bb/apppnpm exec turbo run test --filter=@bb/app -- src/components/sidebar— 237 tests passedpnpm exec oxlinton the changed sidebar files