Done
Labels
Description
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
- Turn on iCloud Sync with Settings checked.
- Run
open 'postgresql://user@localhost/db', or double-click a.sqlitefile, and connect. - Open a table and resize a column.
- 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.savemarks the layout dirty for any connection id (apple/TablePro/Core/Storage/ColumnLayoutPersister.swift:56-81).SyncBoundaryrefuses only library connections that opt out (participatesInSync) and deleted owners (apple/TablePro/Core/Sync/SyncBoundary.swift:13-26). Any other owner passes (:36-41), andcollectSettingspushes 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