Skip to content

7.6.0 regression: nested folders (3+ levels) disappear from sidebar after restart #2054

Open

Description

@3tlam

Description

Hi Oleksandr,

thanks for FSNotes. I use it daily, with notes synced across two Macs and iOS. After updating to 7.6.0, one Mac stopped showing deeper subfolders in the sidebar after a restart, while the same files look fine on iOS and on my other Mac. Downgrading to 7.5.1 fixed it, so it looks like a regression in 7.6.0.

Notes inside the missing folders are still indexed: they show in the parent's note list ("nested folders content") and in search. Only the sidebar entries are missing. Folders created while FSNotes is running appear immediately (via the file watcher), but vanish again after the next restart.

Storage: iCloud Drive (iCloud~co~fluder~fsnotes/Documents). Happens with both the App Store and the GitHub build of 7.6.0 (744).

To Reproduce

  1. In the storage root, create A/B/C/D/ with a note inside D, e.g. A/B/C/D/test.md. B may contain notes; C has no notes of its own.
  2. The folders appear in the sidebar right away.
  3. Quit FSNotes (⌘Q) and relaunch.
  4. Deeper folders are missing from the sidebar. In my case:
    • a/docs/* lost all its subfolders (docs shows, but no disclosure arrow)
    • b/infra/zz-depth survives, but b/infra/zz-depth/zz-sub disappears

Expected behavior

The full folder tree (A › B › C › D) is shown in the sidebar after a restart, as in 7.5.1.

FSNotes version

7.6.0 (744). Works correctly in 7.5.1.

macOS/iOS version

macOS 27.2.1 (26B131). iOS works fine with the same files.

Additional context

Startup log (7.6.0): only folders up to two levels deep are loaded via From disk: …, lbl: … (26 of 166 directories). There are no errors and no Project exist messages.

Ruled out

  • Full reset: preferences, container, caches and saved state removed; reinstalled
  • Permissions, BSD flags, xattrs (no es.fsnot.hidden.dir), .DS_Store, hidden .claude folders
  • Folder count (maxChildDirs raised to 2000, tree has 166 dirs)
  • Folder name or path (renaming docs doesn't help after a restart)
  • Recreating the folders with ditto (they only show until the next restart)

Possibly related: commit fbfe9a3 (after 7.6.0) changes fetchAllDirectories in Project.swift/Storage.swift, so the scan code has changed since this release.


Note: I'm not a macOS developer. I diagnosed this with the help of Claude (Anthropic's AI assistant), which also helped write this report, including reading the FSNotes source. Happy to run further tests if you need anything.

Activity

  1. mvanhorn commented on Nov 23, 2026

    @mvanhorn

    Both fetchAllDirectories methods in FSNotesCore/Business/Project.swift and FSNotesCore/Business/Storage.swift now prefetch .isDirectoryKey and .isPackageKey and skip non-directories before evaluating exclusions, so skipDescendants() is only called on directories and packages.

    #2055

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions