Commit Graph

708 Commits

Author SHA1 Message Date
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
a96be2f14c build-image.sh refuses under 6 GB available, not 9: the cap alone
Tower sat at 8.6-9.1 GB available all evening and no build could start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:35:12 +00:00
c0998f1ac7 Protobuf beside JSON in ipx's, the directory's and ipx-play's APIs (#465); ipx's build touches crates/play (#466)
A client sending Accept: application/x-protobuf gets protobuf, and one
sending Content-Type: application/x-protobuf may send its body so; JSON
stays the default, so the page, the TUI and older iOS builds see nothing
new. ipx's own calls to the directory and ipx-play now go in protobuf.

The handlers are untouched. A new crate, ipx-wire, holds the .proto
files (compiled by protox in build.rs, so no protoc anywhere) and one
layer, negotiate, that converts JSON at the edge through prost-reflect,
by a table of each route's messages. Writing prost structs beside every
serde one would have doubled each type and every handler.

Protobuf cannot tell absent from empty or from null, and the PATCH
bodies depend on that: an Option<Vec> left out leaves the list, an empty
one clears it, and null clears a folder. So a list in a body is a
one-field message (absent or present), and null-to-clear is a
google.protobuf.Value. Numbers in a Value come back whole, or 3.0 would
not read as a usize.

Debug builds convert every JSON answer strictly and answer 500 for a
field missing from the .proto or a route missing from a table; the cargo
tests and the browser suite (125 tests) ran clean that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:23:06 +00:00
2671d13489 Browser suite: ipxd list, a feed that moves for good, Atom with a bare ampersand (#463)
API coverage 78.0% to 80.0% (9174 of 11467 lines): follow_move and the catalogue's list,
and the parser's retry of an escaped Atom feed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:51:04 +00:00
b22016cbe5 Browser suite: feeds in every shape, a feed that starts failing, ipxd user (#463); coverage build's stylesheet named by its own hash (#464)
Atom, RSS with a bare ampersand and the iTunes and Media RSS fields, WordPress.com's posts,
and replies that are no feed are added through the API; a fixture feed turned 404, 403,
402, 500, a sentence, a web page linking its new address, garbled, a redirect loop and a
dropped connection says each, and after a day (error_since set back in the suite's SQLite)
in words, with the page's banner; ipxd user's commands and their refusals. API coverage
76.5% to 78.0%: failure.rs 12% to 91%, parse.rs 56% to 92%, cli.rs 44% to 86%.

#464: with IPX_COVERAGE=1 the page named app.css by the hash of it unminified while the
build wrote it minified. The worker's check from #449 reloaded the page for it, and its
throttle then swallowed the reload the #449 test waits for, which failed in every coverage
run. buildStyle now defaults to the page's choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:12:44 +00:00
eda77e87c7 Ask in the page's own dialog, not confirm(), which the iOS app answered Cancel (#462)
Deleting a downloaded file from the iOS app did nothing: no DELETE reached ipx-web or ipx.
WKWebView answers confirm() Cancel without showing it unless the app implements the panel,
which 614f270 does (#453), but only once the app is rebuilt. ask() is a <dialog> of the
page's own, in the top layer, so it opens over a dialog already up (the file menu, Settings)
and leaves it as it was, and Escape answers it alone. Every confirm() in the page and the
admin page goes through it; the tests answer it rather than the browser's dialog, and the
warning before sharing a feed with its key in the address, untested before, now is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 23:32:15 +00:00
d1ba83bb7a ipx-play's metrics on 9191: 9189 is hnopml's (#458)
5d0ff1a put ipx-play's /metrics on 9189, but hnopml, in the same
compose project, has published 192.168.1.130:9189 since 2026-11-12 and
Prometheus scrapes it there as job="hnopml". Deployed as written,
ipx-play's port would have clashed with it. 9187 to 9190 are ipx, the
directory, hnopml and ipx-web; 9191 is free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:11:51 +00:00
614f270a90 iOS app: the page's confirm() is asked, not answered Cancel (#453)
WebViewController is the web view's WKUIDelegate but had no confirm
panel, so WebKit answered every confirm() false at once and showed
nothing: the page's nine confirm() calls, deleting a file and sharing a
Patreon address among them, could never go ahead in the app. It now
shows an alert with Cancel and OK. With another alert already up it
answers Cancel, as before, since one cannot be presented over the other.
The page has no alert() or prompt(), so those panels are left out.

Not compiled here: the Swift builds only on a Mac with Xcode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:08:43 +00:00
0222c0b69a Artwork that cannot be shown is not fetched again every hour (#448)
/api/art remembered a failed image for an hour, whatever the failure, so
an image that could never pass was fetched again on the next view after
that. In 2026-11-09..13, five images over the 20 MB limit were fetched
146 times, each read 20 MB chunk by chunk before being refused, about
3 GB for nothing; a 400 from b2c-contenthub.com was asked for 34 times.

Now a Content-Length over the limit is refused before the body is read,
and a failure that will still hold tomorrow is remembered for a day: a
4xx other than 408 and 429, or ipx's own refusal (too large, not an
image). Timeouts, 5xx and dropped connections still retry in an hour.

JPEG XL, which shkspr.mobi sends as application/octet-stream, was
refused as not an image; its two signatures are sniffed now, and Safari
shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:04:14 +00:00
f9f50fcf07 reap --dry-run says what would go, not that it went (#461)
A dry run printed "deleted <path> (N MB)" for every file and "deleted N
old file(s)" at the end, word for word a real reap, of files it kept:
Reaped and ReapDone carried no flag to say otherwise. Both now carry
dry_run (serde default false, so an older message still reads), and the
words are "would delete".

Found writing the browser suite's first test of retention, which ran on
the daemon's own clock and nowhere in the suite: over a tiny quota, a dry
reap lists the downloads and leaves them, and a reap with no limits
deletes nothing and only tidies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:59:02 +00:00
61c38bacc1 Browser suite: every service's /metrics, scraped as Prometheus does
Nothing in the browser suite asked ipx, the directory or ipx-play for
their metrics, though production's Prometheus scrapes all three every
15 s and the dashboard and alerts go blank if one stops answering. The
suite's servers get metrics ports (8799, 8797, 8790) and one test reads
each gzipped, checks every sample line is one Prometheus can parse, and
looks for the series that show it works: ipx's request histogram with
the route just asked for, the directory's snapshot from ipx, ipx-play's
build. ipx's metrics.rs went from 9% to 86% of lines run by the suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:58:55 +00:00
373f862588 A page older than its script is loaded again, not run with it (#449)
Safari on a Mac threw at load on 2026-11-10: the script wired #sleep,
which the page it ran in did not have. #sleep and its script came in
together on 11-08, so the page was older than the script. The service
worker answers a navigation it cannot fetch with the page it kept last,
here one from before 11-08, and that page asked for its script by the old
hash; by then the network answered, and Caddy, which ignores ?v=, sent
today's app.js. The worker even kept it under the old name.

Every ?v= is the first 12 hex digits of the file's SHA-256, so the worker
now checks what it fetched against the name. On a mismatch it does not
keep or give the file, and loads the page again from the network, at most
once in 30 seconds so a page still unreachable is not reloaded round and
round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:46:49 +00:00
abee943bf5 One place to get an episode's file where you are (#457)
Getting an episode onto a phone took two buttons in two states: download
it to the server, wait, then keep it on the device, beside Save to this
computer, Share and Delete, five buttons that did not say where each
copy went. Now a file has one button that brings it to where you are.
On a phone or in the iOS app it ends on the device; when iPX has not got
the file yet, iPX fetches it and the device's copy follows once iPX says
it is done (remembered in localStorage, so a page closed meanwhile
catches up when a list next shows the file). On a computer it has iPX
fetch the file, and with iPX's copy there saves one. A line beside the
size says where the file is, and the rarer actions, two of them
destructive, are under a menu.

isPlayable is false for any file not on iPX, so the phone's button is
decided by playsKind, the same test without the path. download_done now
marks the file as on iPX in what the page holds, so the open file's box
changes at once rather than after the list is fetched again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVA8TdTxe556JB3sR1n
2026-11-14 03:42:16 +00:00
Ray Slakinski
5d0ff1ac57 ipx-play: metrics for Prometheus, a dashboard row and a down alert (#458)
ipx-play sent traces and logged JSON but served no /metrics, so nothing showed whether
shared links were opening or failing. It now serves them on metrics_bind (9189 in
production, off the tunnel's port), with the directory's histogram and /proc reading:
requests by method, route and status (by route, so each shared episode is not a row of its
own, and an unknown address is route=""), episodes shared, memory, open files, uptime and
version.

The iPX dashboard gets an ipx-play row, its warnings join the other containers' log panel,
and alerts.py fires when Prometheus cannot reach it. The prod-check skill and docs/play.md
name it, with the scrape job and the OTEL_RESOURCE_ATTRIBUTES tag the trace panels need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:08:31 -05:00