Commit Graph

721 Commits

Author SHA1 Message Date
9ef9359fe6 A playlist row's X marks the episode played (#497)
renderPlaylist set an onclick of its own over listenRow's, to play on
through the playlist, and returned early for a click on the X instead of
calling its remove, so Mark played never ran. listenRow now takes what a
play click does, and the playlist passes playFrom instead of replacing the
handler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 18:30:01 -05:00
5786a0cb1c NZB enclosures through SABnzbd, as torrents go through qBittorrent (#496)
An episode published as an .nzb was downloaded as if it were the episode:
ipx filed the NZB's XML in the feed's folder. NZBs now go to SABnzbd's API
the way torrents go to qBittorrent since #494, down the same path in scan
(download::Via says which), in the same two slots, counted with torrents.

ipx fetches the .nzb itself through the guarded client, under a 20 MB cap,
and adds it under the [nzb] category as nzb-<enclosure>, the name it finds
the job by again after a restart (#410). Progress is the queue's MB; the
stall clock stops while the history says it is verifying or unpacking, since
a large repair is slow. SABnzbd takes no folder per job, only per category,
so the category's folder has to be inside download_dir: the finished job is
renamed into the episode's own folder (save_path maps SABnzbd's view of the
mount onto ipx's) and taken out of the history, so nothing is left for a
delete to clean up, unlike #495.

Every parameter goes in the request body, the key included: reqwest's
errors print the URL, and a key in the query would have reached the log and
the episode's error. A wrong key comes back as 200 with status false, read
as a refusal.

Off, or with no SABnzbd or key, NZBs are skipped as "NZBs disabled", which
like "torrents disabled" no filter change overturns. An .nzb body behind a
lying MIME type is sniffed and handed on too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 15:11:14 -05:00
8469db6fa2 An episode deleted takes its torrent out of qBittorrent (#495)
Since #494 qBittorrent seeds a torrent after ipx has it. When the reaper
or Delete removed the episode's folder first, the torrent stayed in
qBittorrent as missing files until someone removed it there by hand.

Both delete paths now ask qBittorrent for the torrent by its ipx-<id> tag
and remove it, files kept (they are already gone). Only for a path that
is the enclosure's own torrent-<id> folder, only when torrents are on,
and in the reaper only once the folder is really gone, so one that would
not delete keeps seeding. Best effort: a qBittorrent not answering is a
warning, never a failed delete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 14:47:58 -05:00
c4d7b497fa Torrents through qBittorrent instead of librqbit (#494)
ipx ran a BitTorrent session of its own: it bound 6881, joined the DHT and
seeded, and librqbit brought over a thousand lines of Cargo.lock with it,
ringbuf's advisory (#281) and a second path to chrono (#493) among them.
Tower already runs qBittorrent, so torrents go there through its Web API.

ipx still fetches the .torrent itself, through the guarded client and under
the 10 MB cap (#320, #330), and adds it with the enclosure's own folder as
the save path (#318, #331), the files straight into it (NoSubfolder), the
seed limits, and a tag ipx-<enclosure> to find it by, since a magnet has no
hash until its metadata comes. A torrent already tagged when ipx starts
again is taken up where qBittorrent has it (#410). It is polled to the end
under the stall limit; a qBittorrent not answering counts as no progress
rather than a failure. qBittorrent seeds to the limits; with none, ipx
removes the torrent from it at the end, files kept.

The session cookie is whatever qBittorrent sets with SID in its name:
5.x calls it QBT_SID_<port>. torrents/info by POST with a tag was checked
against Tower's 5.2.3.

The ringbuf ignore leaves deny.toml; chrono's stays, for rss and
atom_syndication alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 14:29:20 -05:00
2c8b4d925e SQLite past RUSTSEC-2026-0459 with sqlx 0.9.1, and url 2.5.9 (#467, #492, #493)
sqlx-sqlite 0.9.1 (2026-11-18) takes libsqlite3-sys up to 0.40, where
0.9.0 pinned it below 0.38, so the SQLite fix #467 waited on is in:
libsqlite3-sys 0.37.0 -> 0.40.0, and its ignore leaves deny.toml.

cargo deny then failed on two advisories published since:
RUSTSEC-2026-0592, url 2.5.8's Url::origin() overflowing the stack on a
URL nested in blob: thousands of times, fixed in 2.5.9 (#492); and
RUSTSEC-2026-0543, chrono unmaintained, no fixed release and no known
vulnerability. rss, atom_syndication and librqbit-dht depend on chrono,
so ipx's own uses moving off it would not take it out of Cargo.lock: it
is recorded in deny.toml as assessed and #493 stays open for when they do.

All six crates' tests pass, ipx's on Postgres and on SQLite, and the
browser suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 12:36:18 -05:00
6028202129 Episodes already out get their chapters at the next scan (#477)
Adding entries.chapters left stored items without theirs until their
feed next changed, so the episodes out now, the likeliest to be played,
had none. The migration now also forgets each feed's etag, Last-Modified
and body hash, as adding feeds.description did, so the next scan reads
every feed whole and changed_items fills the column. It runs after the
body_hash migration, which adds a column it clears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 12:17:30 -05:00
4fccb59f44 A folder's triangle is back on the far left, in a narrower margin (#491)
#486 moved it to the row's end to take back the 16 px left margin it
hung in. It belongs first. It hangs in the list's margin again, now
10 px, and is as wide as that margin and the row's padding, up to the
art, so every row's art still lines up with the places above: 20 px
from the list's edge, against 26 before #486.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 12:17:30 -05:00
4aeb5c510f The app's wire code has the chapters' messages (#477)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 12:02:49 -05:00
882cd5f03c Now Playing lists an episode's chapters, and a tap plays from there (#477)
Where they come from, in order: the chapters file an item names
(<podcast:chapters url>, the Podcasting 2.0 namespace's JSON), stored on
the item as entries.chapters and read when someone opens Now Playing; else
the downloaded file's own chapters (ID3 CHAP frames, MP4 chapters), which
ffprobe reads as it does for DeadAir. A chapter with toc false is only
there to change the artwork and is left out.

GET /api/enclosures/{id}/chapters answers for a file, since a file is what
plays. With ?deadair=true the starts are moved into DeadAir's shortened
clock with to_copy, as positions are, or a chapter would start late by
every silence cut before it. A chapters file that cannot be read is an
empty list: the player plays on without them, and the step's span says why.

Items already stored get their chapters address when a scan next finds
them told differently; feeds that answer 304 add it with their next items.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 12:02:22 -05:00
f633f3d692 Opening a list moves the feed list's highlight instead of redrawing it (#490)
Profiled on production's lists at an iPhone 13's size with the CPU slowed
4x, opening four lists twice: selectFeed rebuilt every feed row (about
300 ms of the run) only to move .sel and aria-current, and dateOf made a
new Intl.DateTimeFormat for every row through toLocaleDateString with
options (about 155 ms). With markSelected and one shared formatter the
run's CPU time fell from 2.3-2.5 s to 1.25-1.65 s; dateOf from 157 ms to
12 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 11:26:09 -05:00
33b595973a Counting the files waiting to download reads an index of them alone (#489)
Db::counts counted enclosures WHERE state = 'pending' with no index to
use: a parallel sequential scan of all ~690,000 rows in production, 92 ms
and 32,397 buffers, every 30 s for /metrics and on each /api/status, to
find a handful. It was the slowest route at p95 and once 1.1 s. A partial
index on the pending rows makes it an index-only count of those few, as
enclosures_on_disk already does for the downloaded count beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 08:54:42 -05:00
8afa79b022 A stuck scroll's report checks again, and knows when a swipe last moved the reader (#488, #450)
All three scroll_stuck reports since 9035306 said "slid 0s ago". The swipe
code's touchend runs before the stuck-scroll watcher's and calls slide(0)
on every touch in the reader that is not a swipe, and slide set slidAt
whatever dx was. It is now set only for a move across.

The watcher read scrollTop on touchend. iOS scrolls off the main thread,
and two of the three reports were fast flicks of 2-4 touchmoves, which can
end before the page knows the new position. It looks again 300 ms later
and reports only a reader that still has not moved, with the drag's time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
2026-11-22 08:38:54 -05:00
520c8bf8ff The feed list spends no margin on folders; a lone header button keeps its row (#486, #487)
#feedlist was padded 16px on the left and 8 on the right so a folder's
triangle could hang in the margin, and every feed and place moved in with
it. The triangle is drawn at a folder's row end now, before the count, by
flex order, so the keyboard still meets it first, and the list is padded
alike on both sides.

On a phone a header's buttons take a row of their own, right for a
podcast's seven; one button, Playlists' and Signals' +, stays beside the
title, its description given way to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-20 11:08:24 -05:00
eab2f75862 A page of its own starts its header where a podcast's does (#485)
Currently Listening, Up Next, Playlists and Signals are #content.plain,
which pads itself, and their header took #content>.fhead's padding on
top: 28px in on a phone where a podcast's header is at 14, 42px on a
desktop, with as much again above it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 11:08:44 -05:00
fb6bb79feb On a phone, an episode's title starts at the row's edge (#484)
The read dot's column and the pin button took 77px of a 390px row
before the title, the first of them empty once an episode was read. On
a phone the row has neither now: unread is a dot before the title,
named for a screen reader, and pinned a pin in the line under it, both
changed from the reader's floating actions. The hairline between rows
starts with the text. A desktop's rows are as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 10:58:58 -05:00
419299f912 The #483 fix is ipx's alone: no line for the page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 10:47:42 -05:00
8386aa609b Downloading a season takes back what retention removed (#483)
Time For Chaos's Season 1 had all 20 files downloaded and since reaped.
Download Season 1 queued nothing and said all of it was on iPX, because
Db::undownloaded left out reaped files, as Download latest wants: there
they would only come back to be reaped again. A season asked for by name
is wanted whole, so its reaped files are queued; a fresh download is new
again to the quota and age sweeps, which order by when it was
downloaded. A file already downloading is no longer queued a second time,
for either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 10:45:59 -05:00
55382478af Merge branch 'seasons' 2026-11-19 09:34:18 -05:00
4421d1d083 A season's download sits on the picker's row (#482)
On a phone, on a row of its own under the picker, it cost a line above
the list for one button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 09:24:21 -05:00
c441215c62 A seasoned podcast runs in its own order, and a season downloads whole (#482)
Asked for on the issue: lowest to highest, by season and then episode,
and a way to download every episode of a season.

sort=episode orders by season, episode, then date, with the episodes in
none last either way round; a podcast told in seasons opens in it until a
heading is clicked, and its seasons are offered lowest first.
download-latest takes a season and queues every file of it not on iPX,
first episode first, up to 300; the page asks first, since a season can
be gigabytes. The picked season scrolls into view in the picker, and the
count under the list is the season's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 09:21:50 -05:00
4eb6fbb286 The app's wire code has the seasons' messages (#482)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 09:05:47 -05:00
a57820a078 A podcast told in seasons can be listed one season at a time (#482)
GET /api/feeds/{id}/seasons counts a podcast's episodes and unread by
season, from the same FROM as its list, so a count is what picking it
shows; season= on its entries narrows the list to one, or to the
episodes naming none. The page puts the seasons under the tabs, as the
tabs' own track, when a podcast is told in them: two or more, holding
most of its episodes. That leaves out Ken and Robin, whose "seasons" are
years on a quarter of 767 episodes, and The Vintage RPG Podcast's 2 of
366. Listed all together by date, a heading marks where each season
starts.

A fixture podcast in seasons is in the browser suite, which now
configures six feeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 09:04:57 -05:00
9ece0ff17c Podcasts sort with a leading "A" or "An" set aside too (#481)
A Question of Science files under Q, as The Rest Is Science does under R.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 08:48:47 -05:00
8512851e4b Podcasts sort by name with a leading "The" set aside (#481)
The feed list, the Podcasts shelf and the playlist dialog took the
server's order, which is by id, a slug of the title, so The Rest Is
Science was under T; the Directory sorted by title the same way. One
helper, nameOrder, now orders names with a leading "The" aside, case and
accents aside and numbers by value. renderFeeds sorts S.feeds with it, so
a feed a live update adds or renames takes its place as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 08:41:24 -05:00
aba6bd52a7 A pinned item's pin keeps its accent disc in the reader's floating actions (#480)
On a phone the floating actions (#456) make every button transparent so
the frosted capsule shows through. That outranked the pinned button's
accent background but not its colour, --ink, so the pin was drawn white
on a light theme's capsule. Pinned keeps its accent there now.

The #456 browser test checks the pinned button's background, and names
the actions it expects instead of counting them: since Up Next an
episode has a fourth, and the count passed only when the tests before
it left an item without audio first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 08:36:32 -05:00
7a059f4460 The app's wire code has Up Next's, playlists' and the shelf's messages (#473, #474, #476)
ipx.proto gained FeedRow.podcast, the playlist messages and Up Next's
queue on the listening branch without ios/scripts/proto.sh being run,
since this machine had no generator. It has one now: protoc from apt and
protoc-gen-swift 1.41.0 built from source in Swift's image, both in
/src/install.sh. directory.pb.swift comes out byte for byte as the Mac
made it, so the Linux build of the generator writes the same code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 08:06:38 -05:00
279510c1f3 Merge branch 'listening' 2026-11-19 07:54:43 -05:00
4120bcd369 Subscriptions to a feed no longer in the catalogue are dropped at start (#478)
The ways a feed leaves the catalogue now take its subscriptions with
it, but any path missed now or added later would leave the same
leftover: items in All Subscriptions with no feed to name them. Each
start now unsubscribes everyone from a feed the catalogue does not
have, after retire_stranded, unless the catalogue is empty, which is
likelier a fault than a server with no feeds.

The 41 already in production (all from the Hacker News top feeds OPML,
which drops feeds daily) were deleted by hand on 2026-11-19.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:39:35 -05:00
349426cbf9 ipx rm takes a feed's subscriptions with it (#478)
Removing a feed from the catalogue left whoever subscribed to it
subscribed, the same leftover a list's dropped feed made: All
Subscriptions listed its items with no feed to name them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:39:35 -05:00
6939fd1dcc A feed an OPML drops takes its subscriptions and is not scanned again (#478)
On 2026-11-18 a scan's OPML sync dropped sciencedaily-latest-science-news.
drop_managed deleted the feed and its items but left its subscriptions,
and the scan, which had the feed in its list of feeds due, read it again
later in the same run and stored 60 items. The feed was then in no
catalogue but still subscribed to: All Subscriptions, which reads
subscriptions, listed its items, while the feed list, which reads the
catalogue, left it out, so the page had no name to put beside them and
sharing one answered 404.

drop_managed now deletes the feed's subscriptions too, and sync_group
returns the ids it dropped so the scan skips them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:39:35 -05:00
9c9c513419 The media handler's impossible error is matched as one (#479)
rustc 1.100 knows serving a file cannot fail (the error is Infallible)
and called e.to_string() an unreachable call, which -D warnings made
the pre-commit hook refuse for every commit touching ipx's Rust.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:39:35 -05:00
d5037fb76d Subscriptions to a feed no longer in the catalogue are dropped at start (#478)
The ways a feed leaves the catalogue now take its subscriptions with
it, but any path missed now or added later would leave the same
leftover: items in All Subscriptions with no feed to name them. Each
start now unsubscribes everyone from a feed the catalogue does not
have, after retire_stranded, unless the catalogue is empty, which is
likelier a fault than a server with no feeds.

The 41 already in production (all from the Hacker News top feeds OPML,
which drops feeds daily) were deleted by hand on 2026-11-19.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:39:00 -05:00
c191357442 ipx rm takes a feed's subscriptions with it (#478)
Removing a feed from the catalogue left whoever subscribed to it
subscribed, the same leftover a list's dropped feed made: All
Subscriptions listed its items with no feed to name them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:33:53 -05:00
02d485cd10 A feed an OPML drops takes its subscriptions and is not scanned again (#478)
On 2026-11-18 a scan's OPML sync dropped sciencedaily-latest-science-news.
drop_managed deleted the feed and its items but left its subscriptions,
and the scan, which had the feed in its list of feeds due, read it again
later in the same run and stored 60 items. The feed was then in no
catalogue but still subscribed to: All Subscriptions, which reads
subscriptions, listed its items, while the feed list, which reads the
catalogue, left it out, so the page had no name to put beside them and
sharing one answered 404.

drop_managed now deletes the feed's subscriptions too, and sync_group
returns the ids it dropped so the scan skips them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:30:52 -05:00
7a3e3b4c63 The media handler's impossible error is matched as one (#479)
rustc 1.100 knows serving a file cannot fail (the error is Infallible)
and called e.to_string() an unreachable call, which -D warnings made
the pre-commit hook refuse for every commit touching ipx's Rust.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 07:30:49 -05:00
bd7452db8f Now Playing covers the feeds and the list, not a row above them (#475)
As a grid item of #shell the sheet took a row of its own and pushed the
sidebar and the list into a second one; it is laid over the shell instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:57:38 +00:00
02ee6d74c1 Smart playlists (#476)
A playlist is the episodes of the podcasts chosen, those set to play first
ahead of the rest, newest or oldest first, unplayed only or all, kept up to
date by itself (table `playlists`, /api/playlists). It sits in a folder of its
own in the feed list, as Signals do. Played from one, an episode goes on to
the playlist's next once Up Next has nothing.

The priority ids are written into the ORDER BY, which the page query uses
twice, so they are quoted there rather than bound; they are also only ever
feed ids this person subscribes to.

The folder row first borrowed Signals' `sigs` class, which the tests use to
mean Signals' folder; four Signals tests failed until it had its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:54:19 +00:00
2faca684da Now Playing: a full view of what is playing (#475)
Tapping the player bar, or Enter on it, opens a sheet over the feeds and the
list: the episode's artwork large, its podcast, its show notes and Up Next.
The bar stays below it with the controls, so there is one set of them rather
than a second kept in step. Chapters are left for #477: nothing reads them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:40:02 +00:00
1fb1edd6b0 Podcasts shelf: your podcasts as their artwork (#474)
A place beside Up Next listing every feed with audio or video as a grid of
its artwork, with how many episodes are new, as Overcast's home screen
does. It is drawn from the feed list the page already holds; the feed list
gains `podcast`, an EXISTS per subscription over enclosures, which stops at
a podcast's first episode and is one index probe for a feed with no files.
Its cost on production's database is not measured: the EXPLAIN was not run.

The iOS app's generated messages (ios/Sources/Wire) are not regenerated:
there is no protoc here. Nothing in the app reads the new fields, and a
proto3 reader skips a field it does not know.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:37:53 +00:00
c65b80a06c Up Next: a queue that plays on by itself (#473)
Playing was one episode at a time: when one ended nothing followed. Up Next
is a per-account queue on the server (table `queue`, GET and PUT
/api/queue), so the phone and the browser share it. The page adds to it from
a row or the reader, reorders it by drag or arrow keys, and plays the next
when one ends; what is playing leaves it as it starts, as Overcast's does. An
episode 90% played leaves it on the server too, which covers the phone
playing on while the page is frozen.

The iOS app is told what follows (`{t:'next'}`, gated on the app saying it
can) and starts it at the end of an episode; the page takes it up through
nowPlaying as it does the car's pick. The Swift is not compiled here.

The page stub answered every unknown address with [], whose `.entries` is
Array.prototype.entries, so the queue read a function as its list; it now
answers /api/queue as an entry list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:31:40 +00:00
2ebe77b21e A search on Postgres starts from your feeds, not every feed's matches (#472)
After #459 a common word still took about 2 s: "apple" matched 61,674
items across every feed on the server, Postgres re-read each to confirm
the trigram match, and only then joined to the 1,151 in the searcher's
own feeds (EXPLAIN on production, 2026-11-17). The subquery
`e.feed_id IN (SELECT ... FROM subscriptions ...)` hid the feed list
from the planner, so the trigram index was always its way in.

Given as `e.feed_id = ANY(ARRAY(SELECT ...))`, the planner sees the
feeds and chooses per search: for "apple" this person's 20,152 items by
entries_seen, count 1.5 s to 0.38 s and the page of 50 1.1 s to 0.52 s;
for "kubernetes" still the trigram index, 21 ms; "the" 141 ms. Only for
a search, so ordinary lists keep their plans, and only on Postgres:
SQLite has no arrays and keeps the IN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:14:16 +00:00
54bfa5faf6 cargo deny passes: the SQLite advisory recorded as assessed (#467)
RUSTSEC-2026-0459 is SQLite before 3.54 returning stale page-cache memory
when it opens a database with a -wal file of another page size, which
needs a crafted pair of files someone else wrote. ipx opens only its own
state.db in its own data directory, and production runs on Postgres.
Its fix, libsqlite3-sys 0.39, is out of reach: sqlx-sqlite 0.9.0, the
latest, pins it below 0.38, and sea-orm 2.0.4 is on the same sqlx.

Ignored in deny.toml with that reason, as RUSTSEC-2026-0293 is, so a
new advisory fails the check again instead of hiding behind this one.
#467 stays open until sqlx can take the fix and the ignore comes out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:08:37 +00:00
9035306e22 A stuck scroll's report says where the drag began and who held it (#450)
Three scroll_stuck reports (2026-11-11, 11-12, 11-16) show a reader that
would not move with nothing wrong in what they record: no layer over it,
nothing inert, no transform, overflow auto. They started on the text (p,
a span in a pre, an image), not the left edge the swipe code cancels.

The report now also says where the finger began (x), how many touchmove
events the page saw during the drag (none would mean the browser kept
the gesture, as a scroller inside the text can), whether the touch was
cancelled, and how long since the reader was last slid across by a
swipe, which is the one thing a swipe changes on it and a suspect for
WebKit losing the scroller. The next report decides the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:39:34 +00:00
b046e66e54 Search reads items' plain text, trigram-indexed on Postgres (#459)
A search on All Subscriptions took 4.5-5 s: the page and its count each
matched lower(title) and lower(description) with LIKE '%q%' over every
entry, a parallel seq scan reading 554k buffers, about 4.3 GB, nearly all
of it descriptions' HTML in TOAST (EXPLAIN on production, 2026-11-14).

entries.search_text holds the title and the text with its markup taken
out (an image's alt and title kept, as Signals read them), lowercased
and cut at 4,000 characters; a pg_trgm GIN index on it keeps a part of a
word finding the word (#296's meaning). Chosen over a trigram index on
the HTML itself, several GB on the shared Postgres, and over full-text
search, which matches whole words only.

A new item gets its search text as it is stored. search.rs fills in the
rest behind the daemon, 500 at a time, and makes the index after,
CONCURRENTLY so scans go on, again if a build was cut off. A scan that
changes an item's title or text clears its search text for that pass to
make again; until then, and for every item stored before this, a search
matches it the old way, through a partial index on the ones without.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:34:01 +00:00
0cafe02599 Dependencies past eight of nine published advisories (#467)
ammonia 4.2.5 (mutation XSS through SVG and MathML, RUSTSEC-2026-0533),
pulldown-cmark 0.13.6 (wikilinks, 0414 and 0433), tokio 1.54.1
(AsyncFd, 0386), and async-compression 0.4.52, which let zstd go to
0.14.4 (0391), with zstd-safe 8.3.0 and zstd-sys (0398, 0403, 0410).

libsqlite3-sys (0459) stays at 0.37: sqlx-sqlite 0.9.0, the latest,
pins it below 0.38, so it waits on sqlx. Production runs on Postgres;
SQLite is the sample compose file's, the tests' and the load tests'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:04:41 +00:00
f652e6906b Swiping between items shows the next one's picture with its text (#471)
The preview a swipe draws beside the reader was built as the drag
began, so its pictures started loading then: its text showed first and
the picture popped in a moment later, flashing and pushing the text
down under the finger. Reported from the iOS app on an item with a
picture at its top.

The pictures of the items either side of the one open are now fetched
and decoded when it opens (a few each, parsed with DOMParser, which
loads nothing itself), so the preview draws them at once. And the end
of a swipe keeps the preview over the reader until the new item's
pictures are decoded, at most 300 ms, instead of swapping in the same
moment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:52:44 +00:00
Ray Slakinski
2b06db9d26 iOS: Sources/Wire regenerated from ipx.proto as of #470, comments only (#469)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:44:39 -05:00
Ray Slakinski
0fe2bf90ab iOS build 15 to TestFlight: protobuf to ipx (#469)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:44:26 -05:00
236bd02d88 Answers in protobuf from generated structs, and the page reads them (#470)
ipx-wire converted every protobuf answer at run time through
prost-reflect and serde_json::Value, so protobuf cost more than the JSON
it replaced: decoding 1,488 feeds took 1.50 ms that way against 0.37 ms
for serde_json and 0.09 ms for prost's own structs, and GET /api/feeds as
protobuf answered about 4 ms after JSON.

build.rs now generates those structs (prost-build from protox's
descriptors, still no protoc). An answer's JSON goes straight into its
struct with serde and out with prost, byte for byte what the runtime
path wrote (a test says so); bodies holding a google.protobuf.Value keep
the runtime path, as they are only ever read. ipx's calls to the
directory and ipx-play build and read the structs directly, through
From conversions beside the directory's own types.

The page asks for protobuf too, to see what it does in practice. It
reads it with web/src/wire.ts, about seventy lines and no library:
protobufjs alone was larger gzipped than all protobuf saves the page.
build.mts reads the .proto files into a table for it, and the answer
names its message in its Content-Type, so the page keeps no table of
routes. An answer of null stays JSON, since the empty message would be a
feed row of defaults. The offline worker decodes a kept answer to mark
what was read offline, and hands the page JSON.

The decoder's test caught `pos += varint()[0]`, which adds the length
to pos as it was before the varint was read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:21:41 +00:00
Ray Slakinski
baa6661622 iOS app asks ipx in protobuf, not JSON (#469)
The badge's and CarPlay's reads (/api/feeds, the entry lists) and the
player's writes (position, flags) now go as application/x-protobuf, the
messages generated from crates/wire/proto by ios/scripts/proto.sh into
Sources/Wire, committed so the build needs no protoc. SwiftProtobuf is
pinned to the generator's version, 1.41.0, whose code refuses another.

A read whose answer is not protobuf counts as no answer: a server from
before #465 answers JSON whatever it is asked, and JSON can decode as a
message of nothing, which would have set the badge to zero.

The outbox keeps its stored key, `json`, for the body, and marks the
new writes protobuf, so places saved offline by an older build are
still sent, as JSON.

Built for the simulator with Xcode 27.2; not run against a server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:00:10 -05:00