Skip to content

Relative exclusions, settings validation, log copy, version 1.12 - #20

Merged
SteveIves merged 6 commits into
masterfrom
relative-exclusions
Nov 20, 2026
Merged

SteveIves merged 6 commits into
masterfrom
relative-exclusions

Conversation

@SteveIves

@SteveIves SteveIves commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

Excluded directories are stored relative to the Local Path

  • The Add button is disabled until a valid Local Path is set, and the picked directory must be a subdirectory of it. It is saved with the Local Path trimmed off.
  • Relative exclusions are resolved to full paths when the sync starts; the sync library is unchanged.
  • On every settings load, exclusions are validated. Full paths from older files are converted to relative and the file is resaved. Invalid entries (outside the Local Path, .., blank, invalid characters, or a full path with no Local Path) show a warning and the app does not continue.
  • Changing the Local Path checks that the exclusions still exist under it. The user can remove the ones that don't, or reject the new path. The check runs when the field loses focus, after Browse, and on close.

Hand-edited settings paths

  • Single backslashes in LocalPath and ExcludedDirectories in the raw JSON are repaired before parsing (including \t, \n, \r, \b, \f, which would otherwise silently become control characters), and the file is resaved.

Log list

  • A single row or a range of adjacent rows can be selected; a Copy context menu (and Ctrl+C) copies the selection.
  • When rows are selected and the list is scrolled down, new messages no longer snap the view to the top.

Stop Sync no longer freezes the UI

  • Closing the SFTP connections is a blocking network call and was done one connection at a time on the UI thread. It now runs in parallel on background threads, Start stays disabled until teardown finishes, and any connection that takes more than 2 seconds to close is logged.

Version 1.12 (same 6 files as the 1.11 bump).

Testing

Built locally; path validation, the JSON repair and the selection logic were tested in scratch projects, and the settings and main window changes were tested by hand.

🤖 Generated with Claude Code

SteveIves and others added 6 commits November 20, 2026 09:19
- Add is disabled until a valid local path is set, and the picked directory must be a subdirectory of it.
- Exclusions are saved relative to the local path and resolved to full paths when the sync starts.
- On every settings load, exclusions are validated; old full paths are converted and the file resaved. Invalid entries show a warning and the app does not continue.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The new local path is committed when the field loses focus, after the Browse picker, or on close. If any exclusions do not exist under it, the user can remove them or reject the new path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…g settings.

The raw JSON text for LocalPath and ExcludedDirectories is fixed before parsing, and the file is resaved with correct escaping.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… Copy context menu.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closing the SFTP connections is a blocking network call, so do it in parallel on background threads, keep Start disabled until teardown completes, and log any connection that takes more than 2 seconds to close.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@SteveIves
SteveIves merged commit 067d539 into master Nov 20, 2026
1 check passed
@SteveIves
SteveIves deleted the relative-exclusions branch November 20, 2026 18:21
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