You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add force_full parameter to sync API for bisync operations
Add a force_full parameter to the sync API endpoint and service layer
to allow forcing a full scan that bypasses the watermark optimization.
This is critical for ensuring database consistency after rclone bisync
operations, which can modify files without updating mtimes in a way
that incremental scans can detect.
Changes:
- Add force_full query parameter to /project/sync endpoint
- Pass force_full through sync service layers (sync -> scan)
- Add "full_forced" scan type that bypasses watermark optimization
- Update CLI helpers (run_sync, sync_project) to support force_full
- Force full scan after bisync in upload_command (KEY FIX for #407)
- Include "full_forced" in deletion detection logic
This fixes issue #407 where files synced via bisync don't appear in
the web app because the incremental scan doesn't detect changes made
by external tools like rclone.
Performance impact: Full scans are slower (450s vs 2s for 1.4k files),
but this only happens after explicit bisync operations where users
expect some processing time.
Fixes#407
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>
0 commit comments