Send to device, Previously deleted, better series finder, hide finished, phone relay, exclude filters #31
<!-- codex-pull-request-review-summary -->
<!-- codex-review-state:v1 {"code_review":{"commit_sha":"cb7ef2d77a341eb2c7d557e4a7ee051fe43b27a2","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} -->
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
| --- | --- | --- | --- |
| 📝 Code Review | ✅ Completed <relative-time datetime="2026-10-22T04:22:00.888794Z">2026-10-22T04:22:00.888794Z</relative-time> | cb7ef2d | PR opened |
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
<sub><sub>!P1 Badge</sub></sub> Keep migration 16 in its original slot
Placing the new read migration before the block identified as v16 breaks upgrades from any build that already shipped the Send to device migration: such databases have user_version = 16, so migrate() skips this ALTER TABLE and runs only the following shelf insertion. The app then queries and installs sync triggers for series_lists.read, causing library startup to fail with a missing-column error. Append the read column as v17 after the existing v16 migration.
Useful? React with 👍 / 👎.
<!-- codex-code-review-finding:v1 -->
<sub><sub>!P1 Badge</sub></sub> Hide or honor Send to device outside chosen-only mode
On desktop this now exposes “Send to device” for every sync configuration, including the default where phoneChosenOnly is false. In that mode files_kept() ignores phone_wanted and follows only the global bookFiles/audioFiles switches, so selecting a book can be a complete no-op when file sync is off, while deselecting it cannot stop transfer when file sync is on. Either retain the settings-based visibility gate or make the backend honor the flag independently.
Useful? React with 👍 / 👎.
<!-- codex-code-review-finding:v1 -->
<sub><sub>!P2 Badge</sub></sub> Retry relay covers after the book upload succeeds
When a relayed book uploads successfully but its subsequent cover upload fails, the book path is recorded as uploaded before the cover attempt. On every later sync this early continue excludes the relay because the book itself is no longer due, so the cover is never retried; the normal file pass cannot recover it because phone covers require a local book path, which this relay case lacks. Relay selection needs to account for a due cover even when the book path is already complete.
Useful? React with 👍 / 👎.
<!-- codex-code-review-finding:v1 -->
<!-- codex-review-receipt:v1 -->
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb7ef2d77a
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
</details>
Fixed in 7378935: Send to device is v16 again and the read column is v17 after it.
---
_Generated by Claude Code_
Fixed in 7378935: a relay whose book is already there but whose cover isn't is still picked up, and sends only the cover.
---
_Generated by Claude Code_
Fixed in 7378935: the phone's place now always takes books chosen for it, even with book file sync off. With it on, every book goes anyway, which is what that setting means.
---
_Generated by Claude Code_
Krowsingre
Before: there was no Send to device shelf, re-imported deleted books came back silently, the series finder only asked Hardcover and Audible, missing series books couldn't be marked read or added by hand, finished books couldn't be hidden, sending an iCloud-only book to the phone needed a permanent download, and filters could only pick books, not leave them out.
After: a pinned "Send to device" collection and Library tab; books deleted before land in "Previously deleted" (or are skipped, by a setting); the series finder also asks Wikidata, ISFDB and Google Books, shows which number each owned book is, wraps long missing lists, lets missing books be marked read or added by hand, and shows missing books greyed out on collection cards and in a new "In this series" row on book details; "Hide finished books" filter; sync relays phone books from the other place to Supabase without keeping a copy; every filter list cycles show only, hide, off.
How: migrations v16 (shelf row) and v17 (
series_lists.read), newseries_sources.rs,relay_for_phoneat the end ofrun_both,LibraryExcludewrapped in NOT inbrowse.rs. Wikidata, ISFDB and Google Books are tested with saved replies only, since the build environment can't reach them.---
_Generated by Claude Code_