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
[bug] "Error loading tree preview" when viewing a directory with ... #531
Hey @brendan-kellam , I was able to replicate this issue on my end as well.
I found that when we fetch the folder contents , we filter the path to not allow directory traversal (which completely makes sense). This gives an Error loading tree preview for any path that contains two consecutive periods.
As a workaround, I think we can break the path into segments (split by a '/') and check if any of them starts with two consecutive periods "..".
What do you think?
Activity
Kushal-Nandha commentedon Dec 30, 2025
Hey @brendan-kellam , I was able to replicate this issue on my end as well.
I found that when we fetch the folder contents , we filter the path to not allow directory traversal (which completely makes sense). This gives an
Error loading tree previewfor any path that contains two consecutive periods.As a workaround, I think we can break the path into segments (split by a '/') and check if any of them starts with two consecutive periods
"..".What do you think?
msukkari commentedon Jan 15, 2026
cant repro anymore, closing
Fix #531