Skip to content

Conversation

@robcohen
Copy link
Member

Problem

  • Recent files could accumulate duplicates when paths had different representations (e.g., /foo/./bar vs /foo/bar)
  • Deleted files remained in the recent list

Solution

  • Normalize paths via canonicalize() before storing
  • Filter non-existent files when rendering the list
  • Auto-clean storage when stale entries are found

New Tauri commands

  • normalize_path(path) - Returns canonical path or error if file doesn't exist
  • filter_existing_paths(paths) - Returns only paths that exist, normalized

- Normalize paths before storing (prevents /foo/./bar vs /foo/bar duplicates)
- Filter out non-existent files when rendering recent list
- Auto-clean stale entries from storage
@robcohen robcohen enabled auto-merge (squash) January 27, 2026 01:11
@robcohen robcohen merged commit cb2c99a into main Jan 27, 2026
23 checks passed
@robcohen robcohen deleted the fix/recent-files-duplicates branch January 27, 2026 01:11
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