Skip to content

Prevent startup hangs when restoring filesystem roots - #119

Merged
mattenarle10 merged 1 commit into
mattenarle10:mainfrom
Icatme:agent/fix-drive-root-startup-hang
Jul 23, 2026
Merged

Prevent startup hangs when restoring filesystem roots#119
mattenarle10 merged 1 commit into
mattenarle10:mainfrom
Icatme:agent/fix-drive-root-startup-hang

Conversation

@Icatme

@Icatme Icatme commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Closes #118

What changed

  • clear both mdview.folders and mdview.lastFolder before React mounts when either contains a filesystem root
  • reject filesystem roots in the folder picker and exclude them from recursive folder watchers
  • preserve unrelated persisted settings and add localized feedback for every supported language
  • add regression coverage for both folder-state fallback directions and watcher filtering

Root cause

Version 1.6.1 restores persisted folders into a recursive Tauri filesystem watcher. If a Windows drive root such as V:\ is restored, the watcher traverses the entire drive and startup can become unresponsive. Clearing only one persisted folder key is insufficient because hydration falls back through the other key.

Validation

  • bun test — 47 passed
  • bun run build
  • cargo check --manifest-path src-tauri/Cargo.toml
  • built marka.md.exe in release mode and launched it against the affected WebView profile; the window reached input-idle and remained responsive

@Icatme
Icatme marked this pull request as ready for review July 20, 2026 10:39
@mattenarle10
mattenarle10 merged commit 6909ab7 into mattenarle10:main Jul 23, 2026
2 checks passed
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.

Windows startup hangs when restoring a drive root

2 participants