Skip to content

docs(extension-chrome): document folder-delete cascade as known limitation#28

Merged
paperhurts merged 1 commit into
mainfrom
docs/folder-delete-cascade-known-limitation
May 24, 2026
Merged

docs(extension-chrome): document folder-delete cascade as known limitation#28
paperhurts merged 1 commit into
mainfrom
docs/folder-delete-cascade-known-limitation

Conversation

@paperhurts
Copy link
Copy Markdown
Owner

Closing #2 with documentation rather than implementation.

When you delete a folder in Chrome containing synced bookmarks, onRemoved fires for the folder node only — Chrome doesn't emit child events (the subtree is gone by the time the listener fires). The folder has no ULID mapping, so the listener no-ops. The bookmarks remain in remote bookmarks.json; on the next 5-min poll they reappear locally under the bookmarks bar.

Why not implement

Correct cascade requires either (a) a persisted folder→children index maintained on every event + reconcile, or (b) poll-time orphan detection (extra round-trips). Both are substantial work for a rare and recoverable user action. The workarounds (delete from GitHub directly, or delete bookmarks individually before the folder) are reasonable for v1.

This PR adds a 'Known limitations' section to packages/extension-chrome/README.md calling out the behavior + workarounds. The issue stays findable as #2 for any future contributor who wants to revisit.

Closes #2

…ation

Closing #2 with documentation rather than implementation. Chrome doesn't
emit child onRemoved events when a parent folder is deleted, and the
folder node itself has no ULID mapping — so the listener can't cascade.
Implementing this requires either a persisted folder→children index
maintained on every event + reconcile (significant complexity) or
poll-time orphan detection (extra GitHub round-trips). Both are
disproportionate to a rare and recoverable user action.

README now spells out the behavior + workarounds. Issue #2 stays
findable for any future contributor who wants to revisit.

Closes #2
@paperhurts paperhurts merged commit 5f9bae7 into main May 24, 2026
1 check passed
@paperhurts paperhurts deleted the docs/folder-delete-cascade-known-limitation branch May 24, 2026 04:07
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.

Folder-delete cascade not handled

1 participant