The event_device table has no hash_prefix_length column, so incoming_dev.hash_prefix_length is always undefined from the API. The old merge logic preserved whatever was in localStorage, which had a stale value of 1 from earlier testing — causing the background file sync to create 1-char cache subdirectories instead of the correct 2-char SHA-256 prefix dirs. Background sync now consistently creates 2-char dirs matching launch_from_cache behavior. If the API ever returns a hash_prefix_length, it will be used; otherwise the floor is 2. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 KiB
14 KiB