Skip to content

fix(sync): the launch reads the open move, and a file connection shows its path - #4833

Merged
datlechin merged 2 commits into
mainfrom
fix/open-move-icloud-file-and-file-subtitle
Dec 2, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/open-move-icloud-file-and-file-subtitle

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • Core sync: open_move_now reads the iCloud state file only under iCloud, the one provider whose move it uses. Under TablePro Sync and Off the open-move read no longer fails with sync.state.busy while the downgrade marks hold that file.
  • Core sync: the moves settle at open after the downgrade marks finish reading their owners from the iCloud file. Before, the two raced for the file lock, so under Off a first upload left open was not resumed and a move from iCloud left open was not ended.
  • Core sync: the marks' owner read and icloud_file_move wait for a busy iCloud file the way a call waits for the service file. The marks now log when they read no file instead of reading no owners silently.
  • macOS: a connection that opens a local file (SQLite, DuckDB or libSQL in local mode) shows that file under its name, not the localhost the editor saves as its Host.
  • macOS: a Linked Folders row takes its subtitle from the same code as a saved row, so a shared SQLite file no longer shows localhost//path. This removes WelcomeRowPresentation.endpoint and its test sharedEndpoint.

Test plan

  • sync::tests::the_open_move_answers_under_tablepro_sync_while_the_icloud_file_is_held and sync::tests::a_move_from_icloud_left_open_under_off_ends_once_the_downgrade_marks_let_go_of_the_icloud_file fail on main with sync.state.busy and pass here. All 76 tablepro-ffi sync tests and all tablepro-sync-host tests pass. Clippy with -D warnings and rustfmt are clean.
  • DatabaseConnectionDisplayTests/fileBasedIgnoresSavedHost, DatabaseConnectionDisplayTests/duckdbLocalShowsItsFile and WelcomeRowPresentationTests/linkedRowDetail are new. They are hosted tests and were not run locally, because the release app was open on the Mac and the test host has the same bundle id. CI runs them.

@datlechin
datlechin merged commit c6739fc into main Dec 2, 2026
32 of 34 checks passed
@datlechin
datlechin deleted the fix/open-move-icloud-file-and-file-subtitle branch December 2, 2026 17:19
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