ShellIntegration kept its own list of extensions, which had drifted from the one the app reads: .sha384sum and .b3sum
had no "Verify with Hash Tool" entry. It now uses ChecksumFileNames.KnownExtensions, and since the entries are written
again at every start, existing installations pick them up. Tests keep the Core list, the algorithms' extensions and
the macOS document types in build/macos/Info.plist in step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fixable known limitations of ACCESSIBILITY.md:
- Hashes, file names and paths keep left-to-right order in right-to-left languages (FlowDirection on each control,
not on the rows, so buttons keep their mirrored order).
- Verify shows the computed hash of a mismatched file under the expected one, in a read-only box that is focusable and
named "Computed hash"; it used to be only in the status tooltip, which bypassed hash masking (now masked too). The
expected-hash box is named "Expected hash" instead of its placeholder.
- A run of one file ends with its result in a live text at the top of the page ("photo.jpg: VALID"), which screen
readers announce; several files still end with the summary dialog.
- Shortcut tooltips use the platform's notation (⌘O on macOS) and the buttons and search box expose them as
AcceleratorKey.
ACCESSIBILITY.md is reviewed for 1.3.0: the maintainer's keyboard-only and Narrator test, the email address for people
who cannot use GitHub, the remaining limitations, and two new rules for contributors. New strings: Lbl_ExpectedHash,
Lbl_ComputedHash, Msg_RowResult.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FsCheck runs each property on 500 random inputs and reports the smallest one that fails:
- the checksum parser accepts any text (random and checksum-shaped lines) without throwing, and whatever it accepts
is a hexadecimal digest of the algorithm's length;
- GNU (with backslashes and line breaks in names), BSD and SFV files read back exactly what ChecksumWriter wrote;
- ChecksumEntry.ResolvePath never returns a network or device path and refuses names starting with // or \;
- HashMatcher ignores letter case, spaces and a 0x prefix, rejects wrong lengths and non-hex digits, and accepts the
reversed CRC32 that Hash Tool 1.1 wrote;
- TextHashing writes every line break the chosen way.
OpenSSF Scorecard counts FsCheck as fuzzing. FsCheck (BSD-3-Clause) is a test-only dependency, updated by Dependabot
with the other test packages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The last new feature before maintenance mode, suggested in Discussions #23.
- Hash Text page (after Verify): type or paste text and see its hash in every algorithm, updated shortly after each
change, with a copy button per algorithm. UTF-8, UTF-16 LE or UTF-16 BE without a byte order mark; LF or CRLF line
breaks (every line break in the text is written that way); nothing is appended, so the SHA-256 matches
printf '%s' text | sha256sum. Follows the hash letter case and hash masking settings; usable while a list is busy.
- Core: TextHashing turns text into those bytes; the page hashes them in memory with HashEngine.
- hashtool hash - reads standard input once per command, like sha256sum -.
- Tests for the conversion, the view model, navigation, accessibility names and headings of the new page, the smoke
test and the CLI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every focusable control has a translated automation name: list rows by
file name, buttons with an icon and a label, filters, number boxes (and the
text box inside them), progress bars, switches and lists. Avalonia 12.1
otherwise announces "Avalonia.Controls.StackPanel" or the row's view model.
- Page titles are level-1 headings, section titles level 2; navigation and
page are landmarks; update/notice banners and the update status are polite
live regions; decorative logos are hidden from assistive technology.
- RowTabNavigation: Tab moves through the controls of the focused list row,
then leaves the list (ListBox is a single tab stop).
- FocusHandOff: focus moves to Cancel when COMPUTE ALL / VERIFY ALL hides
itself, and back; same for a row's run/stop buttons.
- Number box spin buttons are no tab stops and hidden from screen readers;
Up/Down change the value.
- Colour-blind light palette: error, warning and info statuses reach 4.5:1.
- Dialogs follow the UI scale and stay within the screen.
- AccessibilityTests: names on every page in two languages, headings, Tab
in rows, focus hand-off, WCAG contrast of every palette.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release and CI logs then show which runtime a self-contained build
bundles, such as 10.0.14 after a security update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Avalonia 12 creates an application per test by default, so the app's
startup ran again for every test, and its asynchronous part (system font
loading, then applying the settings) could land on the dispatcher of a
later test: "The calling thread cannot access this object" on cleanup,
seen on macOS CI and now and then on Windows. The app itself has one
application per process, and so do the tests now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MainWindowAccessor gets an internal constructor so tests can hand the
services a headless window of their own (the test application has no
desktop lifetime): dialogs are clicked and dismissed for real, and the
pickers, clipboard and launcher run against the headless platform.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UpdateService gets an internal constructor that takes the Velopack update
manager and the HTTP client for release notes, so tests run checks and
downloads against Velopack's own SimpleFileSource and TestVelopackLocator
in a temporary folder: no network, and nothing is ever applied.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests that switch the UI language run in a collection of their own so they never race other tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The common folder of the hashed files was found with a plain prefix test,
so "photos" and "photos-2024" counted as one inside the other and every
file of the second folder was stored with its absolute path. Tests cover
the Generate page's exports, ZIP, copy and error paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The row handler was registered for the tunnel route, but drop events only
bubble, so it never ran: the file was added to the list as a new row
instead. It now sits on the list ahead of the handler that adds files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AppPaths resolves the data folder once, and only the first Avalonia test
used to point it at a temporary folder: a plain test running first would
have used the real settings folder. A module initializer now sets it
before any test. The dialog, storage and clipboard fakes move to
Fakes.cs, can be scripted, and never accept the restart as administrator.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Unix, .NET named pipes are one Unix socket shared by all server
instances; disposing the only instance before creating the next one closed
the socket and dropped a launch that had already connected, while that
launch reported success. The next instance is now created before the
connected one is handled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Large batches: the final drain applied at most 2,000 events, so batches
of more than ~1,000 files left rows "Queued"/"Hashing" and corrupted the
next run; it now drains until the queue is empty.
- Second launches: PipeMessage had two constructors, so the generated
serializer threw and the pipe listener stopped after the first message;
the listener now survives any bad connection. Requests that arrive
together (one Explorer process per selected file) are merged and handled
one at a time, waiting while the target page is busy.
- Verify summary counts missing files and rows without a hash as failures
instead of reporting success; no "folder is empty" after a checksum file
fills in existing rows; hash files cannot be loaded into queued rows.
- Changing a row's algorithm clears a result computed with another one;
exports always use the algorithm that produced the hash.
- .sfv files read "name CRC32" first (names starting with eight hex digits
were taken for GNU lines); SFV lines are parsed without a backtracking
regex; only LF separates lines (U+2028/U+0085/form feed are valid in names).
- Logging no longer reopens the file for every line after a 10 MB rollover.
- Explorer "Generate hash" on a drive root works (C:\ arrives as C:").
- A timed-out update check reports a network error instead of staying on
"Checking"; installing an update saves settings and window placement
first, and the update banner waits until no batch is running.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- EnableCustomCulture: on Ubuntu (no ICU data for Dhivehi) MSBuild kept
".dv-mv" in the resource name inside the satellite and did not treat
the folder as a culture when copying it to referencing projects. The
satellite test now reports what it found if this ever regresses.
- Dependabot waits seven days after a release before proposing it
(zizmor dependabot-cooldown).
- RELEASING.md: the release commit goes through a pull request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Screenshots rendered from the real app (Avalonia headless with Skia),
replacing the 1.1 ones that still showed removed features.
- LegacyClient accepts the repository URL instead of a folder, so the
published release can be checked with Velopack 0.0.1298 against GitHub.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- src/HashTool.Cli: `hashtool hash | verify | check | algorithms` on top of
Core, NativeAOT-ready (3.9 MB native binary), coreutils-style output and
exit codes (0 ok, 1 failed/mismatch, 2 usage or unreadable checksum
file); Windows paths are written with '/' so lines need no escaping.
- tests/HashTool.Cli.Tests: commands, formats and exit codes.
- tests/HashTool.App.Tests (Avalonia headless): every page in several
languages including RTL, a folder create-and-verify flow, translation
integrity (keys, placeholders, Languages.json/resx/project wiring,
satellite assemblies, unused keys), system language detection, command
line parsing and helpers.
- tests/Compat/LegacyClient: drives Velopack 0.0.1298 (the library inside
Hash Tool 1.1.x) against new release files for the upgrade gate.
- build/macos/Info.plist keeps the 1.x bundle identity and adds "Open
With" document types; build/linux/hashtool.png is the AppImage icon.
- bench/HashTool.Benchmarks (BenchmarkDotNet) and a tool manifest pinning
vpk 1.2.161, nuget-license and CycloneDX.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Composition root (AppHost) with Microsoft.Extensions.DependencyInjection;
view models receive dialog, storage, clipboard and launcher services.
- Logging: daily rolling log file (invariant timestamps, user paths masked,
14-day retention), in-memory sink for the Developer console, Avalonia
warnings forwarded, synchronous crash reports.
- Settings: one SettingsService over SettingsStore (atomic debounced saves
taken under a lock, corrupt-file recovery, 1.x font settings migration).
- Create/Verify run on BatchProcessor and HashEngine: dropping folders no
longer crashes, imports run off the UI thread in batches, rows can be
started/stopped individually, UI updates are pumped every 100 ms, and
statuses are stored as enums and translated when displayed.
- Checksum files: export GNU/BSD/SFV/JSON/CSV manifests, ZIP archives with
unique entry names plus a manifest, verify any manifest or sidecar file
(UNC and device paths are rejected).
- OS integration: --create/--verify arguments, single instance with argument
forwarding, optional Explorer context menu (per-user, removed on
uninstall), macOS file activation, on-demand restart as administrator.
- Updates: stable channel only, optional daily background check,
cancellable download, install now or on exit.
- Removed: Free Memory, Force Quit and its timeout, automatic elevation,
developer update channel and disclaimer window, ViewLocator, unused
converters.
- Fixed: search highlight duplicating the end of file names, single-letter
shortcuts firing while typing, culture reverting after language changes,
colour-blind and high-contrast palettes not reaching status colours.
- Headless --smoke-test mode for CI and the release upgrade gate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HashTool.Core now holds everything that does not need a UI:
- HashEngine reads a file once for any number of algorithms, overlaps disk
reads with hashing (double buffering), uses BLAKE3's multi-threaded mode
for large blocks and opens files with FileShare.ReadWrite|Delete so files
still open in another program can be hashed.
- CRC-32 is now printed in the conventional big-endian order (CBF43926 for
"123456789"); HashMatcher still accepts the reversed values written by 1.x.
- ChecksumParser reads GNU (sha256sum), BSD/--tag, xxhsum, SFV, bare 1.x
sidecars and certutil output, including UTF-16 files; ChecksumWriter writes
GNU, BSD, SFV, JSON and CSV (formula-injection safe). Network (UNC) and
device paths inside checksum files are never resolved.
- ChecksumFileNames recognises checksum files by extension and *SUMS names
instead of Enum.TryParse, which accepted numeric extensions like .001.
- FileEnumerator walks folders on a background-friendly lazy enumerator,
skips unreadable folders and does not follow symbolic links or junctions
(the old walker looped forever on link cycles).
- BatchProcessor runs small files in parallel and large files in their own
lane, with per-file cancellation and timeouts, and reports every item once.
- SettingsStore saves atomically, recovers from corrupt files (keeps a .bak),
clamps values, reads 1.x files and imports font_settings.json, which 1.1.x
used as the only store for font choices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- src/HashTool.App: the Avalonia app (namespace HashTool.App). The assembly
keeps the name CheckHash because every 1.x release shipped CheckHash(.exe)
as Velopack's mainExe.
- src/HashTool.Core: UI-independent hashing code (HashService, HashType,
ProgressStream, ProcessingStrategyService, AppConstants).
- tests/HashTool.Core.Tests: xUnit v3 characterization tests for the hashing
service, including the current little-endian CRC-32 output.
- Directory.Build.props (shared settings, NuGet audit), central package
management, global.json (SDK 10.0.4xx, Microsoft.Testing.Platform runner),
.editorconfig, HashTool.slnx replace CheckHash.csproj/CheckHash.sln.
- Only the icon and logo are embedded as Avalonia resources; screenshots move
to docs/images and are no longer compiled into the binary.
- Drop the unused generated Resources.Designer.cs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Updated `SettingsViewModel`, `DeveloperViewModel`, and `MainWindowViewModel` to raise `PropertyChanged` for the `Localization` property when the language changes. This forces Avalonia to refresh bindings to the `Localization` indexer.
- Updated `UpdateViewModel` to subscribe to language changes and manually refresh localized strings (`CurrentVersionText`) that are not directly bound to the Localization indexer.
- Added `LocalizationTests.cs` to verify that PropertyChanged events are raised correctly on language change.
- Added 1MB size limit to `ReadHashFromFile` in `CheckHashViewModel`.
- Added warning log if file is too large.
- Added `tests/CheckHash.Tests` project with regression test.
- Excluded `tests/**` from `CheckHash.csproj` to prevent duplicate compilation.
- Added Sentinel journal entry in `.jules/sentinel.md`.