Skip to content

Column layouts of link and file-open connections sync to iCloud #4423

Done

Description

@datlechin

What happened?

With iCloud Sync and its Settings category on, column widths and order saved on a connection opened from a link (postgresql://...) or by opening a database file in Finder go up to iCloud. Those connections are never saved and get a new id on every open, so the records land on every Mac under an id no connection has, and nothing deletes them.

Steps to reproduce

  1. Turn on iCloud Sync with Settings checked.
  2. Run open 'postgresql://user@localhost/db', or double-click a .sqlite file, and connect.
  3. Open a table and resize a column.
  4. The next sync pushes a columnLayout. settings record named after that connection's id.

Expected behavior

Records owned by a connection that exists only for this session (origin .link, or opened from a file) stay on this Mac.

Code path

  • ColumnLayoutPersister.save marks the layout dirty for any connection id (apple/TablePro/Core/Storage/ColumnLayoutPersister.swift:56-81).
  • SyncBoundary refuses only library connections that opt out (participatesInSync) and deleted owners (apple/TablePro/Core/Sync/SyncBoundary.swift:13-26). Any other owner passes (:36-41), and collectSettings pushes it (apple/TablePro/Core/Sync/Extensions/SyncCoordinator+PushCollection.swift:299-312).
  • Link: apple/TablePro/Core/Utilities/Connection/TransientConnectionFactory.swift:60. File open: apple/TablePro/Core/Services/Infrastructure/TabRouter.swift:471-478, a new unsaved connection per open.
  • Unknown owners pass on purpose, for a connection another Mac has not pulled yet (SyncBoundaryTests "Local only and sample connections are refused as owners, synced and unknown ones are not"). The fix needs this session's transient ids, not a refusal of every unknown id.
  • Table favorites, database favorites, saved queries and table folders owned by such a connection go through the same check (SyncCoordinator+PushCollection.swift:349-460).

Found by reading the code at main, not run against iCloud.

Database type

N/A

TablePro version

main (f67b55a)

Platform

macOS

Found during the 2026-11-22 perf audit.

Activity

  1. added
    bug
    platform-macos
    on Nov 23, 2026
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

    bugplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions