From c3c9997ef3407d9dc6bb09d1a9d42b9b67727387 Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Thu, 22 Oct 2026 14:27:13 -0400 Subject: [PATCH] fix: ship the utf-8 windows clipboard read; helper 0.2.1; plugin 0.9.2 The clipboard fix from #74 changed only rust/src/clipboard.rs. The plugin installs the prebuilt helper pinned by herdr-annotate.version, which stayed at 0.2.0, and rust-lite-v0.2.0 was built before #74. Every install of main still ran the old `Get-Clipboard -Raw` read, whose output arrives in the ANSI or OEM code page. On a zh-CN machine (code page 936) that is GBK, and from_utf8_lossy turns each CJK character into U+FFFD. Bumping the helper to 0.2.1 lets a rust-lite-v0.2.1 release carry the fix. The new pin also makes existing installs fetch the new binary, because the fetchers skip a download only when the stamp matches. refs #76 --- herdr-annotate.version | 2 +- herdr-plugin.toml | 2 +- links/herdr-plugin.toml | 2 +- lite/herdr-plugin.toml | 2 +- rust/Cargo.lock | 2 +- rust/Cargo.toml | 2 +- scripts/test-windows-full-manifest.py | 4 ++-- windows-full/herdr-plugin.toml | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/herdr-annotate.version b/herdr-annotate.version index 0ea3a94..0c62199 100644 --- a/herdr-annotate.version +++ b/herdr-annotate.version @@ -1 +1 @@ -0.2.0 +0.2.1 diff --git a/herdr-plugin.toml b/herdr-plugin.toml index 01bb103..5bc05c3 100644 --- a/herdr-plugin.toml +++ b/herdr-plugin.toml @@ -1,6 +1,6 @@ id = "annotate" name = "Annotate" -version = "0.9.1" +version = "0.9.2" min_herdr_version = "0.8.0" description = "Comment on terminal selections and copy annotations as agent context." platforms = ["linux", "macos", "windows"] diff --git a/links/herdr-plugin.toml b/links/herdr-plugin.toml index 71d9bdf..60520f4 100644 --- a/links/herdr-plugin.toml +++ b/links/herdr-plugin.toml @@ -15,7 +15,7 @@ id = "annotate-links" name = "Annotate Links" -version = "0.9.1" +version = "0.9.2" min_herdr_version = "0.8.0" description = "Open Ctrl-clicked file:// Markdown links in Annotate (needs the Annotate Full plugin)." platforms = ["linux", "macos", "windows"] diff --git a/lite/herdr-plugin.toml b/lite/herdr-plugin.toml index 986ff7a..8a3823c 100644 --- a/lite/herdr-plugin.toml +++ b/lite/herdr-plugin.toml @@ -8,7 +8,7 @@ id = "annotate" name = "Annotate" -version = "0.9.1" +version = "0.9.2" min_herdr_version = "0.8.0" description = "Comment on terminal selections and copy annotations as agent context." platforms = ["linux", "macos", "windows"] diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 4063d12..5eddcfd 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -505,7 +505,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "herdr-annotate" -version = "0.2.0" +version = "0.2.1" dependencies = [ "chrono", "ratatui", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 63602a8..a96ef28 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "herdr-annotate" -version = "0.2.0" +version = "0.2.1" edition = "2024" rust-version = "1.96" license = "MIT" diff --git a/scripts/test-windows-full-manifest.py b/scripts/test-windows-full-manifest.py index d13fda2..49ffbb8 100644 --- a/scripts/test-windows-full-manifest.py +++ b/scripts/test-windows-full-manifest.py @@ -185,8 +185,8 @@ def check_distributed(path: Path, version_path: Path, native_version_path: Path) check_native_lite(path, manifest) if version_path.read_text(encoding="utf-8").strip() != "0.9.4": fail(version_path, "plannotator-tui.version is not 0.9.4") - if native_version_path.read_text(encoding="utf-8").strip() != "0.2.0": - fail(native_version_path, "herdr-annotate.version is not 0.2.0") + if native_version_path.read_text(encoding="utf-8").strip() != "0.2.1": + fail(native_version_path, "herdr-annotate.version is not 0.2.1") build_entries = builds(path, manifest) if len(build_entries) != 3: diff --git a/windows-full/herdr-plugin.toml b/windows-full/herdr-plugin.toml index c1ad733..1004f1f 100644 --- a/windows-full/herdr-plugin.toml +++ b/windows-full/herdr-plugin.toml @@ -21,7 +21,7 @@ id = "annotate" name = "Annotate" -version = "0.9.1" +version = "0.9.2" min_herdr_version = "0.9.0" description = "Comment on terminal selections and copy annotations as agent context." platforms = ["windows"]