readest/nix
k6G52m4Dz75W 5426965721
chore(deps): bump localsend to v1.19.0 for the fingerprint, PIN and transfer fixes (#8107)
* chore(deps): bump localsend to v1.19.0 for the fingerprint, PIN and transfer fixes

Syncs the pinned readest/localsend fork branch with upstream
localsend/localsend v1.19.0 (44f48f18): 125 upstream commits since the
previous snapshot (6279d3e3), with the fork's two consumer patches
replayed unchanged. Core fixes readest picks up:

- localsend/localsend#3754 - the sender fingerprint of anonymous
  senders now comes from the TLS client certificate instead of a
  spoofable self-declaration
- localsend/localsend#3493 / #3724 - transfers fail with special
  characters in the PIN, and the PIN no longer leaks into HTTP client
  error messages
- localsend/localsend#3683 - filenames normalized to NFC (Korean jamo
  on Windows)
- localsend/localsend#3726 - 5s limit on pinned-client connection setup
- localsend/localsend#3725 / #3730 - cancellation interrupts
  prepare-upload/upload response reads
- localsend/localsend#3450 - an unreadable file fails the transfer
  instead of silently sending an empty body
- localsend/localsend#3424 - reduced file stream read-ahead

Mechanical adaptations, three per consumer plus test-side call sites:

- `add_device` -> `observe_inbound` (rename; the new implementation
  also probes reverse reachability in the background)
- `cert_fingerprint` -> `sender_fingerprint` (readest is HTTPS-only, so
  `Some` still means a verified certificate fingerprint and the
  auto-accept gate is unchanged)
- `into_receiver()` -> `into_stream()`: transfer I/O failures now
  surface as a final stream error instead of a silently truncated body
- test fixtures: `StatefulDevice` gains `confirmed`/`verified` (whether
  a request was ever exchanged and whether the fingerprint is proven) -
  the src-tauri fixture models register-answering HTTPS peers, so both
  hold; two `add_device` call sites in the localsend-bin tests rename
  accordingly

Pin 1609ca7c -> e39c66c2 in src-tauri and localsend-bin; both
Cargo.locks refreshed.

Co-Authored-By: ZCode (GLM-5.3-Flash) <noreply@z.ai>

* chore(deps): pin localsend to the readest fork's v1.19.0 rebase

readest/localsend `readest` is now upstream v1.19.0 (44f48f18) plus the
same two readest patches (flutter submodule `update = none`, best-effort
SO_REUSEPORT), rebased in the fork itself (4ed3532f). Its previous head
1609ca7c stays fetchable as tag readest-v1.18.2-snapshot. Re-pin both
consumers to 4ed3532f instead of a contributor branch head, and finish
what the bump touches:

- Cargo.cef.lock: the Linux CEF build and the Nix package resolve from
  this lock, which still pinned 1609ca7c.
- nix/package.nix: cargoHash blanked for the fod-hashes check to report
  the new value.
- tokio-stream: dropped from src-tauri and localsend-bin; nothing uses it
  now that uploads read `FileContent::into_stream()`.

Verified on this tree (merged with origin/main at 73d45abf7):
- src-tauri: cargo fmt --check, clippy -D warnings clean; cargo test -p
  Readest --lib 217 passed.
- localsend-bin: cargo fmt --check, clippy --all-targets -D warnings clean;
  cargo test 28 passed.
- Real use, Android debug APK (API 35 emulator) <-> Linux CEF dev app,
  both on 4ed3532f: Linux -> Android sent a 404 kB EPUB with a CJK
  file name, Android -> Linux a 3.06 MB one; both arrived byte-identical
  (sha256) and were imported. Both receive dialogs offered pairing, so the
  sender stays certificate-verified after the sender_fingerprint rename.
  A 194 MB send cancelled at 16% from Linux stopped reading at 61 MB,
  left Android's inbox empty with nothing imported, and the next send
  went through. A 194 MB send completed intact.
- Not run: pnpm test / pnpm lint (no TypeScript changed); a physical
  Android phone, macOS, Windows, iOS and the koplugin on a Kindle.

Reported by k6G52m4Dz75W on GitHub (#8106).

Co-Authored-By: Claude Code (Claude Opus 5.5) <noreply@anthropic.com>

* chore(nix): refresh cargoHash for the localsend v1.19.0 pin

Value from the fod-hashes check on 7cca1b3a5 (got:), which builds the
vendored cargo sources from Cargo.cef.lock without the cache.

Co-Authored-By: Claude Code (Claude Opus 5.5) <noreply@anthropic.com>

---------

Co-authored-by: ZCode (GLM-5.3-Flash) <noreply@z.ai>
Co-authored-by: Huang Xin <chrox.huang@gmail.com>
Co-authored-by: Claude Code (Claude Opus 5.5) <noreply@anthropic.com>
2026-11-30 14:30:12 +01:00
..
dependencies.nix fix(nix): add missing build/runtime dependency (#7170) 2026-10-31 16:07:49 +08:00
package.nix chore(deps): bump localsend to v1.19.0 for the fingerprint, PIN and transfer fixes (#8107) 2026-11-30 14:30:12 +01:00