René's URL Explorer Experiment


Title: fix(sidebar): reset drag state on dragend so edge drop zones can't strand over first/last rows by waleedlatif1 · Pull Request #5774 · simstudioai/sim · GitHub

Open Graph Title: fix(sidebar): reset drag state on dragend so edge drop zones can't strand over first/last rows by waleedlatif1 · Pull Request #5774 · simstudioai/sim

X Title: fix(sidebar): reset drag state on dragend so edge drop zones can't strand over first/last rows by waleedlatif1 · Pull Request #5774 · simstudioai/sim

Description: Summary Fixes the reported bug where you can only start dragging the top-most / bottom-most workflow or folder in the sidebar by grabbing the far edge of the row. Root cause: the two absolutely-positioned edge drop zones (workflow-list.tsx) render at z-30 over the top/bottom 12px of the first/last row, but only while isDragging is true. isDragging could get stranded true: any non-sidebar drag that passes over the list flips it on via initDragOver, and the drag-active reset only listened for drop — never dragend. A drag that ended without a drop inside the list (Esc-cancel or a drop on a non-droppable target) left isDragging stuck, so the overlays stayed mounted at rest and stole the grab band of the first/last rows. This is the "collision of collider boxes," why it's specific to top/bottom, and why folder-expansion state made it come and go. Fix: add a window-level dragend reset alongside the existing drop reset. dragend fires on the source at the end of every drag operation, so isDragging can never be stranded for an in-document drag source. Type of Change Bug fix Testing Added use-drag-drop.test.tsx: reproduces the stranded-drag scenario — fails without the fix (isDragging stays true after dragend), passes with it — plus a guard that a plain dragover doesn't tear down an active drag. Type-check clean; new tests green. Behavior-preserving: the listener attaches only during an active sidebar drag, only resets this hook's own state, doesn't preventDefault/stopPropagation, is idempotent with the existing drop/item-onDragEnd resets, fires only at the true end of a drag, and is cleaned up on unmount. Note: covers all in-document drag sources (the realistic trigger). An OS-file drag that enters the list and then leaves the window without dropping is a theoretical residual not addressed here, since resetting on window dragleave would risk tearing down legitimate in-progress drags. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Fixes the reported bug where you can only start dragging the top-most / bottom-most workflow or folder in the sidebar by grabbing the far edge of the row. Root cause: the two absolutely-po...

X Description: Summary Fixes the reported bug where you can only start dragging the top-most / bottom-most workflow or folder in the sidebar by grabbing the far edge of the row. Root cause: the two absolutely-po...

Opengraph URL: https://github.com/simstudioai/sim/pull/5774

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9710ef46-5a47-4841-7c86-b1edd894d56c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA9F0:189C83:C7BA9B:11D4FEB:6A632B68
html-safe-nonce95bff9f1e929ecf02efb75a44ec65d5144f66c03c9555b7a61df232816bcdbe9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUYwOjE4OUM4MzpDN0JBOUI6MTFENEZFQjo2QTYzMkI2OCIsInZpc2l0b3JfaWQiOiIyODYxOTc1NTQ5OTQ2MDQ3MzM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6c5cda78b6ef7030d876152f2ce5ecefa67c1c3776ec645e48818ef5d26220b2
hovercard-subject-tagpull_request:4094458134
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5774/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Fixes the reported bug where you can only start dragging the top-most / bottom-most workflow or folder in the sidebar by grabbing the far edge of the row. Root cause: the two absolutely-po...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None30c644d502bce6cd2e59f9000b4744f2b64819abea8e8f959b18e3ad793125aa
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release331492a48ebd91d66ef2de38e1901bb911c9fe9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5774/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5774%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5774%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5774/files
Reloadhttps://github.com/simstudioai/sim/pull/5774/files
Reloadhttps://github.com/simstudioai/sim/pull/5774/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5774/files
simstudioai https://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Notifications https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.7k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 29.2k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://github.com/simstudioai/sim
Issues 111 https://github.com/simstudioai/sim/issues
Pull requests 120 https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality 0 https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Code https://github.com/simstudioai/sim
Issues https://github.com/simstudioai/sim/issues
Pull requests https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
worktree-fix+sidebar-topmost-drag-colliderhttps://github.com/simstudioai/sim/tree/worktree-fix%2Bsidebar-topmost-drag-collider
Conversation 3 https://github.com/simstudioai/sim/pull/5774
Commits 1 https://github.com/simstudioai/sim/pull/5774/commits
Checks 19 https://github.com/simstudioai/sim/pull/5774/checks
Files changed 2 https://github.com/simstudioai/sim/pull/5774/files
fix(sidebar): reset drag state on dragend so edge drop zones can't strand over first/last rows https://github.com/simstudioai/sim/pull/5774/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/5774/files
96cb846 fix(sidebar): reset drag state on dragend so edge drop zones can't st… waleedlatif1 Jul 20, 2026 https://github.com/simstudioai/sim/pull/5774/commits/96cb8461cda7c2b96021cf8c6ce538c438761b6a
Clear filters https://github.com/simstudioai/sim/pull/5774/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5774/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5774/files
use-drag-drop.test.tsx https://github.com/simstudioai/sim/pull/5774/files#diff-dd9d6dea4cd689096a8775b75aa0a5f0bce90064794af70b500fada7246c734a
use-drag-drop.ts https://github.com/simstudioai/sim/pull/5774/files#diff-186da33166956ca527ff233f3b02a5a8b9f84a48e515e3bd6fe26f94c2684b80
apps/sim/app/workspace/[workspaceId]/w/components/sidebar/hooks/use-drag-drop.test.tsxhttps://github.com/simstudioai/sim/pull/5774/files#diff-dd9d6dea4cd689096a8775b75aa0a5f0bce90064794af70b500fada7246c734a
View file https://github.com/simstudioai/sim/blob/96cb8461cda7c2b96021cf8c6ce538c438761b6a/apps/sim/app/workspace/%5BworkspaceId%5D/w/components/sidebar/hooks/use-drag-drop.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5774/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/w/components/sidebar/hooks/use-drag-drop.tshttps://github.com/simstudioai/sim/pull/5774/files#diff-186da33166956ca527ff233f3b02a5a8b9f84a48e515e3bd6fe26f94c2684b80
View file https://github.com/simstudioai/sim/blob/96cb8461cda7c2b96021cf8c6ce538c438761b6a/apps/sim/app/workspace/%5BworkspaceId%5D/w/components/sidebar/hooks/use-drag-drop.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5774/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5774/files#diff-186da33166956ca527ff233f3b02a5a8b9f84a48e515e3bd6fe26f94c2684b80
https://github.com/simstudioai/sim/pull/5774/files#diff-186da33166956ca527ff233f3b02a5a8b9f84a48e515e3bd6fe26f94c2684b80
Please reload this pagehttps://github.com/simstudioai/sim/pull/5774/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.