readest/apps/readest-app
Huang Xin 4171f45bd5
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Build with Nix / tests (push) Waiting to run
PR checks / nix_flake_check (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / koplugin_rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
fix(library): recover from a failed startup instead of rendering a blank window (#5789)
The Mac App Store build launched to a permanently blank window while the
same binary from the DMG worked. The webview was not at fault: it loaded,
ran the router, and reported the page load complete.

The container's settings.json carried a customRootDir pointing outside the
app container. loadLibraryBooks() creates the Books dir on first read, the
App Sandbox denied file-write-create on that path, and the rejection
escaped because initLibrary() runs as a floating promise.
checkOpenWithBooks and checkLastOpenBooks default to isTauriAppPlatform()
and are cleared only on the success path, so the library page's early
return kept rendering a bare div for the rest of the session. Web was
unaffected because both flags start false there.

Changes:

- Probe the configured library root once during init through the new
  BaseAppService.isRootDirUsable(), recording it as unavailableRootDir
  when it cannot be used. The custom resolver deliberately stays
  installed on failure: silently falling back to the default location
  would scatter imports into a second library and make the real books
  look lost once the root comes back. The setting itself is untouched, so
  an unplugged drive is picked up again on the next launch.
- Catch failures from initLogin and initLibrary, release the render
  gates, and surface an error that names the folder when an unreachable
  root is the cause.
- Catch a failed getAppService in EnvContext, which every page gates its
  render on.
- Publish the app service singleton only after init resolves. Assigning
  it first meant a failed init cached a half-built service forever: later
  callers got it back without re-running init, and getInitializedAppService
  handed synchronous callers an object whose paths were never resolved.

Adds 5 tests covering the probe, including the sandbox-denied path.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-19 18:15:01 +02:00
..
.agents agent: support cross-agent workspace, now it should work with claude and codex (#4318) 2026-05-27 06:28:39 +02:00
.claude fix(nix): update pnpmDeps hash and verify dep hashes on PRs (#5779) 2026-08-18 21:30:26 +02:00
bench feat(library): add scoped full text search with fuzzy and nearby modes (#5389) 2026-08-01 21:24:31 +02:00
data/wordlens feat(wordlens): add the en-hu gloss pack (#5738) 2026-08-16 09:27:56 +02:00
docs feat(dictionaries): add bundled plugin and Yomitan support (#5764) 2026-08-18 13:43:58 +02:00
e2e fix(annotator): drop the selection when the instant dictionary opens, closes #5585 (#5730) 2026-08-15 19:11:08 +02:00
extensions feat(send): clip locally opened html and xhtml pages with the browser extension (#5512) 2026-08-05 16:36:22 +02:00
public fix(nix): update pnpmDeps hash and verify dep hashes on PRs (#5779) 2026-08-18 21:30:26 +02:00
scripts feat(dictionaries): add bundled plugin and Yomitan support (#5764) 2026-08-18 13:43:58 +02:00
src fix(library): recover from a failed startup instead of rendering a blank window (#5789) 2026-08-19 18:15:01 +02:00
src-tauri feat(reader): pair local audiobooks with ebooks (#5754) 2026-08-17 08:46:00 +02:00
workers feat(payment): observability for store subscription webhooks (#4704) 2026-06-21 18:02:02 +02:00
.env fix: resolve various tracked exceptions in ph (#3584) 2026-03-22 08:16:38 +01:00
.env.local.example feat(discord): support show reading status with Discord Rich Presence, closes #1538 (#2998) 2026-01-19 17:42:19 +01:00
.env.tauri fix(flathub): use custom dbus id for single instance on Linux (#2971) 2026-01-16 05:59:25 +01:00
.env.tauri.example feat(ai): AI reading assistant phase 2 (#3023) 2026-01-24 11:38:48 +01:00
.env.web
.env.web.example feat(ai): AI reading assistant phase 2 (#3023) 2026-01-24 11:38:48 +01:00
.gitignore feat(macos): enable icloud sync in direct-distribution builds (#5537) 2026-08-06 15:34:07 +02:00
AGENTS.md feat(dictionaries): add bundled plugin and Yomitan support (#5764) 2026-08-18 13:43:58 +02:00
CLAUDE.md chore(agents): add AGENTS.md for readest-app (#3415) 2026-02-28 15:30:31 +01:00
components.json refactor: rename components/ui to components/primitives (#3064) 2026-01-25 06:41:18 +01:00
DESIGN.md docs(design): default primary buttons to btn-contrast, reserve btn-primary for CTAs (#5155) 2026-07-17 05:11:02 +02:00
i18n-langs.json feat(i18n): add Georgian translations (#5763) 2026-08-17 12:21:10 +02:00
i18next-scanner.config.cjs fix(cbz): ComicInfo metadata + CBZ page count + WebDAV i18n (#4282) 2026-05-23 15:59:29 +02:00
next.config.mjs feat(dictionaries): add bundled plugin and Yomitan support (#5764) 2026-08-18 13:43:58 +02:00
open-next.config.ts chore(config): add disableIncrementalCache to skip populating remote R2 incremental cache (#4623) 2026-06-17 03:51:17 +02:00
package.json fix(deps): resolve open Dependabot alerts (#5778) 2026-08-18 20:22:38 +02:00
playwright.config.ts test(e2e): add a Playwright web e2e lane (reading & annotation flows) (#4214) 2026-05-18 08:22:17 +02:00
postcss.config.mjs
raw-loader.d.ts
release-notes.json release: version 0.12.1 (#5581) 2026-08-08 19:02:59 +02:00
skills-lock.json ui/ux: codify design system and migrate settings to shared primitives (#4116) 2026-05-10 17:46:25 +02:00
tailwind.config.ts feat(popup): restyle popups (#5351) 2026-08-02 20:34:24 +02:00
TODOS.md chore(style): unified info bar font style (#5045) 2026-07-10 14:22:02 +02:00
tsconfig.json fix(db): forward DatabaseOpts to tauri-plugin-turso (#4292) 2026-05-25 18:51:49 +02:00
vite.config.ts chore: experimental vinext build (#3486) 2026-03-06 18:04:28 +01:00
vitest.android.config.mts fix(reader): Android text selection breaks on the first word of hyphenated paragraphs (#4545) 2026-06-12 12:30:56 +08:00
vitest.browser.config.mts feat(reader): right-to-left page order for fixed-layout books (#5712) 2026-08-15 10:40:39 +02:00
vitest.config.mts test: remove redundant cases and silence passing logs (#5192) 2026-07-19 03:03:04 +02:00
vitest.env.mts feat(node): refactor appService into focused service modules and add app service for Node runtime (#3530) 2026-03-13 17:51:35 +01:00
vitest.setup.ts test: remove redundant cases and silence passing logs (#5192) 2026-07-19 03:03:04 +02:00
vitest.tauri.config.mts perf(import+open): native Rust EPUB/MOBI parser, OPF prefetch, parallel TOC enrichment (#4369) 2026-06-10 16:58:25 +02:00
vitest.tauri.setup.ts feat(node): refactor appService into focused service modules and add app service for Node runtime (#3530) 2026-03-13 17:51:35 +01:00
wdio.conf.ts chore(testing): add Tauri integration tests and E2E test infrastructure (#3483) 2026-03-05 19:14:01 +01:00
wrangler.toml feat(payment): observability for store subscription webhooks (#4704) 2026-06-21 18:02:02 +02:00