Repository navigation
Conversation
…y hold - Any file type syncs both ways. Photos and videos keep the content check; everything else is a File item (type icon, name, size, Open). Shortcut and folder-setting files (.lnk, .url, .scf, .library-ms, .searchConnector-ms, desktop.ini, autorun.inf) never sync and are listed as REFUSED. - Files the PC receives carry the Windows "downloaded from elsewhere" mark (Zone.Identifier, zone 3), written before the file appears in the library; if the mark cannot be written the file waits with an error instead of arriving unmarked. - Drag files onto the PC window to copy them into the folder being viewed (Inbox by default), with progress and a result banner. Folders are not copied. - Items expire on time even when no device has confirmed them (the expiry hold and the "waiting" state are gone). - Phone storage guard: downloads stop below the reserve and the phone shows PHONE STORAGE LOW. - Android: share any file into Tugboat, open files with the default app through a content URI, real file names shown to other apps, rotation no longer cuts a video recording. - Fixes: expired QR shows PAIRING CODE EXPIRED, last seen refreshes on every sync change, file times kept across restarts. - Protocol version 2: a 0.1.x device sees "Update Tugboat on the <device>" instead of syncing silently wrong. - Versions 0.2.0 (Android version code 4); schema v2 with backup.
Resolved 16 conflicted files keeping both sides: PR 1's safety fixes (create_new reservation, rename_no_replace, claimed-hash downloads, keyset paging, pair_with_cancel, generation counters) on top of 0.2.0's rules (any file type, no Waiting state, storage guard, Mark-of-the-Web, PROTO 2). The phone storage guard now runs inside PR 1's paged picker, decided before the hash claim, with a cap on how far it scans. Fixed a launch crash the merge made on Android (a dispatcher field initialised after the init block used it) and two timing-dependent tests.
…e races - Android: an unpair done on the PC now returns the phone to the first pairing screen at once (it stayed on "Paired with" until a restart); CameraX temp files left by a killed save are deleted after 60 s; a test guards the view model against fields used before they exist (the launch crash the merge caused). - Sync core: the phone storage guard counts bytes still to come from downloads started in an earlier session; fake_pc lists refused items. - Desktop: only the newest reload decides "ready" and the load error; Bin days saves the last value typed even when saves overlap; a cross-drive move's temp file is never imported and is cleaned at start; a failed save of the pre-0.2.0 file list is retried, not believed; unused move_no_replace removed; test that a received file keeps its downloaded-from-elsewhere mark through Choose and Locate. - README: the Android build also needs the Visual Studio C++ tools. - Tests: n11 resume test sender outlives its readiness wait.
|
Important Review skippedToo many files! This PR contains 171 files, which is 21 over the limit of 150. To get a review, reduce the PR to 150 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to Team to raise the limit. This review is too large to run within your organization's remaining usage spending cap. Raise or remove your spending cap in the billing tab, then retry.
|
- Comments, doc comments and docs describe the code and its rules directly instead of pointing at design notes that are not in the repository. Test fixtures use neutral names (OFFICE-PC, C:\Users\alex, made-up SIDs), and test names no longer carry scenario numbers. - Logo tools: TUG_SOURCE must be set; Electron comes from TUG_ELECTRON or PATH. - Android: while downloads are held for low storage, a waiting file says "Waiting - phone storage low" instead of "Downloading from PC". - Android version code 5 (0.2.0).
|
@coderabbitai full review |
Action not completed
|
- A folder dropped on the window is zipped into one "<folder>.zip" in the folder being viewed and added like a dropped file. Store method, UTF-8 names, empty subfolders kept, Zip64 when needed, file times in the local time of each file's own date. Links and junctions are never followed; desktop.ini, Thumbs.db and Tugboat's own .tugboat folder are left out. A name clash gives "<name> (2).zip"; an empty folder, a drive root, a folder link or not enough space is refused with one line; a read error fails that folder only and leaves nothing behind. - When the library drive cannot hold the downloaded-from-elsewhere mark, the banner now says to move the Tugboat folder to a permanent location on this PC, not removable storage.
- Sync core: an edited file over the size limit is refused from its size before hashing and judged once per version (it was re-hashed under the database lock every few seconds); a refused Explorer rename is checked before anything is written, so it is no longer undone silently; the storage-low flag no longer flaps and clears when the session ends; the blob request log is test-only. - Desktop: moving the library (Choose), restoring from the Bin and zipping a dropped folder keep the downloaded-from-elsewhere mark, and fail rather than produce an unmarked copy; the cross-drive move temp has a name no user file can have, so start-up clean-up cannot delete a real file; a synced file named like a download in progress syncs normally; a drop goes to the folder that was showing when it landed; drag-enter no longer waits on the core; the drop banner counts files. - Android: sharing a large file checks room for both copies and the size limit before copying; the rotation lock is released after a process restart; Open uses the same can-open rule the tests cover.
|
CodeRabbit skipped this PR (168 files, over its 100-file limit), so the 0.2.0 changes got a full review here instead: data safety, security, desktop and Android. 18 issues confirmed and fixed in 018329a; 3 suspected issues were checked and turned out not to be reachable. Major:
Minor: start-up clean-up could delete a user file ending in Checks on 018329a: Not covered by tests (needs a real device or drive): FAT/exFAT behaviour on a real USB stick, a real mouse drag, rotation on a phone. |
Local Tugboat 0.2.0 (desktop 0.2.0, Android 0.2.0 / version code 5).
What changes
.lnk,.url,.scf,.library-ms,.searchConnector-ms,desktop.ini,autorun.inf) never sync and are listed as REFUSED.Zone.Identifier(zone 3) before it appears in the library, so Windows warns when it is opened. If the mark cannot be written (FAT/exFAT, removable storage), the file waits and a banner says to move the Tugboat folder to a permanent location.Tested
cargo test --workspace: 555 passed, 0 failed.cargo clippy --workspace --all-targets -D warnings: clean.bun run check: svelte-check 0/0, 221 TS tests.bun run tauri build: installer builds..lnkrefused, mark present on received files, on-time expiry with the PC unreachable, storage guard banner, unpair on the PC then re-pair.Not tested yet (needs a person)
.lnk, an Outlook attachment, unplugging mid-copy).Known, not fixed here