The page named an item its feed gave no title (the first 120 characters of
its text, else its file's name) every time it drew one, so the iOS
widget, CarPlay, search and Signals never saw a name, and the list had to
carry each item's whole text to name the untitled ones (#501).
The feed parser now names them the same way as it reads a feed, for ipx
and the directory alike, and ipx names the untitled items already stored
once, in batches, before making search text, which the name goes into.
The reader and the directory's preview leave off a title that is only the
opening of the text below it, as they did for an untitled item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
All Subscriptions' Unread page spends 170-210 ms in its 'page' step one
time in ten, where the query itself takes 24-31 ms on production and the
pool's wait metric stays under 5 ms. The step now carries wait_ms and
query_ms, the same split #367's metrics make, so a slow trace names which.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
The length under the title gave podcast rows a second line the
articles around them do not have, and looked out of place however it
was aligned. The reader shows it; wider screens keep it in the row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
Every scroll_stuck report since the added fields was a short drag over
text in a reader whose content had just been swapped, with nothing over
it, nothing inert and the touch left alone by the page: iOS kept the drag
and did not scroll. That fits WebKit keeping an overflow box's scroller
sized for what was there before. Overflow is taken away for two frames
after each open, and after a stuck drag is caught, so the scroller is
built again; the report now says how long since the last one, which tells
whether this freed it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
The line under an unread title (an episode's length) started under the
unread dot, and the date was centred on the row, so a two-line row's date
sat between its lines, off line with every other row's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
The count under the list summed every feed's unread, feeds hidden from
All Subscriptions (#288) included, and said 95 where the header and the
list said 23. It uses unreadInAll, as the header does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
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
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
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
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
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
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
#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
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
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
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
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
#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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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>
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>
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>
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>
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>
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>
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>