Repository navigation
fix: update the open shares panel when another session changes shares - #4371
Merged
Merged
Conversation
AlexAndBear
force-pushed
the
fix/sidebar-shares-sse
branch
from
November 9, 2026 11:22
175f512 to
e9f20f2
Compare
tammi-23
reviewed
Nov 9, 2026
| return [unref(panelContext).items[0].fileId, ...ancestorIds] | ||
| }) | ||
|
|
||
| function refreshShares() { |
Contributor
There was a problem hiding this comment.
Each share/link event triggers its own refresh, and since skipCache is set, every refresh also re-fetches the permissions of all ancestors. Sharing a file with 3 users at once from another session caused 4 permission requests for the file plus one per ancestor in the other tab. In deep folder structures or with bulk shares this multiplies quickly.
useExternalFileUpdates already keeps only the newest pending event while a handler runs. Could we do the same here (or add a short debounce), so a burst of events results in a single refresh?
Member
Author
There was a problem hiding this comment.
Fixed in 6ffb2d9: share and link events are debounced now (300 ms), so a burst like that triggers a single refresh.
JammingBen
approved these changes
Nov 11, 2026
AlexAndBear
force-pushed
the
fix/sidebar-shares-sse
branch
from
November 11, 2026 17:21
6ffb2d9 to
2df07d0
Compare
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.
Description
The open Shares panel now follows shares and links that another session adds, changes or removes, also for parent folders and project spaces, without losing what you're typing in the invite form.
Related Issue
How Has This Been Tested?
Types of changes