Skip to content

Fix live file tree startup latency - #935

Merged
backnotprop merged 1 commit into
mainfrom
fix/live-tree-fast-load
Jun 19, 2026
Merged

backnotprop merged 1 commit into
mainfrom
fix/live-tree-fast-load

Conversation

@backnotprop

@backnotprop backnotprop commented Jun 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • delay the file-tree SSE subscription until the first successful tree snapshot has loaded
  • wait for the initial regular-folder batch to settle before opening the live stream, so one fast folder cannot start watcher setup while another initial folder is still loading
  • keep the existing chokidar-based server watchers unchanged
  • run the file-browser DOM hook tests in CI so the startup-order behavior is covered

Verification

  • DOM_TESTS=1 bun test packages/ui/hooks/useFileBrowser.test.tsx
  • bun test packages/server/reference-watch.test.ts apps/pi-extension/server/file-browser-watch.test.ts
  • bun run typecheck
  • bun test
  • bun run build:hook
  • bun run build:opencode

@backnotprop
backnotprop force-pushed the fix/live-tree-fast-load branch from 66d6252 to 397bcda Compare June 19, 2026 06:49
@backnotprop
backnotprop merged commit f24bb43 into main Jun 19, 2026
13 checks passed
@backnotprop
backnotprop deleted the fix/live-tree-fast-load branch June 19, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant