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
[backend] File-tree endpoint walks the filesystem on every request with no caching or depth limit #117
GET /workspaces/{id}/tree (server.go:916-943) calls discovery.Tree against the live filesystem on every click of the tree UI — no caching, no rate limit on GETs (the rate limiter only covers mutations), and each call runs pathIncluded/pathPartiallyIncluded which loop the full overrides list per item (O(items × overrides) string matching in treeItems).
On a large tree (node_modules-class directories aren't excluded by default) every expand is a fresh directory walk + full override cross-product in memory. Cache the tree per workspace (invalidate on scan/override change) and pre-index overrides by prefix.
Activity
sanketpatel32 commentedon Nov 22, 2026
Fixed in PR #128 (merged 76e635c, shipped in v0.51.0).