Skip to content

one sync profiles should auto-update connection key when platform is re-authenticated #114

@ameet

Description

@ameet

Problem

Sync profiles (.one/sync/profiles/*.json) contain a hardcoded connectionKey field. When a platform is re-authenticated via one add, the sync profiles still reference the old connection key, causing syncs to fail silently or return empty results.

Current behavior

// .one/sync/profiles/gmail_gmailThreads.json
{
  "connectionKey": "live::gmail::default::d351509f...",  ← stale after re-auth
}

After one add gmail, the new key is ...ab499011... but the sync profile still points to the old key. Running one sync run gmail uses the stale key.

Expected behavior

Either:

  1. Sync profiles should reference the platform name (e.g., "platform": "gmail") and resolve the active connection at runtime
  2. OR one add gmail should auto-update all sync profiles for that platform
  3. OR one sync run should auto-detect when the profile's connection key doesn't match any active connection and warn/auto-fix

Impact

Gmail sync silently returns 0 results when the connection key is stale. The user sees no error — the sync appears to complete successfully but processes nothing.

Metadata

Metadata

Assignees

No one assigned

    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