Skip to content

v1.0.4: prevent OneDrive hydration from background file reads - #6

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-onedrive-hydration-bc6c
Sep 1, 2026
Merged

v1.0.4: prevent OneDrive hydration from background file reads#6
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-onedrive-hydration-bc6c

Conversation

@rorohecker

Copy link
Copy Markdown
Owner

Problem

Pathfinder was triggering unexpected downloads from Personal OneDrive (and other cloud sync providers) because background work read file bodies for:

  • Grid/list thumbnail generation
  • Search indexing (perceptual hash + image classification)
  • Preview pane and shell thumbnails

Reading an online-only placeholder hydrates it in OneDrive.

Fix

  • Add cloud_files::hydration_risk() — checks Windows FILE_ATTRIBUTE_OFFLINE, RECALL_ON_OPEN, and RECALL_ON_DATA_ACCESS before any content read
  • Skip hydration-risk paths in thumbnails, indexing, previews, and shell thumbnail extraction
  • Route the Settings gear button through command("settings") so AI capabilities refresh when opening Settings (small related fix)

Notes

  • Metadata-only directory listings are unchanged; pinned/always-available cloud files still work normally
  • Cloud-only files show a clear preview message instead of silently downloading

Version: 1.0.4

Open in Web Open in Cursor 

Background thumbnail generation, search indexing (dHash and image tags),
and previews were reading file bodies under OneDrive and other sync
folders, which hydrates online-only placeholders and triggers downloads.

Detect Windows cloud placeholder attributes before any content read and
skip hydration-risk paths. Opening Settings via the gear icon now routes
through the settings command so AI status refreshes on open.

Co-authored-by: rorohecker <rorohecker@users.noreply.github.com>
@cursor
cursor Bot merged commit 5357e25 into main Sep 1, 2026
1 check failed
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.

2 participants