Skip to content

perf: progressive loading for Cursor vscdb sessions - #125

Merged
vakovalskii merged 1 commit into
mainfrom
fix/cursor-progressive-loading
Apr 8, 2026
Merged

perf: progressive loading for Cursor vscdb sessions#125
vakovalskii merged 1 commit into
mainfrom
fix/cursor-progressive-loading

Conversation

@vakovalskii

Copy link
Copy Markdown
Owner

Summary

  • Cursor vscdb sessions (410+) now load in background via async execFile
  • Frontend auto-refreshes after 2s when X-Loading header is present
  • Workspace map cached to disk (/tmp/codedash-cursor-ws-map.json, 10 min TTL)
  • Background results merged into existing cache — no full rebuild needed

Before: ~9.5s blocking initial load
After: ~5.6s initial + cursor sessions appear ~2s later (0ms from cache)

Test plan

  • 1st call returns fast sessions + _loading: true
  • 2nd call returns all 748 sessions + _loading: false in 0ms
  • Detail loading still works for vscdb sessions
  • Export markdown works for vscdb sessions

🤖 Generated with Claude Code

Load Cursor vscdb sessions in background (async execFile) instead of
blocking the initial page load. Frontend auto-refreshes after 2 seconds
when X-Loading header is present.

Before: ~9.5s initial load (blocking)
After: ~5.6s initial load + cursor sessions appear ~2s later

- Workspace map cached to disk (10 min TTL) for fast subsequent loads
- Background results merged into existing cache without full rebuild
- X-Loading response header signals frontend to auto-refresh

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vakovalskii
vakovalskii merged commit 6ec6918 into main Apr 8, 2026
6 checks passed
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