Skip to content

feat(cli)!: remove legacy cloud sync and bisync in v1.0 #1845

Description

@phernandez

Remove the deprecated bm cloud sync, bm cloud bisync, and bm cloud bisync-reset implementations in v1.0. Make bm cloud push / bm cloud pull the supported transfer workflow for Personal and Team workspaces. This completes the deprecation in #1596.

sync treats the local folder as authoritative and invokes rclone sync --delete-excluded: it can delete notes created only in Cloud, including work from people and managed agents. Push/pull preserve destination-only files and require an explicit choice for differing content.

Scope

  • Remove execution of all three mirror commands and bisync-only state/initialization machinery. Audit project-removal cleanup and other callers before deleting shared helpers.
  • Keep migration-only command stubs for the 1.0 release: print replacement instructions and exit nonzero without transferring or deleting anything. Do not silently alias sync to push.
  • Preserve push/pull, cloud setup, sync-setup, local path configuration, and shared rclone code still needed by Personal transfers. Preserve Team WebDAV authorization and transfer behavior.
  • Keep cloud prune as an explicit preview/confirmation workflow for ignored cloud files. Do not expand this issue into removing cloud check.
  • Update CLI help, manuals, setup output, examples, and release/upgrade documentation. Use docs/1.0.md as the working migration document.
  • Do not automatically delete users' local files, remote files, credentials, or old bisync state directories during upgrade.

Migration contract

  • push uploads; pull downloads. Neither propagates deletions.
  • Default --on-conflict fail aborts before transfer when differing files are found. Available choices: keep-local, keep-cloud, keep-both.
  • There is no common sync baseline: any differing content is a conflict, even if only one side was edited. There is no automatic three-way merge.
  • Renames are not propagated as moves; an old destination path can remain. A later reverse transfer can bring back a file deleted on only one side.
  • push --on-conflict keep-local provides explicit local precedence but is not an exact-mirror replacement: cloud-only files remain.

Acceptance and verification

  • Removed command stubs exit nonzero with actionable migration guidance and perform no credential provisioning, transfer, or deletion.
  • Mirror implementations and unused bisync state handling are gone; retained shared helpers have callers.
  • Personal and Team push/pull retain dry-run, workspace routing, conflict choices, and destination-only preservation.
  • Migration docs explicitly explain deletion, rename, and conflict behavior; no active guide recommends bisync or destructive mirror sync.
  • Targeted CLI, rclone, WebDAV, and project-cleanup tests pass; run typecheck and relevant manual consistency checks when changed.

Investigation baseline: 194 tests passed across tests/cli/cloud/test_project_sync_command.py, tests/cli/cloud/test_webdav_transfer.py, and tests/test_rclone_commands.py. No removal implementation has been made yet.

Activity

  1. added this to the v1.0 milestone on Oct 23, 2026
  2. claude commented on Oct 23, 2026

    @claude
    Contributor

    Claude finished @phernandez's task in 16s —— View job


    Triage

    Type Enhancement (breaking removal, feat(cli)!)
    Component CLI commands and Cloud functionality. Cloud label applied.
    Priority Medium. It is a v1.0 release item, and it removes a data-loss risk: rclone sync --delete-excluded can delete cloud-only notes.
    Complexity Medium. The code removal is simple. Auditing shared helpers (project-removal cleanup, rclone code that Personal push/pull still needs, Team WebDAV) and the docs and manual updates take more care.

    Duplicates: None. This follows from #1596 (closed), which added the deprecation. It is not a duplicate.

    Notes

    • The issue has clear scope, a migration contract and acceptance criteria, so I have no clarifying questions.
    • The riskiest part is deleting bisync state and init helpers. Check callers first, especially project-removal cleanup.
    • The stubs must exit nonzero before any credential provisioning happens, and they must not alias sync to push.
    • The 194-test baseline is a good regression gate. Add tests for the stub exit codes and for "no side effects".
    • Per the triage scope, I have made no code changes.
  3. added a commit that references this issue on Oct 29, 2026
    82ddc0a
  4. added a commit that references this issue on Oct 29, 2026
    5b1d843
  5. added a commit that references this issue on Oct 29, 2026
    4f7aa87
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

    cloudBasic Memory CloudenhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions