Skip to content

fix(files): browse ignored files and load folders on demand - #11527

Merged
maria-rcks merged 3 commits into
pingdotgg:mainfrom
maria-rcks:t3code/show-gitignored-files-raise-limit
Sep 13, 2026
Merged

maria-rcks merged 3 commits into
pingdotgg:mainfrom
maria-rcks:t3code/show-gitignored-files-raise-limit

fix(files): preserve folder state when refreshing

00b45de
Select commit
Loading
Failed to load commit list.
MacroscopeApp / Macroscope - Correctness Check succeeded Sep 13, 2026 in 1m 38s

No issues identified (3 code objects reviewed).

• Reviewed files modified since 41c6248; other PR files not modified since then were skipped.
• Merge Base: 0c5771d
• Head: 00b45de

Details

✅ File Path U3 Bytes Comments Posted Reason
✅ apps/mobile/src/features/files/useFileTreeEntries.ts 3414 0
✅ apps/web/src/components/files/useDirectoryEntries.ts 1690 0
✅ apps/web/src/components/files/FileBrowserPanel.tsx 631 0

Billed Total: 10.00KB of diff | $0.50 (This review was charged at our per-review byte minimum of 10.00KB. Learn more here)

Filtered Issues Details

apps/web/src/components/files/useDirectoryEntries.ts
  • line 86: When cwd or environmentId changes while a previous load is in flight, the effect cleanup sets active.current to false but the replacement effect immediately sets that shared ref back to true. The old request then passes the active.current checks and writes its entries/errors into the state for the new workspace; directories, loaded, and requests are also never reset. This can show files from the prior environment (and can prevent the new root request when both use "") after switching projects. [ Previously rejected ]