* build(android): ship per-ABI APKs (arm64, armv7, legacy) instead of universal
Release and nightly now build Android in three parallel jobs, one APK
each: arm64 (aarch64), armv7, and legacy (i686 + x86_64). The universal
APK is no longer built.
The updater maps the running native library's arch to android-arm64,
android-armv7 or android-legacy, and only offers an update when the
manifest carries this device's key. In release.yml a single job writes
all Android keys into latest.json after every build leg finishes, so the
legs never race on the asset; nightly emits one fragment per leg.
android-universal stays in both manifests, pointing at the armv7 APK, so
clients released before this change still find an update on non-arm64
devices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(updater): cover arm64 devices against the per-ABI manifest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(build): repair the Docker and Nix builds after #6368
Two main-branch builds broke on 8750c310 and both are fallout from that PR.
**Docker** (`pnpm build-web`: "Can't resolve '@pdfjs/pdf.min.mjs'",
"Can't resolve '@simplecc/simplecc_wasm'"). `setup-vendors` runs in the
`dependencies` stage and its output is not in the build context, so every
directory it creates needs an explicit `COPY --from=dependencies`. Splitting
the bundler-imported modules out of `public/vendor` into `vendor/` left the
new directory with no COPY line. The test derives the expected roots from the
`prepare-vendor` script, so adding another one fails until the Dockerfile
copies it.
**Nix** ("no matching package named `sentry-debug-images` found"). The Linux
CEF build vendors from `Cargo.cef.lock`, which `nix/package.nix` copies over
`Cargo.lock`, and that second lock never learned about the two crates the
sentry `debug-images` feature pulls in. Added `findshlibs` and
`sentry-debug-images` there, plus the dependency entry on `sentry`; both need
only packages the lock already had.
This is also why `nix-deps-check` stayed green on #6368: it hashes
`Cargo.cef.lock`, which that PR did not touch, so the stale vendor set only
surfaced when the full Nix build ran on main.
`cargoHash` is updated in a follow-up commit from the hash the deps-check
prints, since the vendor contents change.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* style: format the vendor-root docker test
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(nix): update cargoHash for the new sentry debug-images crates
The vendor set gained findshlibs and sentry-debug-images, so the pinned
hash moved. Value taken from the nix-deps-check run on this PR:
specified: sha256-EPNbiv0YJ79rqBHFCO5gjQwt9Vn1v9HV0ZfH7f2Eo/E=
got: sha256-8MIkn2N65P87tG0RncOQtH01SYfRUM4qB6rOzd+fwwQ=
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* refactor: one vendor dir, with the bundler importing from packages
#6368 split the vendored modules into a second `vendor/` directory to stop
them shipping twice (Tauri embeds every published file, and `public/` is
published whole). Two vendor directories is the wrong shape, and the copies
were never needed: the aliases can resolve straight at the sources, which is
how `jieba-wasm` has always been imported.
@pdfjs/* -> packages/foliate-js/node_modules/pdfjs-dist/legacy/build/*
@simplecc/* -> packages/simplecc-wasm/dist/web/*
`public/vendor/pdfjs` now holds only what the reader fetches by URL at
runtime — the worker, the WASM decoders, cmaps, standard fonts and the layer
CSS — and `vendor/` is gone, along with `copy-pdfjs-lib`, `copy-simplecc`,
`setup-simplecc`, its Dockerfile COPY and its worktree copy.
Two details this turned up:
- The @pdfjs alias needs an explicit `declare module`. TypeScript inferred
types for the minified JS while it sat inside the app, but skips JavaScript
under node_modules, and pdfjs-dist ships `pdf.d.mts`, not the
`pdf.min.d.mts` that would sit beside the minified build. Only the import's
side effect is used, so the declaration is bare.
- `packages/simplecc-wasm` is a submodule the worktree script skips, so the
script now copies its committed `dist/web` into a new worktree instead of a
vendor directory.
A true `import ... from 'simplecc-wasm'`, matching jieba exactly, would need a
change in that submodule: its `exports` map points at `pkg/`, which is build
output and not committed (only `dist/web` is), and the map forbids other
subpaths.
Verified with a real build: modules resolve with no `vendor/` present,
`out/vendor` holds only pdfjs, `pdf.min.mjs` is bundled into a chunk and not
published, and both jieba and simplecc WASM are emitted once each.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* docs: say why the @pdfjs alias points at the package, not public/
The comments still described a vendored copy. Record the constraint
instead: a module the bundler imports must not also be published, or
Tauri embeds it twice.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test: drop the vendor/docker config assertions
These assert on config files rather than behaviour: the alias-target test,
the Dockerfile vendor-COPY test, and the pdfjs wasm copy-script test.
The SELF_HOSTED default check in docker-image-defaults.test.ts stays; it
predates this work (#6100) and guards runtime behaviour of the published
image rather than a config shape.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* perf(android): cut the arm64 apk from 90MB to 57MB
The Rust library is 95% of the APK, and most of what it carried was not
code. Measured on an aarch64 release build: 89.7MB -> 57.5MB.
- Build `release` with fat LTO and one codegen unit. Cross-crate inlining
cuts .text by 5.2MB and the unwind/exception tables by 2.1MB, at the
cost of a longer final link.
- Strip the packaged library. AGP's own strip step only drops the
.debug_* sections, so 22MB of symbol tables (10MB after LTO) reached
every download. The strip runs on AGP's output, so `target/` keeps the
unstripped copy, which the release and nightly workflows now upload to
Sentry as debug files; Rust frames stay symbolicated. Android builds
also link with a build id, which is how Sentry matches them, and the
`debug-images` feature attaches the loaded modules to each event.
- Stop shipping jieba's WASM twice (2.7MB). The wasm-bindgen glue
defaults to the file the bundler already emits; pointing `init()` at a
public/vendor copy embedded both.
- Keep the browser-only turso WASM out of native builds (3.3MB). The
alias that excluded it still named `@tursodatabase/database-wasm`,
which the web database service stopped importing in #4086.
simplecc is still embedded twice (0.4MB): its glue is imported through
the `@simplecc/*` path alias out of public/vendor, so deduping it means
moving that directory.
Verified: the built APK's library carries no symbol tables and a build
id; `target/` keeps its; the bundle requests exactly the one embedded
jieba asset key and no /vendor/jieba path; the turso WASM is absent from
`out/`. The APK installs and runs on a Xiaomi 2211133C, library and a
Chinese book render, and RSVP runs on it. Whether jieba's WASM is
actually fetched at runtime is NOT verified: release webviews are not
inspectable and the fallback to Intl.Segmenter is silent.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* perf(android): drop fat LTO, codegen-units=1 is the whole win
The previous commit credited the code-size saving to fat LTO. That was
wrong. Measured on aarch64-linux-android with the flags rustc actually
received (`cargo build -v`):
codegen-units=16, lto=false .text 29.66MB .eh_frame 3.69 .except 2.51
codegen-units=1, lto=off .text 24.43MB .eh_frame 2.28 .except 1.84
codegen-units=1, lto=thin .text 24.43MB .eh_frame 2.28 .except 1.84
codegen-units=1, lto=fat .text 24.44MB .eh_frame 2.28 .except 1.84
One codegen unit accounts for all of it; LTO changes nothing once it is
set, so fat LTO was buying only link time and peak memory on every
release target. The rebuilt APK confirms it: 57.49MB without LTO against
57.50MB with it.
What `codegen-units = 1` costs, from a clean aarch64 build on an
M-series: 5m54s against 4m15s, and 3.3GB peak RSS against 2.9GB. That
answers the review's question about the 75-minute Android and 45-minute
desktop step limits in nightly.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* perf: stop shipping vendored modules the bundler already embeds
Tauri embeds every file under `out/`, and `public/` is copied there whole. So
a module imported through a path alias that points into `public/` ships twice:
once bundled into a chunk, once as a published file nobody fetches. jieba cost
2.7MB that way; `@pdfjs/*` and `@simplecc/*` had the same shape.
Split the vendored assets by how they are loaded. What the reader fetches by
URL at runtime stays in `public/vendor/pdfjs` — the worker, the WASM decoders,
cmaps, standard fonts, the layer CSS, all built as runtime URLs in
foliate-js/pdf.js, which is why the bundler never emitted copies of them.
What the bundler imports moves to `vendor/` (outside `public/`):
`pdf.min.mjs` + its types, and the simplecc glue and WASM.
Measured on the embedded frontend, brotli as tauri compresses it: 23.7MB ->
16.96MB across this and the earlier jieba/turso fixes. That comes out of every
Tauri target, not just the APK.
The new test states the invariant that was broken rather than the three
symptoms: no tsconfig path alias may resolve into `public/`. It failed on
`@pdfjs/*` and `@simplecc/*` before this change.
Desktop stripping was measured and deliberately NOT done. On macOS it saves
4.76MB in the binary but only 1.44MB of DMG (36.59 -> 35.15MB), because a DMG
compresses symbol strings while an APK stores the .so uncompressed (verified:
`Stored`, 0%) — which is why Android got the full 22MB. Buying 1.4MB would
mean either a profile-level `strip`, which deletes the unstripped artifact
Sentry symbolicates Rust panics from, or pulling the release job apart from
tauri-action, which builds, bundles, signs and notarizes in one step. deb, rpm
and AppImage are compressed too, and MSVC keeps symbols in the PDB.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: init simplecc from the emitted WASM, not a URL that no longer exists
Moving the simplecc glue out of `public/` left `initSimpleCC` still asking for
`/vendor/simplecc/simplecc_wasm_bg.wasm`, a URL nothing publishes any more, so
Chinese variant conversion would fail to initialize at runtime. Caught in
review of #6368.
`init()` with no path uses the glue's default
`new URL('simplecc_wasm_bg.wasm', import.meta.url)` — the copy the bundler
emits and Tauri embeds — the same shape as the jieba fix.
The existing WASM-init test covered jieba only, which is why this slipped
through; it now covers both. Verified against a fresh build: the chunk
references `static/media/simplecc_wasm_bg.<hash>.wasm` and no runtime
`/vendor/simplecc` reference remains (the two textual hits left are the
bundled package.json script strings and a source-map path, and maps are
stripped before packaging).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(wordlens): Traditional Chinese hints and an English→Arabic pack build
Closes#6286.
A Traditional hint (zh-TW / zh-HK / zh-MO / zh-Hant) resolved to the
Simplified-only en-zh pack by base code, so 正體中文 readers got Simplified
glosses. Convert the glosses at render time with the bundled OpenCC tables
instead of shipping a second pack: zh-TW uses the Taiwan phrase table
(软件 → 軟體, 打印机 → 印表機), zh-HK/MO the Hong Kong table, zh-Hant the
character-only conversion. The reader now passes the full app locale so the
Auto hint keeps its script subtag (Android/iOS report zh-Hant-TW).
The kaikki en→X build drops the roman transliteration (the hint is read by
a native speaker), skips translations tagged as a regional variety
("Egyptian-Arabic") so a pack stays in the standard written language, and
filters translation-template artifacts: words mixing Latin letters into
another script (gender markers, "or", inline dialect labels) and all-Latin
editorial notes in a non-Latin pack ("not known in Arabic lands").
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* data(wordlens): add the en-ar gloss pack
12,870 entries (993 KB) from the kaikki raw wiktextract dump, Modern
Standard Arabic only, lemmatized via the en-en table. Arabic is target-only:
book text is unvocalized and carries clitics, so ar→en needs a morphological
analyzer first.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Tooling for "please merge my two accounts" tickets, both under
apps/readest-app/scripts/db and run with
`node --env-file=.env --env-file=.env.local`.
inspect-accounts.mjs is read-only: it resolves users by email through the
GoTrue admin API and reports identities, per-table row counts, the plans
row, payments, recent book titles for ownership verification, and the
files rows checked against the objects actually present in R2, plus the
book/file overlap between accounts.
merge-accounts.mjs moves one account's cloud data into another account of
the same person: server-side R2 CopyObject with a HEAD size check,
re-pointing books / book_configs / book_notes / stat_* / replicas / files
rows with the file_key prefix rewritten, newer-updated_at-wins on
primary-key collisions, updated_at stamped on the tables whose sync pull
keys on it, then plans.storage_usage_bytes recomputed on both users.
Files rows with no object behind them (abandoned upload reservations) are
left behind. Dry run by default; --apply writes.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix(ci): bundle the audio libraries the CEF AppImage dlopens
TTS runs to completion in the AppImage but nothing is audible: Chromium
reaches its audio backend through dlopen, and the bundle carries none of
it. libpulse.so.0 resolves to the host copy and fails against the
bundled glibc 2.35 (host libpulsecommon needs GLIBC_2.38), and the ALSA
fallback dies the same way — its `default` PCM is a config hook that
loads the host's libasound_module_conf_pulse.so, so snd_pcm_open()
returns "Unknown PCM default" and only a raw hw: device opens, which
Chromium will not use. libspeechd.so.2 fails identically, leaving the
Web Speech engine with no system voices.
Stage all three through the same appimage.files channel as the NSS
modules (#6101). quick-sharun then pulls the rest of the closure
(libsndfile, FLAC, vorbis, opus, ogg, asyncns...) from the runner by ldd.
libpulse keeps its private half in <triple>/pulseaudio/ and finds it by
RUNPATH, which points at the host directory: verified that the private
lib is deployed to lib/pulseaudio/ and that lib.path gains `+/pulseaudio`
so sharun's library path wins over the RUNPATH, and the guard now checks
both.
Verified against the shipped 0.12.6-2026090706 bundle on glibc 2.41: in
its runtime environment dlopen of libpulse/libpipewire/libspeechd fails
and ALSA has no usable PCM, while staging these libraries makes dlopen
succeed and a tone play through PipeWire's PulseAudio server.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(linux): stop the AppImage asking for a root password (#6110)
Every new AppImage pops a modal on first launch and asks for the root
password through pkexec. That is the bundler's fix-namespaces.hook: on
distros that restrict unprivileged user namespaces (Ubuntu 24.04+) it
offers to install an AppArmor profile granting `userns`, and since the
profile it writes is keyed to the AppImage's exact path, every nightly
asks again.
Readest never needs that capability. tauri-runtime-cef sets
CefSettings.no_sandbox unless its `sandbox` feature is enabled, and this
build compiles it without: every Chromium child of the shipped AppImage
runs `--type=zygote --no-sandbox`, and the app starts fine on a machine
where `unshare -Urm` is denied and no profile is installed. The hook is
boilerplate for Chromium apps that do sandbox; here it buys a root
prompt and nothing else.
Ship an AppRun hook that sorts ahead of it and stubs the two helpers it
prompts through — both come from AppRun.lib and have no other callers in
the bundle, so the rest of that hook still runs, it just cannot reach
the user. Verified against the shipped 0.12.6-2026090706 bundle: stock
hooks block startup on the dialog (three lines of log, app never comes
up), with this hook the app starts normally and no zenity or pkexec
process appears. Also verified in a jammy container that a file shipped
through appimage.files survives quick-sharun and lands in bin/ ahead of
the bundler's own hooks.
The entry lives in tauri.conf.json rather than the workflows so local
Linux builds get it too; the CI staging step now merges into that map
instead of replacing it.
This leaves the AppImage exactly as sandboxed as it is today, which is
also what the WebKitGTK builds before it were — Tauri never enabled
WebKit's sandbox either. Sandboxing the renderer on Linux is a separate
change: it needs the CEF `sandbox` feature plus /etc/apparmor.d/readest
shipped in deb/rpm, and this hook would then have to go.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* ci: pin down the quick-sharun regression behind the AppImage staging
The staging comment blamed drift — a fork "~1100 lines behind upstream"
that "expands its deployment array without eval". The gap is real but
not the cause. The fork's HEAD, FabianLars/Anylinux-AppImages@3e280d1b
"fix handling of spaces in input paths", is a deliberate one-line change:
eval set -- "$TO_DEPLOY_ARRAY" "$@" -> set -- $TO_DEPLOY_ARRAY "$@"
Upstream's line really does split positional paths on spaces, and tauri
names the AppDir after the product, so the change fixed something. But
the array entries come single-quoted from _save_array, so without the
eval each keeps its literal quotes, fails `[ -f ]`, and every DEPLOY_*
extra is silently skipped. Measured in a dash one-liner: upstream splits
"My App/libfoo.so" into two arguments, the fork keeps the array entry as
'/path/libextra.so' quotes and all, and quoting the positional args
through the same helper — eval set -- "$TO_DEPLOY_ARRAY"
"$(_save_array "$@")" — keeps both.
Record that, and the two things upstream review pointed out: pulse is
already implied by DEPLOY_CHROMIUM through DEPLOY_PIPEWIRE, so the
libpulse entry turns redundant the moment the fork's main is fixed (the
CLI re-fetches it on every build), and libpipewire is not needed for
audio at all, only for the screen-share portal, so it stays out.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* ci(linux): build the CEF tauri CLI from readest/tauri with pkgforge pinned
The published @tauri-apps/cli-cef (3.0.0-alpha.26) bundles the AppImage
with a fork of quick-sharun whose deployment array is broken, and it
re-downloads that fork on every build with no way to point it anywhere
else - no env var, no mirror (TAURI_BUNDLER_TOOLS_GITHUB_MIRROR only
rewrites github.com URLs), and no cache seeding, since the guard that
made the pre-#6074 seed work is commented out.
Build the CLI on the Linux legs from readest/tauri@c62e9f90 instead, the
way the workflow did until #6074: there sharun_cef.rs fetches
pkgforge-dev/Anylinux-AppImages at facb95e8 verified by SHA-256 (the
revision tauri-apps/tauri#12491 pins), runs the tooling with bash and
streamed output, passes the deploy list as arguments, keeps whitespace
out of the AppDir name, and adds no fix-namespaces hook. Pinned to a
rev so a release cannot change behaviour under us; rust-cache keeps
~/.cargo/bin and a marker file skips the rebuild while the pin holds.
scripts/tauri.mjs runs `cargo tauri` when TAURI_CEF_CARGO=1, with the
same command line as the npm CLI.
STRACE_MODE stays off in this step; the hang it works around is fixed
by the bash/streamed-output change, but lifting it is its own change.
The hand-staged NSS and audio entries stay too, until a nightly built
this way confirms the tooling deploys them itself.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* ci: trim the AppImage comments to the essentials
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(linux): debug the CEF build over the DevTools protocol
The Linux CEF runtime is Chromium, so the app window is a normal CDP
target — the only way to inspect the running desktop app on Linux, since
WebKitWebDriver (pnpm tauri:dev:test) drives the wry runtime instead.
`READEST_CDP_PORT=9222` passes the port to CEF as `--remote-debugging-port`
through the runtime's command-line args. CEF honours that switch straight
off argv too, but tauri-plugin-cli parses the same argv for open-with paths
and warns about the unknown argument on every launch, so the env var is the
supported way in. It works on any CEF build — a packaged .deb or the
Flatpak, not just `pnpm tauri:dev:cdp`.
scripts/cdp.mjs is the client, dependency-free (node's global fetch and
WebSocket): `pnpm cdp <targets|eval|click|screenshot|logs>`. The endpoint
listens on loopback only.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(desktop): open the first window at 1280x800
macOS has always opened at 1280x800; Windows and Linux opened at 800x600,
which is cramped for the library grid and a two-page spread. Give every
desktop platform the same default, and clamp it to 90% of the monitor's
work area so it cannot open partly off-screen on a 1366x768 laptop — a
window whose title bar lands past the bottom edge can be impossible to
resize back. An unreported or empty work area keeps the default: a window
that is too large stays reachable, one sized from a bogus zero-height
screen does not.
Only the first launch is affected; later ones restore the saved geometry
through tauri_plugin_window_state.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(opds): size the add catalog dialog like the catalog manager
The Add/Edit Catalog form took daisyUI's bare `modal-box` default: 512x889
against the 640x756 manager it opens on top of, so it sat narrower than the
window behind it and ran 89px off the bottom of a 1280x800 window, putting
its Cancel / Add Catalog row out of reach.
Both now size from one exported class string, so they cannot drift apart
again. `sm:max-h-full sm:max-w-full` is what defeats daisyUI's own max-w-lg
and max-height caps; everything is sm:-prefixed, leaving each dialog's
mobile treatment alone.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(library): stop the native scrollbar flashing before OverlayScrollbars
Reloading the library showed the platform scrollbar for ~1.8s and then lost
it, shifting the grid 15px sideways as it went.
Virtuoso owns the scroller inside the OverlayScrollbars root and gives it
`overflow-y: auto` inline, so the native scrollbar paints for as long as
OverlayScrollbars' deferred init takes, then vanishes when OS marks that
same element `data-overlayscrollbars-viewport="scrollbarHidden ..."`.
OverlayScrollbars ships hiding rules for `[data-overlayscrollbars-initialize]`,
but that attribute sits on the root we hand it, never on the child that
actually scrolls.
Extend the same pre-init convention to the scroller child. Keyed on
attributes Virtuoso and OS already set, so it also covers the reader
sidebar's TOC and book-note lists, and `:not([data-overlayscrollbars])`
scopes it to the pre-init window — once OS owns the root, its own viewport
styling takes over. It lives in globals.css so it is there at first paint,
unlike the overlayscrollbars.css import inside the component chunk.
Measured on reload: scroller gutter went 0 -> 15 -> 0 before, and stays 0
throughout after.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(cdp): clear the request timeout so the client exits when it is done
Every send() armed a 30s timer and nothing cleared it when the reply
arrived. A pending timer keeps node's event loop alive, so `pnpm cdp eval`
printed its answer and then sat there until the timer fired — 30.1s for a
command whose work took 0.1s. Clear it on reply, and drop the pending entry
when it does fire.
Measured against a stub CDP endpoint: `eval` went from 30.143s to 0.124s,
and a server that never answers still rejects with "timed out" at 30.1s.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(linux): build and ship Readest on the tauri CEF runtime
Linux now builds against upstream tauri `feat/cef` (git) and the plugins on
plugins-workspace `feat/cef`, while macOS/Windows/mobile keep the readest
fork untouched:
- `pnpm tauri:cef dev|build` (scripts/tauri-cef.mjs) runs @tauri-apps/cli-cef
with `--features cef`, cargo `--no-default-features` and the Linux-only
`[patch.crates-io]` in src-tauri/.cargo/cef.toml, swapping the committed
Cargo.cef.lock in for the run so Cargo.lock stays in the fork state.
- The fork crates are no longer workspace members (a member clashes on
`links` with the git copy); the tauri-plugins fork carried no changes and
is removed, tauri-plugin-fs comes from crates.io at 2.5.1.
- App: `cef = ["tauri/cef"]` (the fork gets a no-op stub), explicit runtime
type, `cef_entry_point`, `--no-first-run` for CEF, commands generic over
the runtime, xdg-portal dialogs on Linux (rfd's GTK thread crashes CEF),
rangefile reads and pointer-driven move/resize on the Linux CEF runtime,
Chromium reported in the About dialog, deb/rpm depend on libwebkit2gtk
while plugins still pull the wry runtime.
- Build-generated permission files are untracked; turso registers `batch`.
- CI Linux legs use `pnpm tauri:cef`.
Submodules: packages/tauri -> feat/cef-feature-stub, tauri-plugin-turso ->
fix/register-batch-command (both need pushing).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* feat(linux): let the CEF wrapper run an unpacked tauri CLI for offline builds
Flatpak builds have no network, so `TAURI_CEF_CLI` points scripts/tauri-cef.mjs
at an unpacked copy of @tauri-apps/cli-cef instead of `pnpm dlx`.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore(linux): take the CEF stack from the readest forks
- src-tauri/.cargo/cef.toml: tauri and the plugins now come from the readest
forks' feat/cef branches (upstream feat/cef plus the DevTools-close fix in
tauri-runtime-cef); Cargo.cef.lock re-resolved against them.
- tauri-plugin-turso: point at main, which merged the batch command fix.
- CI: STRACE_MODE=0 for the Linux legs so the CEF AppImage bundler
(quick-sharun) does not launch the app under Xvfb and hang (#4906).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* feat(linux): make the CEF runtime the default tauri build on Linux
`pnpm tauri` now goes through scripts/tauri.mjs (the former tauri-cef.mjs):
on Linux its dev, build and bundle commands run the feat/cef tauri CLI
with the CEF feature, cargo config and Cargo.cef.lock swap, and every
other platform or command passes straight through to @tauri-apps/cli.
The separate `tauri:cef` script goes away, so the release and nightly
workflows, the local Linux build script and the docs use plain
`pnpm tauri build` again.
The tauri webdriver harness (scripts/test-tauri.sh) still calls the
`tauri` binary directly and keeps the wry runtime on Linux, since
tauri-driver needs WebKitWebDriver.
Cargo.cef.lock picks up the quick-xml 0.41 bump from main.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore(nix): refresh cargoHash for the reshaped Cargo.lock
Dropping the packages/tauri-plugins submodule and the tauri-plugin-fs
path patch changed the vendored cargo dependency set, so the Nix
fixed-output hash moves to the value the nix-deps-check job reported.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix(linux): harden the CEF wrapper and pointer window drag
Review follow-ups on the CEF runtime work:
- scripts/tauri.mjs parks the wry Cargo.lock in Cargo.lock.wry, created
exclusively, so two CEF commands in one checkout cannot swap lockfiles
over each other, and a killed run leaves an obvious file to move back.
- The CEF runtime alias, entry point and runtime attributes are gated on
Linux as well as the `cef` feature; elsewhere the feature is a no-op.
- Pointer-driven window move/resize applies the last pointer delta when
the button is released before the pending animation frame, and does
not start tracking when the button was already released while the
window state was being read.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The per-language kaikki.org-dictionary-<Language>.jsonl files are
post-processed for the kaikki website and deprecated
(tatuylonen/wiktextract#1178); the supported source is
raw-wiktextract-data.jsonl.gz, which holds every language section of
the English Wiktionary, so each build filters by lang_code. The build
script already did that filtering but could only read plain JSONL, so
streamJsonl now gunzips .gz input on the fly instead of requiring the
~17 GB inflated file.
The raw dump keeps Wiktionary page order while the deprecated file
re-sorted senses, so en-vi and en-hu are regenerated from it: same
entry counts (9,759 and 13,641), but 334 and 652 entries now lead with
the primary sense (bear leads with the animal instead of the bear
market speculator; liked leads with szeret instead of the social media
lajkol). Packs live in R2, so wordlens:sync must run after merge.
Reported by @xxyzz on #5737.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* fix(stats): survive PostgREST's row cap when building archive segments
stat_archive_rows is called through PostgREST, which caps every response at
db-max-rows (1000 on Supabase). The LIMIT 10000 never survived the wire, so
segments silently held 1000 rows, and the truncation could cut inside a run of
rows sharing one updated_at (a push chunk shares one now()): the commit's
range delete then removed rows that were never archived, surfacing as
commit_mismatches during validation.
Migration 021 makes the pair loss-proof under any proxy truncation:
stat_archive_rows trims the trailing millisecond unless the page provably
holds every row of it (whole-millisecond extension only for the
single-millisecond page), so every result ends at a complete millisecond; and
stat_archive_commit refuses with P0001, rolling back the manifest insert and
the delete, when the range's delete count differs from the declared segment
row count.
The compact route now assembles each segment from sub-pages of at most 1000
rows, advancing p_from per sub-page until STATS_COMPACT_SEGMENT_ROWS or a
drained user (only an empty page means drained; a short page can just mean
the trailing millisecond was trimmed), writing one object and one commit per
assembled segment, and counting a refused commit as a mismatch plus an error.
The verification script applies 021 and asserts the trim, the equal-timestamp
run, the covered-millisecond keep, the single-millisecond extension and the
refusal rollback.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(stats): keyset-paginate archive rows so no proxy row cap can wedge or lose data
Review found the remaining hole in the trim design: a millisecond holding more
rows than db-max-rows made the single-millisecond fallback return more than
p_limit, PostgREST truncated it to the same first 1000 rows every time, the
cursor stopped advancing and the sub-page loop repeated the identical page
forever (or, cut differently, produced a refused commit). A restore can create
such a millisecond: it re-inserts 500-row chunks, each stamping one now().
stat_archive_rows is now a plain keyset pager over (updated_at, book_hash,
page, start_time) with three tie-cursor parameters (the 020 signature is
dropped). Keyset pages are truncation-proof by construction: any cap only
shortens a page, the cursor comes from rows actually received, and the tie
columns paginate inside a millisecond of any size. The compaction route owns
the boundary policy: assemble pages until the segment target plus a complete
millisecond to cut at (or a drained user), trim the trailing millisecond
unless it is provably closed (drained and ended at least 60 s before the
window cutoff), defer a user whose only eligible rows sit in a still-fresh
millisecond, and hard-stop a pathological millisecond beyond 50k rows.
Regression tests: 1001 equal-timestamp rows in one millisecond become one
segment with no repeated page and no refused commit; a mid-millisecond target
cut trims and the next segment refetches the remainder; a still-fresh
millisecond defers the user. The SQL script asserts keyset tiling, the
tie-cursor resume inside an equal-timestamp run, and the refusal rollback.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* feat(stats): tier stat_pages history into R2 segments behind a 7-day hot window
stat_pages is an append-only per-user log of page events merged by longest
duration; the server never reads history for analytics and devices union-merge
everything locally, so keeping the whole history in Postgres is the most
expensive way to store it.
Migration 020 adds a second tier. Postgres keeps a hot window (updated_at
younger than 7 days by default); a cron job (POST /api/stats/compact, driven
by a scheduled() handler in a custom OpenNext worker entry) compacts older
rows per user into immutable JSON segments in R2, listed in the stat_archives
manifest. The commit RPC inserts the manifest row and deletes exactly the
archived (from, to] range in one transaction, compare-and-set on the user's
archived_to under a per-user advisory lock; segments never split a
millisecond, and objects are never deleted by the compaction path.
The stats pull composes pages server-side: hot rows are read before the
manifest (a concurrent commit can only duplicate, never lose), then the first
segment that still has rows past the cursor is served (paged, trailing
millisecond completed) or the hot rows; unpaginated pulls get every segment
then hot rows. The sync API, the app and the koplugin are unchanged.
Also: POST /api/stats/restore (rollback, re-inserts a user's segments through
upsert_stat_pages_as and drops the manifest rows; refuses while compaction is
enabled), account deletion removes the user's archive objects before the auth
user, a local PostgreSQL 15 verification script for the migration, and
docs/stats-archive.md. Ships disabled (STATS_COMPACT_ENABLED = "false").
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(stats): record one Analytics Engine point per archive-backed stats pull
Hot-only pulls write nothing; a pull that reads R2 segments writes one point
(indexes ['pull'], blobs ['paged'|'full'], doubles [segments_read, rows,
limit]) to STATS_COMPACT_AE. The share of pulls that reach the archive is the
number that should drive STATS_COMPACT_WINDOW_DAYS; we ship with 7 days.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(stats): targeted compaction run for one user, plus the deployment runbook
POST /api/stats/compact with a JSON body {"user_id"} compacts that user only:
no claiming, the enabled flag is ignored (operator action, usable while the
cron is off) and the batching thresholds are ignored (everything older than
the window is archived). Still token-guarded; malformed ids answer 400. This
is what lets the rollout validate on a known account in production before the
cron is enabled, and drain one heavy user by hand.
docs/stats-archive.md gains the step-by-step deployment guide: migration
check queries, bucket and secret creation, disabled deploy and its checks,
validation on one account (targeted run, manifest/object checks, fresh pull
on a device or through the API, optional restore), enabling the cron, the
Analytics Engine and Postgres checks to watch, the post-drain REINDEX, and
the window revisit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(stats): address review on the archive tier
- Account deletion: delete the identity first, then queue the user id in a
new service-role-only stat_archive_orphans table and delete the R2 prefix
best-effort; batch compaction runs sweep the queue (kill switch on or off)
until each prefix lists empty. Deleting objects before a failed deleteUser
would have left an active account with its history gone.
- stat_archive_state and stat_archive_orphans: RLS enabled and privileges
revoked from PUBLIC/anon/authenticated so PostgREST does not expose them;
the verify script asserts relrowsecurity on all three tables and that
anon/authenticated cannot read the service-role-only ones.
- Compact route: only an empty body is the cron's batch request; every other
body must be a valid {user_id} targeted request or it is a 400, so a typo
never starts a batch run. Guard: 503 (no token/bucket), 401, then the
kill switch, applied by the route after the orphan sweep.
- Paged stats pull fills a page across tiers: segments are read lazily until
they fill the page, short archive pages are topped up with hot rows and
the page is cut at limit with the trailing millisecond kept, so a client
that stops on a short page (the koplugin) never stalls on a tier boundary.
- Restore reads the manifest page by page (PostgREST caps responses at 1000
rows) until it is empty.
- Config knobs reject digit strings beyond the safe integer range.
- worker.ts logs a rejected cron fetch; the [limits] cpu_ms block is dropped
(the job is I/O-bound and the ceiling would apply to every request).
- Tests: PostgREST mocks now apply eq/gt filters and honor range/delete so
the query contract is exercised; rpcMock is cleared between tests.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(stats): refresh the compact route header comment for the reworked guard order
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(stats): address review round 2 on the archive tier
- The stats pull reads the stat_archives manifest in range pages (PostgREST
caps a response at 1000 rows) and appends hot rows only once a short final
page proves no archived rows remain past the cursor; a paged pull stops
fetching manifest pages as soon as its response page is full. A truncated
manifest list could otherwise let a client cursor skip segments. Regression
test with 1001 single-row segments, unpaginated and paged.
- Account deletion writes the stat_archive_orphans tombstone BEFORE anything
destructive and stops with 500 (retryable) if even that fails; a failed
deleteUser compensates the tombstone; the orphan sweep additionally skips,
keeping the row, any queued user that still exists, so a stale tombstone can
never wipe a living account.
- The compaction loop asserts each segment boundary advances past the previous
millisecond before writing the object. stat_archive_rows extends every
segment to the end of its last millisecond, so consecutive segments cannot
share an ms-keyed object name; the assertion turns a future SQL regression
into a loud per-user error instead of a silent object overwrite.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Review follow-up. manifestKey compared only file and sha256, but resolvePack
routes a book language to a pack through source and target, so the key did not
state what clients actually depend on.
Redundant in practice: packEntry derives source and target from the pack's meta,
and sha256 hashes the whole file including that meta, so routing cannot shift
without the hash shifting. Adding them costs one line and keeps the key honest
if either half of that ever changes.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(wordlens): add the en-hu gloss pack
WikDict publishes no en-hu dictionary either, so Hungarian is built the same way
as en-vi: the kaikki `build` mode, reading the Hungarian `translations` off each
English Wiktionary entry. The cached 3.2 GB extract already covered it, so this
needed no new download and no build-script change.
13641 entries and 10813 inflections, lemmatized through the en-en table so
difficulty is gated by the lemma rank (whispered -> whisper). Coverage lands
close to the WikDict pairs, well ahead of en-vi's 9759.
Hungarian is a target language only. It is agglutinative, so surface forms like
"hazaimban" need a lemmatizer to reach a headword, and michmech publishes no
Hungarian list. As with vi, no code gates this: the hu-en pack simply does not
exist, which is how every unbuilt pair already behaves.
Also switched the README's kaikki download to aria2c. kaikki throttles a single
connection to ~270 KB/s, which puts the 3.2 GB extract at six hours; 16 parallel
ranges finish in about twenty minutes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(wordlens): republish the manifest when only it changed
Follow-up to the review on #5737. Retiring a pair changes the manifest while
leaving every remaining pack byte-identical, so planSync correctly returns no
packs to upload, and the early return then skipped the manifest too. The CDN
kept advertising the retired pack, with a sha256 clients would try to fetch.
manifestChanged compares what clients actually act on, the schema version plus
each pack's file -> sha256, ignoring order and the derived bytes/entries fields
so a regenerated but identical manifest still uploads nothing. A run with no
pack changes now republishes the manifest alone.
Also normalize the direct-execution guard with pathToFileURL(resolve(argv[1])).
String concatenation mismatches on Windows paths and on URL-reserved characters
in the path, which would silently turn a real sync into a no-op. Note that
build-wordlens-data.mjs still carries the unnormalized form.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(wordlens): add the en-vi gloss pack
WikDict publishes no en-vi dictionary, so this pair is built with the existing
kaikki `build` mode, which reads the Vietnamese `translations` off each English
Wiktionary entry. The pack ships 9759 entries and 10813 inflections, lemmatized
through the en-en table like every other English-source pack, so difficulty is
gated by the lemma rank (whispered -> whisper, reluctantly -> reluctant).
Vietnamese is a target language only. Its words are multi-syllable with spaces
inside them ("hoc sinh"), so the planner's whitespace tokenizer would gloss
syllables rather than words; a vi-en pack needs a segmenter first, like ja/ko/th.
No code gates this, the pack simply does not exist, which is how every unbuilt
pair already behaves.
Coverage is thinner than its peers (9759 vs 14769 for en-es), which reflects
Wiktionary's English to Vietnamese translation coverage rather than the build.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* perf(wordlens): sync only the packs that changed
A data refresh usually touches a single pair, but the sync re-uploaded all 15
packs (~20 MB) on every run. The published manifest already carries each pack's
sha256, so fetch it and upload only the packs that are new or changed. Adding
en-vi now uploads 652 KB instead of 20 MB.
An unreachable manifest (first sync, offline) falls back to a full upload, and
--force does the same on demand, for when the manifest is current but an object
was deleted from the bucket.
Also stop publishing the manifest when a pack upload failed. The script always
claimed the manifest goes last so it never points at a missing pack, but it
uploaded the manifest regardless of failures, which is exactly the state that
invariant exists to prevent.
planSync is pure and unit tested. Guarded the CLI entry point behind the direct
execution check that build-wordlens-data.mjs already uses, so importing the
module in tests does not run main().
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(reader): stop iOS 16 WebContent crash when opening a book
A supporter reported that Readest on iOS 16.7 (iPhone 8 Plus) crashes
back to the home screen the moment any EPUB is opened, with a
com.apple.WebKit.WebContent .ips generated on every attempt and no
jetsam events. The crash log shows a release assert (EXC_BREAKPOINT)
in DeferredPromise::callFunction resolving the FontFaceSet ready
promise under CSSFontSelector::buildStarted during style resolution.
Root cause: WebKit before Safari 17 resolves document.fonts.ready
synchronously when a style resolver rebuild purges still-loading
font faces, which is forbidden mid style resolution. Readest hits
this deterministically: foliate-js accesses doc.fonts.ready on
section load, the injected @font-face fonts are still loading when
the theme and view settings swap the stylesheets, and the next
style pass purges the old faces and resolves the promise. iOS 17
defers the resolution to a queued task, which is why newer devices
are unaffected.
Bump foliate-js so the paginator never touches fonts.ready on the
affected engines (AppleWebKit/605 without URL.canParse) and polls
fonts.status instead, and add a regression test for the helper.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore(scripts): add standalone repro server for the iOS 16 fonts.ready crash
Serves a page that isolates the WebKit engine bug from app timing: a
font request that never completes, fonts.ready accessed inside the load
handler, then a stylesheet swap. Affected engines kill the WebContent
process on the next render tick; unaffected engines keep counting a
visible STILL ALIVE status. Useful for verifying which iOS versions
carry the fatal assert since shipped security trains diverge from the
public WebKit branches.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore(deps): point foliate-js at merged main (foliate-js#71)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
The webdriver wait in test-tauri.sh started counting when tauri dev was
spawned, but tauri dev compiles the Rust backend first, so a cold cache
compile (4m54s on PR 5639) consumed the whole 300s budget and the wait
reported a bogus timeout 6 seconds after the binary launched. The wait
now has its own 900s budget; a crashed app still fails fast through the
liveness check.
Also skip every step of build_tauri_app, the slowest PR check, when
neither the Rust backend, the vendored native packages, nor the tauri
test harness changed, mirroring how rust_lint and the koplugin steps
are gated. Frontend-only PRs are covered by the web build and test
jobs, and the job still reports success so it stays green as a
required check.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Two spelling mistakes were live on both the App Store and Google Play:
"beatifully organized" and "seemless text-to-speech". The captions were
baked into the screenshot PNGs with no editable source, so fixing them
meant rebuilding the panels.
Screenshots:
* App Store iPhone rebuilt at 1284x2778, the size this record's 6.5 inch
slot accepts. Panels 3 to 5 recaptured from the simulator.
* iPad captions replaced on the existing 2048x2732 captures.
* macOS set replaced with fresh 2880x1800 captures.
* Google Play phone, 7 inch and 10 inch composites rebuilt from the live
listing assets rather than the local promo folder, which turned out to
hold an unused revision of panels 1 and 2.
Captions are now rendered as text by fastlane/compositor/render-caption.mjs
through headless Chromium using the app's own Inter webfont, so the next
typo is a one line fix instead of a repaint.
Metadata:
* fastlane/metadata-play feeds Google Play while fastlane/metadata/android
stays with F-Droid, so Play can carry a keyword title while F-Droid keeps
the plain app name.
* fastlane/metadata-macos gives macOS its own App Store text, since
deliver's metadata_path has no platform dimension and both Apple lanes
would otherwise push identical copy.
* Descriptions rewritten. Every feature claim was checked against the
source first, which removed a false "semantic search" claim that was
live on Play.
Listing text and Play imagery now upload on release. App Store screenshots
stay manual. The internal and beta Play lanes still skip metadata because
Play listing assets are store level, not track level.
Adds pnpm validate-google-play to dry run the Play listing without a build.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Every Tauri build since 0.11.20 logs a source map parse error per chunk in the
webview console:
Source Map "tauri://localhost/_next/static/chunks/<hash>.js.map" has
SyntaxError: JSON Parse error: Unrecognized token '<'
productionBrowserSourceMaps makes Turbopack emit the maps and append a
sourceMappingURL comment to every chunk. upload-sourcemaps.mjs uploads the maps
to Sentry and deletes them, but left the comments behind, so devtools requested
the missing maps (204 of 210 chunks) and got the asset protocol's HTML back.
- upload-sourcemaps.mjs: strip the comment alongside the map. Turbopack names a
map after a different hash than the chunk pointing at it, so every chunk under
the directory is rewritten rather than paired by name. The sentry-cli debugId
comment is preserved, since Sentry matches uploaded maps by it.
- KEEP_SOURCEMAPS=1 keeps the maps in the bundle instead. dev-ios, dev-android
and the new dev-macos set it, so local devtools resolve minified frames to
real sources.
- Move the script body behind a main guard so the helpers are importable, and
unit test them.
Symbolication is unaffected: the strip still runs after the upload, so the
copies Sentry holds keep their comments.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Play release script stripped MANAGE_EXTERNAL_STORAGE from the manifest,
and the app gated every shared storage path behind the dist channel to match.
On Play builds "Change Data Location" therefore listed only the app private
Documents directory, which is the directory the app already uses, so the
migration could never start.
Keep the permission in the Play build and drop the playstore gates on external
directory reads, on the data location shortcuts and on the Save Book Cover
toggle. Add a "Choose a folder" entry that opens the system folder picker so
any folder can become the data location, not just the presets.
The release script now fails when the permission is missing and prints a
reminder about the Play Console declaration form; the justification text to
paste there lives in docs/google-play-all-files-access.md.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Tauri's App Store export signs only the main app binary at archive time, so the
ReadestWidget and ShareExtension enter -exportArchive unsigned and the export
re-sign derives a minimal entitlement set that drops
com.apple.security.application-groups, even though each extension's provisioning
profile grants it. The reading widget then reads an empty App Group snapshot and
shows a placeholder icon, and the share extension loses its shared queue. #4891
and #5188 removed CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION, which was necessary
but not sufficient because the appex still enters export unsigned.
Add scripts/fix-ios-appstore-appgroup.sh, run from release-ios-appstore.sh
before the entitlements guard: for each extension it takes the entitlements the
export already computed, adds the App Group, and re-signs the .appex with its
existing embedded provisioning profile, then re-seals the app bundle. Also
refresh the agent memory notes.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The reading widget and share extension read the shared App Group container
(group.com.bilingify.readest) that the main app writes to. In App Store builds
the App Group entitlement was stripped from both app extensions during the
xcodebuild archive and export re-sign, because the generated Xcode project kept
CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION = YES on the extension targets. The
widget then read an empty snapshot and showed only the placeholder book icon,
and the share extension saw no library groups. Dev builds are unaffected, so it
only surfaced in TestFlight and the App Store (0.11.18 shipped this way).
Root cause: #4891 removed the flag from project.yml, but Tauri does not re-run
xcodegen and the generated Readest.xcodeproj is skip-worktree'd, so the
committed project still carried the flag and was stale from before the widget
target existed. Regenerate the committed project from project.yml so the flag is
gone and the widget and CarPlay targets are present.
Also make release-ios-appstore.sh fail-fast with set -euo pipefail so
verify-ios-appstore-entitlements.sh actually aborts the release when the App
Group is missing. Without set -e the guard printed its error and the script
still continued to altool --upload-app, which is how a broken widget shipped
despite the guard being in place.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(ios): add CarPlay support for TTS
Surface active TTS sessions on Apple CarPlay, mirroring the Android Auto
integration. A CarPlaySceneDelegate presents a CPListTemplate root
showing the currently reading book (or a placeholder when idle) and
pushes the system Now Playing template. Transport and metadata ride the
existing MPNowPlayingInfoCenter / MPRemoteCommandCenter path, so no
CarPlay button is routed by hand. A new iOS-only update_carplay_state
command lets the media bridge report session start and stop, and TTS
autoplay deep links are consumed even when the target book is already
mounted, for example when the app cold restores straight into the
reader.
Registering the UIApplicationSceneManifest crashed the app at launch on
real devices: tao's configuration_for_connecting_scene_session returned
a raw borrow of a Retained UISceneConfiguration it immediately dropped,
so UIKit retained freed memory. Add the tao fork as the packages/tao
submodule (github.com/readest/tao, branch readest-0.35: tao 0.35.3 plus
only the callback returning an autoreleased strong reference) and patch
it in the workspace. Bump @tauri-apps/api to 2.11.1 and @tauri-apps/cli
to 2.11.4 for the tao 0.35/wry 0.55 stack, and advance the tauri fork
(branch readest-2.11) with a guard in the generated unlisten script
against already-removed listeners.
The tauri 2.11 stack needs two CI accommodations. First, the
build_tauri_app job overrides setup-rust-toolchain's default RUSTFLAGS
of -D warnings: cargo builds path-patched dependencies without
cap-lints, so upstream warnings in the tao fork (deprecated glib
channel calls in the Linux backend) would fail the app build; warnings
in our own crate stay enforced by the rust_lint job. Second, tauri 2.11
enforces ACL for IPC from remote origins even without an AppManifest
(upstream security fix#15266), and the webdriver harness serves the
vitest tester page from its own port, which is a remote origin, so
every custom app command was denied and 56 tauri tests failed.
Production is unaffected since real app pages are local origins.
Declare the app commands in the ACL app manifest in build.rs (generated
allow permissions committed under src-tauri/permissions/autogenerated),
grant them in capabilities/default.json for local windows, and add a
webdriver-remote capability for localhost remote origins that is pinned
out of shipped builds via app.security.capabilities in tauri.conf.json;
scripts/test-tauri.sh opts into it with a --config override. Verified
with pnpm test:tauri: 112 passed, 1 skipped.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(android): handle audio focus properly for background TTS
Request focus with a modern AudioFocusRequest (USAGE_MEDIA,
CONTENT_TYPE_SPEECH) and pause instead of ducking, matching how spoken
audio should yield to navigation prompts. Resume after transient loss
only when the loss is what paused us, forward focus transitions to the
web side as media-session play/pause events, and pause on
ACTION_AUDIO_BECOMING_NOISY so unplugging headphones does not blast the
speaker.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(ios): native audio playout for Edge TTS with Now Playing support
WebAudio in WKWebView renders in WebKit's GPU process under an audio
session the app cannot own, which made every system media behavior
unreliable on device: no lock-screen card, the card vanished on pause,
AirPods resumed another app, and the mute switch silenced playback.
Play the Edge TTS utterances with an in-process AVPlayer instead. The
native-tts plugin gains a deliberately dumb playout engine
(playout_enqueue, playout_control, playout_position) and the new
NativeAudioPlayer mirrors the WebAudioPlayer session interface, so
EdgeTTSClient just picks the player per platform. Word highlighting
reads the player's media clock, which AVPlayer reports in item time and
is therefore unaffected by the playback rate; rate changes stay pitch
preserving via the timeDomain pitch algorithm and inter-sentence gaps
run on a native timer immune to background JS throttling.
With the audio in the app process the plugin claims a non-mixable
.playback session with .spokenAudio mode, so navigation prompts pause
instead of duck. Handle interruption began and ended with shouldResume,
pause on route change to the speaker, and bind an MPNowPlayingSession
to the playout player so the paused state is reported explicitly and
the Now Playing slot survives a pause. The silent keep-alive player
pauses in lockstep, KVC playback state writes are simulator only where
they are required and harmful on device, and the mixWithOthers
use_background_audio calls are removed. On the web side the composite
iOS media session mirrors metadata and position into
navigator.mediaSession, remote commands map to directional play and
pause plus a toggle, and the silent unblocker element is skipped on iOS
Tauri since a playing HTMLMediaElement makes WebKit register its own
competing now-playing client.
Volume-key page flip previously defeated all of this: its handler
unconditionally reconfigured the shared session with .mixWithOthers,
and a mixable session is ineligible for the Now Playing slot, so
pausing TTS dismissed the card and handed AirPod controls to another
app. The two plugins now coordinate through in-process notifications:
native-tts announces claim and release of the audio session, and the
volume key handler leaves the session untouched while TTS owns it, so
volume keys keep flipping pages during a pause without losing the card,
and re-owns the session after TTS teardown regardless of ordering.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Production JS crashes report minified chunk names with no source lines, which
blocked triaging most reader/TTS Sentry issues. Generate browser source maps for
the Tauri export build and upload them right after `next build`:
- next.config: productionBrowserSourceMaps for the export build.
- scripts/upload-sourcemaps.mjs: sentry-cli injects debug IDs + uploads the maps
(release Readest@<version>, ~/_next/static url-prefix), then strips the .map
files so they never ship in the app bundle. Token-gated; never fails the build.
- CI (release.yml, nightly.yml): pass SENTRY_AUTH_TOKEN / SENTRY_ORG /
SENTRY_PROJECT alongside SENTRY_DSN.
- docs/sentry-symbolication.md: setup + required secret, and the native
(Android ProGuard/.so, iOS dSYM) follow-up.
Local and fork builds are unaffected: with no token the maps are stripped and
the output is unchanged. Needs the SENTRY_AUTH_TOKEN GitHub secret to take effect.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(auth): handle OAuth callback errors on desktop deeplink (#4881)
The Tauri deeplink OAuth handler only parsed the URL hash for an
access_token, so error callbacks were silently swallowed and the login
screen froze with no feedback. This is how an expired Apple provider
secret (GoTrue "Unable to exchange external code") surfaced to users as
a dead login screen on macOS and Linux.
Extract a pure, tested parseOAuthCallbackUrl() that reads both the hash
(implicit-flow tokens) and the query string (provider/GoTrue errors),
and route errors to /auth/error before the token branch, matching the
web callback page.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(scripts): add Apple client secret generator (#4881)
Apple caps the "Sign in with Apple" client secret JWT at 6 months, so the
web OAuth flow (macOS non-store and Linux) breaks with "Unable to exchange
external code" when it expires. This script regenerates the ES256 JWT using
Node built-in crypto (no new dependency) for pasting into the Supabase Apple
provider config.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The App Store export re-sign (xcodebuild -exportArchive, automatic signing)
stripped com.apple.security.application-groups from the ReadestWidget and
ShareExtension binaries because both targets set
CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION: YES. The provisioning profiles and
source entitlements both grant the group, but the signed extension binaries did
not, so the widget read an empty snapshot from the shared App Group container
and showed only the placeholder book icon. Dev builds were unaffected.
Remove the flag from both extension targets (the main app already ships the
group correctly without it) so signing uses the exact CODE_SIGN_ENTITLEMENTS
content. Add scripts/verify-ios-appstore-entitlements.sh and run it from
release-ios-appstore.sh before upload so a stripped App Group fails the release
instead of shipping a dead widget.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(wordlens): support en-en monolingual glosses
Gloss difficult English words with a short English definition for learners
reading English with English hints.
- build: buildEnEn + shortDefGloss read ECDICT's English `definition` column
(first/primary WordNet sense, POS-stripped, drop ;-example, <=24 word-boundary
with trailing-connector trim). New `en-en` CLI branch; buildEnZh/buildEnEn now
share a buildEnPack core.
- gating: drop the hardcoded `hint === source` rejections (wordlensSection,
WordLensPanel) so same-language packs are allowed; availability is decided by
the manifest (resolvePack returns null when no pack exists).
- data: data/wordlens/en-en.json (26,578 entries) + regenerated manifest.json.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(wordlens): gloss styling, derivation lemmas, display-time cap
Builds on the en-en monolingual gloss support with refinements and
regenerated packs.
- settings: per-book gloss <rt> font size (em) and color in
Settings > Language > Word Lens (getRubyStyles reads viewSettings).
- en-en hints: WordNet hybrid (a simpler synonym, else a category
hypernym, else the ECDICT definition) instead of raw verbose
definitions.
- lemmatization: gate difficulty by the lemma rank for every English
source pair. enBaseFormCandidates now also covers -able/-ible suffixes
and negative prefixes (un/in/im/ir/il), so insufferable resolves to
suffer. A candidate is accepted when the English definition names the
base OR the Chinese translations share a content character, which keeps
true derivations (insufferable -> suffer) and rejects coincidental
stems (capable -> cap). en-X packs inherit the en-en lemma table.
- display cap: the max gloss length is applied at render time in
cleanGloss (MAX_GLOSS_LEN), so the packs store the full hint and the
cap can change without regenerating data.
- tooling: pnpm wordlens:preview to sample pack entries; cache build
corpora under data/wordlens/.sources (gitignored).
- data: regenerate en-en, en-zh and en-de/es/fr/pt/ru plus the manifest.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cherry-picked and re-verified the applicable subset of
julianshen/readest@fa1b74a0 (its "address PR #15 bot reviews" commit). The
fork-only AI-annotation-tool change was dropped — readest has no 'ai' toolbar
tool. Each logic fix is covered by a failing-first test.
- TTS position sequence is now an app-wide monotonic counter, so a fresh
TTSController (constructed per `tts-speak`) isn't dropped by consumers holding
`lastSequenceSeen` from a prior session.
- share.ts only swallows AbortError (user cancel); other failures — e.g.
NotAllowedError when a quick action fires without a user gesture — fall back to
the clipboard so the text still reaches the user.
- document.isTxt tolerates MIME params (text/plain;charset=utf-8), uppercase
extensions (BOOK.TXT), and a nameless Blob, so a TXT can't slip onto the
non-text path and yield a null book.
- updater getNightlyPlatformKey matches x86_64/aarch64 explicitly; a 32-bit or
otherwise unknown arch yields no nightly instead of mis-routing to aarch64.
- UpdaterWindow downloadWithProgress resolves on tauriDownload completion even
when Content-Length is absent (no more hang on portable/AppImage/Android).
- nightly_update.rs uses async tokio::fs::read in the async command.
- nightly.yml: serialize runs via a concurrency group (no cancel) and
persist-credentials:false on checkouts.
- edge TTS route only emits the word-boundary header when it fits under ~8KB;
oversized values get dropped by proxies, and the client falls back to [].
- RSVPOverlay drops the contradictory aria-disabled on the functional rate
button (it opens the pace picker).
- nightly verify harness handles artifact stream errors instead of crashing.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
"Word Wise" is a Kindle trademark, so rename the inline-gloss feature to
"Word Lens" throughout the product.
- User-facing strings → "Word Lens" across all 34 locales; brand translated
for Chinese (zh-CN 单词透镜, zh-TW 單詞透鏡) and German (Word-Lens-Daten).
- Code identifiers: WordWise→WordLens, wordWise→wordLens, WORD_WISE→WORD_LENS.
- Files/dirs: src/services/wordwise→wordlens, WordWisePanel→WordLensPanel,
wordwise{Ruby,Section}.ts, build/sync scripts, test dirs/fixtures,
data/wordwise→data/wordlens.
- Storage paths: CDN base, R2 key, on-device cache dir, WORDLENS_R2_BUCKET env,
pnpm wordlens:{manifest,sync}. manifest.json is path-agnostic so its
sha256/bytes stay valid (verified).
- biome.json: point the formatter-ignore at data/wordlens so the generated
one-line gloss packs aren't pretty-printed on commit.
Migration notes:
- Re-run `pnpm wordlens:sync` to upload packs to cdn.readest.com/wordlens/.
- Persisted view-settings keys renamed (wordWiseEnabled/Level/HintLang and
wordWiseAutoDownload) — saved values reset to defaults once on upgrade.
- Cached packs under the old Data/wordwise/ orphan (harmless re-download).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(reader): Word Wise — inline native-language vocabulary hints
Kindle-style Word Wise: a short native-language gloss renders above difficult words
as you read (always-on ruby), gated by a CEFR vocabulary-level slider (A1–C2);
tapping a glossed word opens the existing dictionary.
- Pipeline: CEFR→frequency-rank difficulty, inflection-aware gloss index, pure
offset-aware planner (EN regex + jieba for CJK).
- Rendering: <ruby cfi-skip>…<rt cfi-inert> injected per occurrence — CFI-transparent
(verified), so highlights/bookmarks/progress are unaffected; kept out of TTS word
offsets and find-in-book.
- Delivery: gloss packs are version-controlled in data/wordwise/, mirrored to R2, and
downloaded on demand into local storage (sha-verified, single-flight) when enabled.
- Settings: a Word Wise sub-page under Settings → Language (enable, level, hint
language, per-pack download/manage, auto-download toggle).
- Build tooling: scripts/build-wordwise-data.mjs (ECDICT / CC-CEDICT+HSK / WikDict +
FrequencyWords, with lemmatization) and scripts/sync-wordwise-r2.mjs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* data(wordwise): bundled gloss packs + manifest + attribution
13 frequency-trimmed gloss packs (en↔中文 + es/fr/de/pt/it/ru↔en, ~19 MB) generated
by build-wordwise-data.mjs from ECDICT (MIT), CC-CEDICT + HSK, and WikDict +
FrequencyWords (CC-BY-SA). Source of truth, mirrored to the CDN via `pnpm wordwise:sync`.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Worktrees set up by `pnpm worktree:new` symlinked `src-tauri/gen/apple` back
to the bare repo. The Xcode "Run Script" build phase
(`pnpm tauri ios xcode-script`) walks up from `Readest.xcodeproj` to find
`Cargo.toml`, but the symlink target resolves to the bare repo's
`src-tauri` — so `pnpm tauri ios dev` from a worktree silently built the
bare repo's Rust source, not the worktree's.
Switch to a filtered copy. `project.yml` references `../../src` and the
xcode-script walks up to `../../Cargo.toml`; with the project copied into
the worktree, both paths resolve to the worktree's source. Mirrors what the
script already does for Android (`tauri android init` per worktree).
Skipped on the copy:
- `build/` (~300 MB of Xcode derived output)
- `Externals/<arch>/{debug,release}/` (Rust static libs — rebuilt from the
worktree's `src-tauri` on first build; the `target/` symlink the script
already sets up keeps the Rust object cache shared)
- per-user Xcode state (`xcuserdata`, `*.xcuserstate`)
- `Pods/` (defensive; Readest's iOS uses SPM, not Cocoapods)
Result: ~2.7 MB copy, ~30 ms locally, no `pod install`, no
`tauri ios init`. Signing config, scheme, asset catalogs and Tauri's
generated Swift glue all preserved verbatim from the bare repo.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(koplugin/library): data layer + busted harness + design doc
- LibraryStore: per-user SQLite index merging cloud + local books by
partial-md5 hash. listBooks/listBookshelfBooks/listBookshelfGroups,
upsertBook with cloud_present/local_present OR-merge + _force/clear
sentinels, parseSyncRow, getChangedBooks for tombstone push.
- EXTS table mirroring web's document.ts.
- busted harness with KOReader stubs (G_reader_settings, DataStorage,
lua-ljsqlite3 against :memory:); spec_helper, exts_spec, smoke_spec,
librarystore_spec covering schema, sort, group nesting, dedupe.
- Library design doc + spec README.
- pnpm test:lua wired through root + app package.json; lint-koplugin
recurses into library/ + spec/.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(koplugin/library): cloud sync — push, pull, upload, delete, downloads
- Spore methods: pullBooks (incremental /sync), getDownloadUrl,
getUploadUrl, listFiles, deleteFile.
- syncbooks.lua: pushBook + pushChangedBooks (advances watermark to
max(updated_at, deleted_at)), syncBooks(opts, mode) for push/pull/both,
downloadBook + downloadCover (sync socket.http with file sink; cover
download via fork+poll with single-slot queue + visible-page filter +
coalesced refresh), uploadBook (presigned-PUT flow + best-effort
cover), deleteCloudFiles (list-then-delete-each, mirrors
cloudService.deleteBook).
- SyncAuth.withFreshToken wrapper resolves the ensureClient race; 401/403
unified across syncconfig + syncannotations.
- Cloud + local book covers shared by partial-md5 hash; cover.png cached
at <settings>/readest_covers/<hash>.png with sentinel for known 404s.
- syncbooks_spec covers row-to-wire conversion + file_key shape.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(koplugin/library): local discovery — sidecar scanner + cover provider
- localscanner.lightScan iterates ReadHistory entries, reads
partial_md5_checksum from .sdr sidecars, and upserts local rows.
Slow filesystem walks deferred to fullSidecarWalk (24h-gated).
- coverprovider wraps BookInfoManager:getBookInfo for local books with
graceful FakeCover fallback when coverbrowser is absent.
- localscanner_spec + coverprovider_spec.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(koplugin/library): UI — widget, item, view menu, FileManager hooks
- librarywidget: full-screen Menu mixed in with CoverMenu + Mosaic/List
per zen_ui's group_view pattern. Title-bar tap → view menu, search via
left icon, drill-in/back for grouping. Async cloud sync deferred via
scheduleIn so the menu paints before HTTP fires.
- libraryitem: BIM patch for cloud-only (readest-cloud://) and group
(readest-group://) URIs; group-cover composer (2x2 mosaic for grid,
same in list) with cache key derived from the actual first-N hashes
for content-based invalidation; ListMenuItem update + paintTo patches
for wider list-mode cover strip and cloud-up/down icon overlay.
- libraryviewmenu: ButtonDialog with View/Group by/Sort by/Actions.
Default Group by = Groups (parity with web), values authors/groups.
- librarypaint: partial-page e-ink repaint shim adapted from zen_ui.
- main.lua: Library menu entry, dispatcher actions (Open Library / Push
/ Pull as general; progress + annotations as reader-only),
"Add to Readest" button in FileManager's long-press file dialog
(dedupe by partial_md5; bumps updated_at when present, inserts a
fresh local-only row otherwise; un-tombstones via _clear_fields).
Push books on Library open when auto_sync is on, pull-only otherwise.
- Long-press action sheet with Readest BookDetailView parity:
Remove from Cloud & Device / Cloud Only / Device Only,
Upload to Cloud, Download Book / Cover / All.
- Cloud-down + cloud-up SVG icons (LiaCloudDownloadAltSolid /
LiaCloudUploadAltSolid) painted in the right-side wpageinfo slot.
- i18n catalog updated for new strings.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* refactor(koplugin/library): split libraryitem into focused modules
libraryitem.lua had grown to 1018 lines mixing five unrelated
concerns. Split along the natural seams:
cloud_covers — readest-cloud:// URI scheme, on-disk <hash>.png
cache, single-slot async download queue, visible-page
filter
group_covers — readest-group:// URI scheme, 2x2 mosaic composer with
content-derived cache key (first-N hashes), cell
layout table
cloud_icons — bundled cloud-up/cloud-down SVG loader, IconWidget
cache, paint-overlay positioning
list_strip — list-mode group row builder (4-cover wider strip
replacing ListMenu's square cover slot)
bim_patch — BookInfoManager:getBookInfo router (cloud / group /
local) + ListMenuItem update + paintTo patches; owns
the _library_local_paths set and orig BIM reference
libraryitem.lua is now 141 lines: just the entry-table constructors
(entry_from_row, entry_from_group, entry_back) plus thin install /
set_visible_hashes delegates. Each new module is 88-216 lines.
No behavior change — same 113 specs pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(koplugin): co-locate dev tooling, ship-zip exclusions, CI job split
- apps/readest.koplugin/scripts/build-koplugin.mjs: local sideloading
build with the same exclusions the release workflow uses.
- Move lint-koplugin + test-koplugin from apps/readest-app/scripts/ to
apps/readest.koplugin/scripts/. All koplugin dev tooling now lives
with the koplugin and is excluded from the published release zip.
- Rename to .mjs so Node treats them as ESM without the reparse warning
(the i18n CommonJS scripts stay .js).
- Release workflow: zip -r exclusions for scripts/, docs/, spec/,
.busted so dev artifacts don't ship to end users.
- PR workflow: split build_web_app into build_web_app + test_web_app
for parallelism. The test job installs luarocks + busted +
lsqlite3complete and runs pnpm test:lua. test-koplugin.mjs now
hard-fails (instead of soft-skipping) when CI=true and a tool is
missing — a broken CI toolchain previously exited 0 silently.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- i18n loader at apps/readest.koplugin/i18n.lua: isolated callable,
falls back to KOReader's gettext when a string is untranslated
- Translation catalog at locales/<i18next-code>/translation.po for 31
languages, mirroring apps/readest-app/public/locales/
- scripts/extract-i18n.js (scan _("...") and _([[...]]); preserve
existing, drop obsolete, add new) and scripts/apply-translations.js
(bulk import from /tmp/koplugin-translations/<lang>.json)
- Mirror apps/readest-app SyncInfoDialog: rename showMetaHashInfo to
showSyncInfo, dialog title "Sync Info", new Last Synced row computed
as max(last_synced_at_config, last_synced_at_notes) from doc_settings
- syncconfig.lua / syncannotations.lua mark per-book sync timestamps
on push/pull success
- Rename "Meta Hash" -> "Book Fingerprint" in koplugin and
apps/readest-app SyncInfoDialog.tsx; translations propagated to
all readest-app locales
- "book config" -> "reading progress" wording across user-facing
strings (matches QiuYukang fork terminology)
- Replace "Log out as " / "Login failed: " concat prefixes with
T(_("...%1..."), arg) placeholder pattern (RTL / verb-final friendly)
- pnpm lint:lua: luajit -b syntax check across koplugin .lua files;
soft-skips when luajit is missing locally; CI installs luajit and
runs the check unconditionally
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* refactor(toc): cache TOC + section fragments per book
Moves the TOC regrouping and section-fragment computation out of
foliate-js/epub.js #updateSubItems into the readest client as
computeBookNav / hydrateBookNav in utils/toc.ts. The result is
persisted to Books/{hash}/nav.json — capturing the book's full
navigable structure (TOC hierarchy + sections with hierarchical
fragments). Compute once, persist locally, hydrate on subsequent
opens. Designed to serve current human-facing navigation (TOC
sidebar, progress math) and future agentic navigation (LLM-driven
seeking by structural location).
Versioned by BOOK_NAV_VERSION for forward invalidation. Existing
books regenerate transparently on next open.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: update worktree scripts
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(rsvp): add persistent context, display settings, and layout improvements, closes#3333
Add always-visible collapsible context panel, font size adjustment,
ORP color selection, and stable context window that only rebuilds on
scroll. Refactor speed controls into playback row with collapsible
settings behind a gear icon. Translate new i18n keys across 29 locales.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(selfhost): update docker db schema to match FileRecords (#3527)
In #2636, FileRecord was defined to have updated_at field
which is used when it is accessed from the database. But the
local dev setup is missing this field.
This diff adds an updated_at column to match the expectation
* chore(ci): cache system dependency and rustc outputs in ci
* chore(ci): lint script changed from tsc to tsgo
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Azeem Bande-Ali <me@azeemba.com>