Skip to content

Start over at every place: WebDAV, S3, Git and a folder too - #378

Merged
tiendc merged 1 commit into
mainfrom
sync/start-over-everywhere
Dec 5, 2026
Merged

tiendc merged 1 commit into
mainfrom
sync/start-over-everywhere

Conversation

@tiendc

@tiendc tiendc commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

When a device connects to a place that already holds another vault, the join step offered Start over here only for Google Drive, OneDrive, Dropbox, iCloud and a shellwing server. For WebDAV, S3, Git and a folder it explained the manual steps instead: stop syncing on every device, delete the shellwing folder, then connect again. Now every place offers it, on the desktop, Android and iOS.

Why the app should do it, even where a person can

  • It is safer than doing it by hand. Vault::start_over_at writes this vault's format.json first, then removes the old vault's records, images and pairing. The devices still syncing the old vault find another vault there, stop, and say so. By hand, a device someone forgot to stop starts a vault of its own in the emptied folder.
  • It removes only shellwing's own files. Every place keeps them under shellwing/: a folder's <folder>/shellwing, WebDAV's <address>/shellwing/, S3's <prefix>/shellwing/, Git's shellwing/ in the repository, and Android's folder through the Storage Access Framework.
  • Git: the removals go into one commit. The old vault stays in the repository's history, encrypted.
  • Effort: none of the backends needed changes, as the core (start_over_at, the mobile crate's start_over) already worked with any place. Only the three UIs held it back.

Changes

  • Desktop: ask_join_how always offers Start over here. The test-only Workspace::start_over_at is gone.
  • Android: the same in SyncScreens.kt.
  • iOS: the same in SyncView.swift; hidden() is gone.
  • Translations: the manual-steps message is removed from every language.
  • Docs: configuration.md explains Start over here among the ways to join; the design's two "as for Drive and OneDrive" lines now say every place.

Testing

  • cargo test --profile ui-tests -p shellwing --features ui-tests ui_tests::sync: 36 passed (Linux).
    • New every_place_offers_to_start_over (WebDAV, S3, Git).
    • starting_over_removes_the_other_vault_there now goes through the join step after choosing the folder, as a person does, and checks that the old vault is gone and this one is there.
  • make lint, cargo clippy -p shellwing --features ui-tests --all-targets -- -D warnings, make android
  • iOS: there is no Swift toolchain on this machine; the change only removes a condition and the hidden() helper.

🤖 Generated with Claude Code

Joining a vault found at a place offered Start over here only where a
person could not delete it by hand (Google Drive, OneDrive, Dropbox,
iCloud, a server); WebDAV, S3, Git and a folder said how to do it by hand
instead: stop syncing on every device, delete the shellwing folder, connect
again. Now every place offers it, on the desktop, Android and iOS.

The app does it better than a person can: it writes this vault's
format.json first, so the devices still syncing the old vault stop and say
so, rather than start one of their own in a folder emptied by hand while
one of them still synced. It removes only shellwing's own files: every
place keeps them in its `shellwing/` folder.

UI tests: the folder's start over now goes through the join step, as a
person does (the test-only entry is gone); WebDAV, S3 and Git offer it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tiendc
tiendc merged commit 95491fb into main Dec 5, 2026
5 checks passed
@tiendc
tiendc deleted the sync/start-over-everywhere branch December 5, 2026 09:58
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.

1 participant