Skip to content

[Divergence] Native SDK exposes per-priority sync status and global has_synced/last_synced_at (powersync-native #48) #692

Open

Description

@benitav

What's changing: The native/Rust SDK adds SyncStatusData::priority_status() and priority_status_for(priority), returning a new PriorityStatus type with has_synced() and last_synced_at(). It also adds global has_synced() and last_synced_at() on SyncStatusData, derived from these entries, so apps can check whether the initial sync has completed without tracking individual Sync Streams. The change is unreleased (changelog entry "0.1.1").

High priority — existing docs are now inaccurate or incomplete
None identified.

For reviewer consideration — worth documenting

  • Rust SDK Reference (https://docs.powersync.com/client-sdks/reference/rust): the page does not describe sync status. It links to Usage Examples for sync status and initial sync, so the new has_synced(), last_synced_at() and per-priority status have no coverage for Rust yet.

Source PR: powersync-ja/powersync-native#48 — open, labeled "Product visibility"

Filed automatically by Claude Code (claude-sonnet-5-5). A human must verify the scope, prepare the docs PR, and publish it only once this update has been released.

Activity

  1. benitav commented on Oct 13, 2026

    @benitav
    CollaboratorAuthor

    [Status Update] Source PR powersync-ja/powersync-native#48 is now merged on 2026-10-12.
    Documentation updates can be published after the change ships in a release.


    Generated by Claude Code

  2. benitav commented on Oct 14, 2026

    @benitav
    CollaboratorAuthor

    @simolus3 can you check this and close this issue if you think it's unnecessary to document? Update: I now see there is a corresponding Tauri/JS PR as well. Looks like the agent here missed a few recommendations in this regard or might log a separate issue, but a few places are now/soon outdated, e.g. https://docs.powersync.com/client-sdks/reference/tauri#limitations and examples on https://docs.powersync.com/client-sdks/usage-examples#accessing-powersync-connection-status-information

  3. self-assigned this
    on Oct 14, 2026
  4. benitav commented on Oct 14, 2026

    @benitav
    CollaboratorAuthor

    Related PR powersync-ja/powersync-js#1147 (merged 2026-10-14) forwards the Rust SDK's per-priority sync status through the Tauri plugin, so hasSynced, lastSyncedAt, and priorityStatusEntries now work on Tauri and waitForFirstSync() resolves. It is the same feature surfaced in another SDK. One newly affected page: Tauri SDK Reference (https://docs.powersync.com/client-sdks/reference/tauri), whose "Limitations" section says the Rust SDK does not provide lastSyncedAt, hasSynced, and priorityStatusEntries on SyncStatus and tells readers to use SyncStatus.forStream instead. That statement is now inaccurate once the change is released.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions