Skip to content

fix(mobile): harden workspace pin migration and snapshot ordering - #676

Merged
huichen merged 1 commit into
mainfrom
fix/workspace-pin-hardening
Sep 16, 2026
Merged

huichen merged 1 commit into
mainfrom
fix/workspace-pin-hardening

Conversation

@huichen

@huichen huichen commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Fixes

  • Run the existing workspace pin migration as required, independently of optional run-archive migrations; preserve its migration ID and SQL.
  • Reject zero-row pin updates for deleted/missing workspaces while retaining idempotent active-row writes.
  • Advertise workspace_pinning_v1 on both handshake paths and hide unsupported actions on older desktops.
  • Return the shared versioned workspace snapshot from pin commands. Commit acknowledgements through the same gate as reads/pushes instead of overwriting state with the requested flag.

Regression coverage

Migration rollback/retry and optional migration failure isolation; deleted-row rejection; capability-gated menus; shared ack/read versions; reversed pin/unpin replies; stale in-flight reads; client/epoch replacement; invalid replies and errors.

Validation

  • Mobile: typecheck, full eslint, 106 Jest suites / 1507 tests passed.
  • Desktop backend on Rust 1.97.0: fmt, all-targets clippy with -D warnings; 1269 lib + 1 bin + 5 integration tests passed (existing ignored tests unchanged).
  • First full backend run failed the unchanged instance lock release test. Its isolated retry and a subsequent complete run passed; no unrelated code changed.
  • No native-device visual validation; ordering logic and layout are unchanged.

@huichen
huichen enabled auto-merge (squash) September 16, 2026 17:12
@huichen
huichen merged commit 11a6e51 into main Sep 16, 2026
12 checks passed
@huichen
huichen deleted the fix/workspace-pin-hardening branch September 16, 2026 17:20
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