Skip to content

fix Cursor slug scan hang - #83

Open
Guiraud wants to merge 1 commit into
yigitkonur:mainfrom
Guiraud:fix/cursor-slug-hang
Open

fix Cursor slug scan hang#83
Guiraud wants to merge 1 commit into
yigitkonur:mainfrom
Guiraud:fix/cursor-slug-hang

Conversation

@Guiraud

@Guiraud Guiraud commented Aug 6, 2026

Copy link
Copy Markdown

Summary by cubic

Fixes a hang when scanning Cursor project slugs by bounding slug-to-cwd decoding and short-circuiting cwd resolution via repo.json. Also adds cwd-scoped parsing so we only scan relevant Cursor projects, keeping lookups under 100ms.

  • Bug Fixes

    • parseCursorSessions accepts { cwd }, reads repo.json first, and filters projects before scanning transcripts.
    • Adds bounded fallback in cwdFromSlug for long/Volumes slugs and preserves Windows drive behavior.
    • Preserves exact cwd when a long slug matches without repo.json, avoiding exponential decoding.
  • Refactors

    • cursor adapter marked supportsCwdLookup; buildIndex/getSessionsByCwd pass cwd only to supported adapters and filter cached results.
    • Cwd-scoped parses are not written to the global index.

Written for commit 50ac839. Summary will update on new commits.

Review in cubic

@Guiraud Guiraud closed this Aug 6, 2026
@Guiraud Guiraud reopened this Aug 6, 2026
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