You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Favorites and search results drop a file when another session moves it #4279
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
Favorites and the search results drop a file as soon as another session moves it to another folder, although it's still a favorite and still matches the search. onSSEItemMovedEvent (packages/web-runtime/src/container/sse/files.ts) removes every item whose new parent isn't the current folder, and isItemInCurrentFolder returns false whenever there is no current folder. Flat lists like Favorites and search results have none, so every move counts as "moved out" and the item gets removed.
Reproduction Steps
Create the folders src and src/dest with the files src/fav.txt and src/other.txt
Mark fav.txt as a favorite and open Favorites
In another session, move src/fav.txt to src/dest/fav.txt
Search for other and press Enter, then move src/other.txt to src/dest/other.txt in another session
Expected Outcome
The file stays in Favorites and in the search results, with its new location.
Actual Outcome
The file disappears from both lists as soon as the move event arrives. A reload brings it back with the new path.
Activity