Repository navigation
Sync upstream Silo-Server/silo-server (843 commits) - #261
Merged
Merged
Conversation
…5412) * feat(nodepool): balance transcode node work by job kind Transcode selection picked the node with the fewest jobs in total, so a copy-only remux weighed the same as a GPU video encode. One node's GPU could saturate with encodes while another ran mostly remuxes. Each transcode node now reports active_jobs_by_kind (video_transcode, audio_transcode, remux, trickplay) on /health, which the API server stores in the node's last_stats. Placements name the kind of job they start, and the planner picks the node with the fewest effective jobs of that kind, then the fewest in total, then the shared-GPU tie-break. Prepared downloads are classed by the work they do, so a download that re-encodes video counts as a video transcode. A pick falls back to totals when any candidate reports no breakdown. * fix(nodepool): count prepared-track audio encodes and keep the kind breakdown A prepared download with a track layout encodes AAC for every audio track MP4 cannot carry as is, even when the top-level audio target is "copy". Both the API server's reservation and the node's count classed it from the top-level codecs alone, so it counted as a remux. Request.JobKind now checks the track layout, and both sides use it. A resource sample over the 32 KiB limit dropped active_jobs_by_kind with the dashboard numbers, so every placement the node was eligible for fell back to totals. The breakdown is now kept on its own. Docs: only playback placements apply the shared-GPU tie-breaker and soft affinity, and last_stats now routes on active_jobs_by_kind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(downloads): class audio-only preparations by their audio work An audio-only download can carry a video target (the original-quality transcode target doesn't check AudioOnly), but the prepared file maps no video for it. Request.JobKind counted it as a video transcode; it now ignores the video target for an audio-only request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Quick <31828688+Quick104@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…e work (Silo-Server#5439) * perf(imageutil): cap glibc malloc arenas and return memory after image work Caching the artwork of a newly added library drove the silo process to about 5 GB of memory on a 16-thread host and kept it there after the work finished, while the Go heap stayed near 200 MB. The memory sat in glibc malloc arenas: libvips and its codecs allocate pixel buffers with malloc on whichever thread runs the encode, every such thread gets an arena of its own (up to eight per core), and freed memory stays in its arena. A C constructor now limits glibc to two arenas, unless the operator set MALLOC_ARENA_MAX or the glibc.malloc.arena_max tunable. It has to run before the Go runtime starts: glibc fixes the limit once more than eight arenas exist, which already happened by the time a package init ran. When the image decode budget has been empty for five seconds, malloc_trim hands the freed pages back to the operating system. Measured on a 16-thread, 32 GB benchmark container adding a library of about a thousand files, against the stock binary in the same session: peak PSS of the silo process fell from 5.1 GB to 1.9 GB and memory after the scan settled from 4.9 GB to 0.4 GB. Scan CPU time (about 1,990 s) and the time to settle (about 220 s) stayed within run-to-run variation, and every cached image file was byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(imageutil): pin the idle release's delay and cancellation The idle-release test passed with the generation check removed or the delay halved: it called releaseIfIdle directly and waited on a shortened real delay. Run it in a synctest bubble at the real delay instead, so it fails unless a reservation taken during the delay, held or already released, cancels the pending release, and the release follows a whole delay of an empty budget. idleReleaseDelay becomes a constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(imageutil): keep the arena limit when an override is empty The constructor skipped the two-arena limit whenever MALLOC_ARENA_MAX was set or GLIBC_TUNABLES contained glibc.malloc.arena_max, including an empty value such as a template's MALLOC_ARENA_MAX=${MALLOC_ARENA_MAX:-}. glibc ignores an empty value, so the process ran with unlimited arenas again. Defer only to a non-empty MALLOC_ARENA_MAX or a complete arena_max tunable with a value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…Silo-Server#5446) * test(transcodenode): health counts an admitted start before it runs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(transcodenode): count admitted work in the health report A transcode node admits a new start under its job cap well before it counts the job in active_jobs: a RequireReady start waits for FFmpeg's first segment first. The API server stops counting its reservation once a health check is newer than it, so a check in that gap showed the node a job lighter than it was, and a burst of starts could all pick it. The health report now adds the admitted slots, by kind as well, read under the admission lock countJob holds while it moves a slot from admitted to counted, so a job is counted exactly once. The report's shape is unchanged, so API servers of any version read it. Fixes Silo-Server#5445 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(transcodenode): say what ActiveJobs and the health report count Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(transcodenode): report no jobs on a drained node Health read the job counts before the drain status, so a start admitted while the node finished draining could show a drained node with a job. Read the status first and report no jobs once it is drained: what a drained node admits is a start it is about to refuse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(transcodenode): keep counted jobs in a drained node's health Zeroing every count on a drained node could hide a session replacement the node had already counted. Leave out only the admitted slots, the starts a drained node is about to refuse, and say in the admin docs that the total and per-kind sums can differ while a job starts too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ources (Silo-Server#5380) * feat(apiv2): report Silo process and FFmpeg CPU percent in system resources GET /api/v2/admin/system/resources reported the Silo process's CPU only as lifetime seconds, and its FFmpeg children's as a sum over the ones alive at that moment, which falls whenever one exits. A monitor could chart host CPU but not Silo's own share next to it. The sampler now keeps per-sample baselines and publishes attribution.process.cpu_pct and attribution.children.cpu_pct, on the same 0-100 scale and against the same capacity as system.cpu_pct: the host's CPU count, or the binding cgroup quota. Each share divides the CPU used over its own window by that capacity over the same window, so a slow disk pass between the /proc/stat read and the process read doesn't skew it. Children are tracked by PID and start time, so a reused PID is a new process. A child the previous pass didn't see is credited its lifetime only when the kernel's boot clock says it started inside the window and it used no more CPU than the window could hold; otherwise it becomes a baseline, so a missed read never turns earlier work into a spike. The boot clock is read directly because lxcfs replaces /proc/uptime with a container's own. A share is omitted on the first passes, after a missed reading, when the capacity changes, and for children on a truncated pass. Attribution now samples before the GPU pass. GET /api/v2/admin/system/resources/capabilities gains process_cpu_percent. Both endpoints stay readable with admin:monitor:read. The fields also ride the shared attribution object into the proxy and transcode-node health, status, and nodes summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(nodemetrics): keep a child's CPU share through discovery gaps and delays A busy FFmpeg child that the kernel's children lists missed for one pass read as idle for that window and only re-baselined when it came back, and a slow discovery pushed the "born inside the window" cutoff later, so a child born early in the window went uncredited. Children in the CPU baseline that discovery missed but that still exist are now read anyway (sampleChildren still checks parent, name and start time), and the boot clock is read with the window's other end, so a new child counts when its start time is at or after the reading taken when the window opened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(nodemetrics): don't charge a child born after the window closed A child that started while discovery ran, after the window's closing boot clock reading, was credited its lifetime in the window that had already closed. A new child now counts only when its start time falls between the window's opening and closing readings; one born after the close becomes a baseline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(nodemetrics): list children before the CPU window's boundary The window's end was taken before child discovery and the child counters were read after it, so a discovery that took a different time from one pass to the next stretched or shrank the span the counters covered: a steady 12.5% child read 15% after a one-second delay. Discovery now runs first, and the window's end on both clocks is taken right before the process and child counter reads, so each window spans the same reads. A child born while discovery ran and missed by it is counted from its first reading on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(nodemetrics): describe which children the CPU share misses A child shorter than one window is counted if it is still alive at the next sample; what's missed is one that starts and exits between two samples. The FFmpeg match is a substring of the process name, and ffprobe runs are not among the sampled children. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(nodemetrics): leave out a child that started in the window-opening tick Start times and the boot clock both count whole ticks, so a child whose start tick equals the opening reading's may have started before the window and had pre-window CPU credited. The docs now also name the first window of a child that starts while children are listed as uncounted, and point to the cumulative silo_subprocess_cpu_seconds_total counter for completed children. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(nodemetrics): re-read a missed baseline child only while it is still owned FFmpeg A baseline child that renamed itself kept its lifetime, so the fallback re-add appended it and sampleChildren counted it as unavailable, which near the cap could also mark the pass truncated. The re-add now applies the same owner and name check as sampleChildren. The CPU share tests now place fixture children above PID_MAX_LIMIT so they cannot share a /proc entry with the test process, and check on every pass that an unmeasured share is left out of the JSON rather than sent as null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…esult (Silo-Server#5436) * fix(metadata): match a no-year movie folder to its only exact-title result A movie folder without a year, such as "Big Hero 6", stayed unmatched when the title search returned that one film: an exact title from one provider scores 63, below the lone-candidate bar of 70. The same result was accepted at 63 whenever a weaker second result trailed it by the tie window. Accept a lone candidate for a movie folder without a year when it is a dated provider film carrying the folder's exact title. Undated results, results without provider IDs, and series keep the 70 bar; series still fall back to episode validation. No-year ties between same-title films stay ambiguous. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(metadata): guard lone no-year movie matching and wake parked rows - Preserve an explicit movie year on yearless path alternates other than numeric_title so dated movies cannot bypass MatchRejectionYearMismatch via loneExactTitleMovie. - Skip sole_exact_title acceptance when a remote search provider failed transiently on the same attempt so partial searches retry instead of persisting a single surviving provider's result. - Strip only bracketed provider year decorations ("(YYYY)", "[YYYY]") in loneExactTitleMovie so undated folders do not match bare-year titles such as "Fantasia 2000". - Require a corroborating source directly in loneExactTitleMovie, update the stale comment above it, and bump movieMatcherRevision to 13 so already-parked no-year movies wake on upgrade. - Add unit and pipeline regression tests for each guard. Co-Authored-By: Gemini 4 Neon (Antigravity) <noreply@google.com> * fix(metadata): harden transient-error carry and numeric-title year guard - Classify pluginhost.ErrPluginUnhealthy as transient in hasTransientMatchError so a restarting metadata plugin blocks a lone-candidate match from a surviving provider. - Carry remoteTransientErr from primary searches into alternate-identity lone-match checks so an alternate cannot bypass an earlier transient error. - Emit and allow the yearless numeric_title alternate only when the parsed trailing number supplied the primary year (not a different folder year). - Fold stripBracketedCandidateYear into stripCandidateYearSuffix to avoid duplicating normalizeCandidateTitleForYear. - Split and expand pipeline regression tests for each case. Co-Authored-By: Gemini 4 Neon (Antigravity) <noreply@google.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Gemini 4 Neon (Antigravity) <noreply@google.com>
…n sessions list (Silo-Server#5385) * feat(apiv2): report each playback session's viewer egress on the admin sessions list Silo counts the bytes it serves each playback session across every API server and proxy node, but only the per-minute dashboard total reached an API, so a monitor couldn't split Silo's streaming traffic by local or remote, account, or device. GET /api/v2/admin/sessions?include_egress=true now adds an egress object to each row: the session's cumulative viewer bytes (hops between Silo's own nodes excluded), the publishers' capture time as measured_at, and a series token that changes when the set of servers counting the session changes. A client diffs observations within one series, ignores one that isn't newer than its baseline, and groups by stream_location, user_id and device_id. Egress is omitted, never zero, when the count is unknown: telemetry off, the merged view not built, its last refresh failed, the session's routes capped, no record, or a proxy node served the session while telemetry isn't shared through Redis. A stale or departed publisher changes the series of the sessions it served instead of blanking the list. session.* events never carry egress. The read uses the existing telemetry view cache. The rebuild now runs on its own context with its own timeout, so one reader's deadline or disconnect never fails it for others; the egress read waits at most 2 s, the projection is built once per refresh, and after a failed refresh the egress read serves the last view for one TTL. GET /api/v2/admin/sessions/capabilities gains egress, true when stream telemetry is enabled. Both routes stay readable with admin:monitor:read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(streamtelemetry): read the merged view through a deadline-honoring Redis client The view cache's rebuild bounds its Redis reads with a timeout, and the admin sessions list now waits on that rebuild, but the API passed telemetry the shared client whose socket reads ignore context deadlines and wait out the URL's read timeout, which may be unlimited. A stalled Redis could then hold the rebuild, and the list kept serving the last view. Telemetry now gets its own client that honors deadlines, as the other callers that bound Redis waits already do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(streamtelemetry): give a reader that gives up on a rebuild the older view The reader that started a rebuild and hit its own deadline got nothing, while a reader arriving moments later during the same rebuild got the older view marked stale. A monitor polling about once per TTL starts most rebuilds, so a slow Redis left its egress chart with gaps. A reader that gives up now takes the older view, stale, when there is one, and nothing only before the first view exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(apiv2): describe measured_at as the counting server's own capture time The egress field description and docs said a proxy node's measured_at is when the API server received the node's report. Proxy nodes publish their own snapshots through Redis with their own capture time; only transcode nodes report through the API, and their relay hops don't set measured_at. The text now says it is the counting server's capture time on its own clock, and puts the short-interval jitter down to the roughly once-a-second reports and small clock differences. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(streamtelemetry): keep session egress diffable across API servers Review fixes for the egress the admin sessions list reports. - LoadAll reads every publisher's snapshot in one transaction. Publishes could land between a plain pipeline's reads, so two API servers could build views that were each newer for one publisher and older for another; a client polling both saw bytes fall at a newer measured_at, rebaselined, and counted one publisher's bytes twice. - A session whose counting publisher captured further ahead of the view's clock than Freshness omits egress. Its measured_at came from that fast clock, and a client that took it as a baseline discarded every later observation until the other servers caught up. - The series description now gives the recipe in the docs' order: ignore an older measured_at first, whatever the series. Checking the series first let a replica with a view from before a series change rebaseline the client backward and count bytes twice. - The view cache clones and projects the view inside build, under its panic recovery, and installs BuildTook with the view. - The docs cover a rolling upgrade behind a load balancer, a proxy with telemetry off, and a restart a slow poller can miss. - The egress fixture case runs last again, after the case main added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…emo only Demo sign-in now opens the same login session the demo account's password opens, so the existing demo mode rules restrict it and nothing else changes for other servers. It works only while demo.enabled is on and demo.username names an enabled, non-administrator account; both settings stay operator-only. - Drop the demo session purpose, its migration and settings trigger, and the proxy, stream-token and playback bindings that carried it. - Add getDemoLoginCapability so clients can tell a public demo from any other server before offering the action. - Answer capability_disabled or capability_not_configured instead of a new problem type, so no new translation key is needed. - Document demo sign-in under Demo mode in docs/auth-api.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing demo sessions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(auth): add demo sign-in for the public demo server
…ilo-Server#5460) Promoting an account to admin kept its login sessions, and each one took the admin role at its next token refresh. On a public demo every visitor holds a session on the shared account, so promoting it would make every visitor still signed in an administrator. UpdateAdminAccount now treats a promotion like a password or enabled change: it revokes the account's sessions in the same transaction and drops replicas' compatibility sessions. Provider role mapping and owner recovery already did this. A demotion still keeps the sessions. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Pages and seeks over episode_catalog_entries now put OFFSET 0 inside the two parent-series checks (series in the library, parent is a series). Unfenced, PostgreSQL pulls them up into semi-joins and costs them as independent filters although nearly every entry passes both. For a small library, or a viewer with a rating or advisory-age limit, the estimate falls below the page size and the planner gathers and sorts every match instead of walking the sort index. The total keeps the unfenced WHERE, because counting a large library needs the hash joins the fence rules out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fenced read probes both parent checks for every entry it passes, so its cost grows with the offset. A seek or offset page deep into a large library went from a flat ~1.8 s hash join to 7.7 s at one million rows. Pages and seeks now use the fenced WHERE only when they read at most 1,000 entries; deeper reads keep the unfenced form, as before this PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngle EXISTS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ilo-Server#5510) In a window wider than the film, a 2.40:1 film's subtitles were drawn up to 1.35 times larger than a 16:9 episode's at the same size setting, because the font scale followed the picture's own aspect ratio. The scale now comes from the largest 16:9 frame that fits the player, so every film gets the same text size in a given window. A 16:9 episode keeps its current size in every window. Closes Silo-Server#5444
…ilo-Server#5469) * feat(directconn): let enrolled clients stream over a direct UDP path A native client that signs in with a login session can now enroll its engine, connect to the API host over UDP, and ask for playback on that path. The new operations live under /api/v2 and have no Jellyfin counterpart. Direct connections stay off until direct_connections.enabled is true. Enrollment. A device enrolls with its node key and gets a signaling ticket. The enrollment is a 10-minute lease. An account holds at most 32 unexpired leases, and a node key belongs to one device. The ticket is an HS256 token signed with a key derived by HKDF-SHA256 from the auth JWT secret, so no other token verifies as a ticket. Every ticket refusal answers 401 invalid_token. The ticket grants no authority beyond registration, netmap, and signal, and the engine never holds an access token. Enrollment and coordination state live in Redis when present, and in memory otherwise. In Redis, Redis time decides whether an enrollment or a registration is live, so replicas whose clocks differ agree on it. Withdrawal. An enrollment belongs to the login session that last enrolled or renewed it, and its ticket names that session. A View as user session cannot enroll or renew, and its capability document says it is not allowed, because several revocations that end such a session would leave the viewed account's enrollment in place. When another session of the account renews the same device, even with the same node key, the older ticket stops working for registration, netmap, and signal; a signaling stream already open under it lasts until that ticket expires. The server withdraws an enrollment when the device is forgotten, when the login session that issued it ends or an administrator ends a View as user, whatever device ID it named, when the account's password is reset, or when an administrator disables, signs out, or deletes the account. Deleting a profile withdraws every enrollment that records it; other profiles' enrollments stay. A password change that signs out the account's other sessions keeps only an enrollment that the changing session issued for the device it carries, and withdraws all others. When the session names no device, or the device cannot be read, the change withdraws all of them, and it withdraws any entry that names no readable issuer. Withdrawals for an ending session or a password change delete an entry only while it is unchanged since they listed it; a changed entry is read and judged again, up to three times, so a renewal in between by a session that the rule keeps is not undone. A replica that holds a withdrawn device's signaling stream closes it once the store confirms the withdrawal, on a sweep pass that runs at most 10 seconds after the previous one. A failed read leaves the stream for the next pass, and ticket expiry stays the backstop. Audit. The first enrollment of a node key for a device, a key replacement included, records the audit action direct_connection.enrolled with the device ID and node key, never the ticket. A renewal of the same key records none. When the row cannot be written, enrollment fails with 500 internal_error, the new entry is withdrawn, and no ticket is returned. Coordination. Registration, netmap, and the DERP signaling WebSocket run on the replica that holds the engine. Others answer 503 with Retry-After. Netmap calls hold for up to 25 seconds. The signaling stream has per-pair and per-connection byte and frame budgets. A capability document at GET /api/v2/capabilities/direct-connections carries the protocol revision, coordination URL, TLS pin, STUN servers, and the optional ACK decimation and receive-window advice. The capability document, enrollment, and these operations read no settings per request: they use the values the replica last read, and until its first read they answer 503 dependency_unavailable with Retry-After 5. Host entries. On Redis, the API host entry and its confirmations are written and removed only while the engine lease holds this process's presence ID, so a replica that lost the lease cannot replace or remove its successor's entries. A new engine removes the previous holder's host entry and confirmations before it publishes its own, and publishes nothing until that removal succeeds. When the HTTP/3 server stops on its own, the engine withdraws its host entry before it drains. Playback. startPlayback, replanPlayback, and the bandwidth probe take media_transport (regular or direct). The plan says direct only when the API host serves the media over a live, confirmed direct path. A device enrolled as direct_only never gets a media proxy origin. The serving host signs a short-lived connection receipt that names the account, device, host, and class. A probe result is recorded under that class, so a client cannot claim one. Only the replica that runs the engine knows the path generation, so another replica records a valid direct receipt under the receipt's key without that check. Media requests with no enrolled peer behind them get 421 before the router runs. The recorded playback attempt (playback_RecipeCard) carries media_transport and path_generation. The settings manifest moves to revision 31, which introduces playback.connection_path (automatic or direct_only). Telemetry. A session's transport strings are bounded: class and address family to 64 bytes, host ID to 256. Capture cuts them, and a record that holds a longer one is refused. Administrators. GET /api/v2/admin/direct-connections/peers lists the devices with a direct path to the answering replica's engine, so a replica that does not run the engine returns an empty list. The admin section shows them, and its labels come from translation keys. Deployment. docker-compose.advanced.yml publishes the direct UDP port with equal host and container ports, both set by SILO_NET_DIRECT_UDP_PORT (default 8094). Shutdown. Enrollment answers 503 once the server drains. Held netmaps wake at stop, and the engine closes streams and removes its host entry within the shutdown budget. A removal the store refuses because another process now holds the lease leaves that successor's entry and is not a shutdown error. Docs: docs/direct-connections-api.md and the architecture notes in docs/architecture/direct-connections.md. Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> * fix(directconn): ended sessions and store errors leave no enrollment Enrollment and revocation could leave a live entry behind when the login session ended mid-request, the store lost a reply, or a request was canceled. - Enroll reads the login session again after it writes the entry. An ended session withdraws the entry and answers 401 session_expired; a session that cannot be read answers 503 dependency_unavailable. The check runs past a canceled request. - A device write that fails as unavailable may have been applied, so Enroll withdraws the entry that write would have made. - Each write stores a random revision in the entry's policy. Withdrawals match it, so a failed audit or a lost reply never removes a later renewal that is otherwise identical. - PutDeviceReplacing returns the key it replaced in the same atomic step, so two enrollments that re-key one device each remove the key their own write replaced. The Redis script stores its result under the revision, so a retried write that Redis already applied reports the original replacement, not a renewal. - Revocations run on a context detached from the request, bounded to 10 seconds. After the last retry the selector judges the final read, so an entry another profile took over is skipped and the rest of the account is still withdrawn. - The coordination store uses the Redis client that honors context deadlines at the socket, so its 5-second read bounds hold when Redis stops answering. If the client cannot be built, enrollment stays off. - A failed confirmation set keeps the previous confirmation in the published set, so the next call retries it or clears it. The admin peers table renders device names with dir="auto" and endpoints left to right, so mixed-direction text no longer reorders. Docs: docs/direct-connections-api.md and docs/architecture/direct-connections.md describe the new refusals and withdrawal rules. Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> * fix(directconn): a direct_only device never gets a proxy route Review of the direct UDP path found native playback paths that skipped the direct_only rule, state that outlived the thing it described, and a keyspace scan on a shared Redis. This commit closes them. Direct-only rule. - Every native route compile now goes through deviceRouteRequestV3, routeCandidatesV3 and resolveRouteV3 in playback_route_v3.go, which clear ProxyAllowed for a direct_only device and for one whose state cannot be read. The rule used to live in node selection, so paths that only count or reuse a route (remux availability, HLS reuse, transcode rehome, identity routes, the probe redirect) could still choose a proxy shape. A forbidigo rule fails any other call to noderouting.Candidates or noderouting.Resolve in the native handlers. - A seek reads the device like any other replan. A seek of a session that plays over the direct path is planned without proxy shapes. - When the operator sets proxy_only egress for direct play, remux and video transcode, a direct_only device has no legal route, so a start or replan ends in the final routing_policy_unsatisfied before planning. When its state cannot be read, the answer is 503 dependency_unavailable with Retry-After and no stored decision, so the same replan request ID runs again once the store answers. The v2 playback adapter now sends Retry-After for any operation error that names one. - The pin that keeps a second planning pass on proxy egress no longer widens a workload the operator set to api_only. When the proxy is gone at commit, the request runs again once with no connection key and falls back to the API host, as prefer_proxy promises. - Proxy-origin recovery plans every pass for the API host, not only the transport step. A replan that leaves the direct path for the regular one keeps the failed recipe eligible, because the path failed, not the recipe. A replan to another version keeps the audio track the viewer chose at the index that version gives it. Connection limits and probes. - learned_limit=clear also removes the limit of the connection the start may be served over instead, so a direct start served by a proxy no longer leaves the regular connection's limit in place. - The bandwidth probe accepts an optional X-Silo-Device-Id header, so an enrolled device's probe is measured and receipted on its own path. A receipt is withheld when the direct path was replaced after the probe request arrived. Enrollment and the engine. - Enroll checks the household profile after it writes, as it checks the login session. A deleted profile withdraws the entry and answers 404 not_found; a profile that cannot be read answers 503. Server startup wires the check to the user store. - A renewal whose write replaces a key that another request stored in between is a key replacement and is audited. Enroll clears the audit marker the write stored until its own audit row commits. - Before a replica has read its settings, Device asks the store instead of answering "not enrolled", so a device another replica enrolled as direct_only is not planned as a regular one. - A restarted engine drops the previous engine's path records and confirmations, and a peer's Since is the time its path became direct. Redis. - DeleteHost reads a per-host sorted set of confirmation keys, silo:direct:confidx:<label>, instead of scanning the keyspace the store shares with other applications. The index is written in the same script as each confirmation, scored and pruned on Redis time, and expires with its longest member. Every script declares each key it touches. Admin. - The peers list falls back to the account itself for a username when the device inventory has no row for it, and its empty state says no devices are connected to this server. - The direct connections toggle stays disabled until the settings load, and a failed load shows a retry. New catalog keys: web.admin.settings.network.direct.connected.emptyOnThisServer and web.admin.settings.network.direct.loadError. The generated locale files come from a local sync of the catalog. Docs: docs/direct-connections-api.md, docs/playback-api.md, docs/architecture/direct-connections.md and docs/architecture/playback-protocol-v3.md describe the new rules. Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> * test(directconn): drop the live-Redis tests the engine lease hold breaks TestShutdownOrderRedis, TestShutdownReleasesLeaseWithOpenStream and TestDirectSignalingRedisRestart waited 10 seconds for the engine, but a fresh lease grant holds the engine off for the 90-second lease TTL, so against a real Redis each failed before reaching what it checks. Miniredis and in-process tests already cover the lease release on shutdown, the shutdown order and the open-stream deadline. The script now runs only the store tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> Co-authored-by: Quick <31828688+Quick104@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…top (Silo-Server#5403) An imported watch is skipped when history already has a row for the item in the same second, so a replay is not counted twice. That check ignored completion, so a partial stop earlier in the second kept the completion out: the item was marked played but history had no completed row. A partial row no longer hides a completion in its second. A completed row still hides either kind, and a replayed partial still matches any row. The Postgres and SQLite stores share a conformance test for this.
A series refresh merged every provider's seasons and episodes by number, so TVDB's arcs and TMDB's single long season were stitched into one list (Bleach got a 366-episode season 1 on top of TVDB's seasons 2-17). Now the first remote provider with episodes numbers the series; other providers only fill empty fields of episodes they share a provider ID with. A provider error no longer lets the next provider renumber the show.
…llows
Add media_folders.episode_order_provider ('tvdb', 'tmdb', or empty for the
Episodes chain order, which every library followed before). A series
follows the first of its enabled libraries, in library order, that picks a
provider, so libraries sharing a series cannot renumber it back and forth.
…order A refresh upserts episodes by number and never removes rows, so a series that changes numbering kept the rows of its old numbering. Before writing, a full series refresh now matches stored rows to the structure provider's episodes by provider ID and moves them to their new numbers, renaming composed content IDs so watch state follows each episode. A row in a moving row's way is parked at the end of its season. A row an earlier numbering left behind for the same episode merges into it: user state, files and library memberships move, the duplicate is deleted and the series' air dates are recomputed. Episodes of other providers are bridged to the structure provider's by shared ID, else by an air date both give exactly one episode, else by the same numbers on the same date. A bridged episode fills empty fields and lends its IDs, so rows learn their cross-provider IDs.
… a taken id Validated against Bleach in a review copy: the bridge now pairs episodes two providers air on the same day when both list a consecutive run, and pairs runs between, before and after matched neighbours when the counts agree, which catches air dates a day apart across time zones. One refresh now leaves Bleach with exactly TVDB's seasons and every file on its episode. A moving row whose composed id is held by a row outside the move takes a fresh id, as a re-anchored series' children do, instead of failing the renumber.
…sode A bridged episode filled empty fields with a fill-empty merge, which takes season 0 for empty: One Piece's "Dream 9" special (TVDB S0E39) took TMDB's season 15 and collided with S15E39, failing the renumber.
A renumber moves episode rows with their file links, so a file named S02E01 could ride its row to another season. After the rows move, every number-named file goes back to the episode its name gives, and a scanner placeholder in a moving episode's way, or emptied of its files, merges into the real episode with its watch state.
…he library editor
PATCH /api/v2/libraries/{id} takes episode_order_provider (tvdb, tmdb, or
empty for the provider order); a change queues a full metadata refresh that
renumbers the library's shows. The library editor shows the choice for
libraries that hold shows.
…ile order
A series can follow TVDB or TMDB in any of the provider's orders, shown in
the order's seasons or as one absolute season, with its files read in one
provider's default order. Each episode records the numbers its file name
carries in that order, and files link and relink by them. An order with
fewer seasons removes the season rows it empties.
GET, PUT and preview at /api/v2/admin/items/{id}/episode-order read the
choice with each provider's orders, save it and queue the renumbering
refresh, and show the seasons and file fit an order would give.
Builds against the local silo-plugin-sdk episode-orders branch (go.work).
…an episode order preview
The series page's Manage menu opens an Episode order dialog: library default, TVDB or TMDB, any of the provider's orders, the season layout and the order the files are named in, with a live preview of the seasons, where each file lands and which files no episode takes. Admins and metadata curators see the show's order under its seasons.
The Custom seasons layout places each episode where an admin put it, keyed
by the structure provider's episode ID so it survives order and number
changes. Seasons can be added, renamed, described, reordered and deleted;
a custom season takes the order's season details by number unless the
admin wrote its own. Episodes that air after the arrangement was saved go
to the end of the last season and are marked in the arranger.
GET and PUT /api/v2/admin/items/{id}/custom-seasons read the arrangement
(or a starting point from any order) and save it. The web arranger opens
from the series page's Manage menu or the Episode order dialog.
…rver#5139) Each trigger row's Max runtime label now points at its number box through an id from useId, so screen readers announce the box by the label and clicking the label focuses it. Closes Silo-Server#4744 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(web): use the catalog's bitrate unit on Activity formatSessionBitrate now formats through web.common.format.bitrate.mbps and .kbps, so French shows Mbit/s and Russian Мбит/с. Spaces in the result become no-break spaces to keep the Silo-Server#4972 wrap fix. Closes Silo-Server#4981 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(web): keep localized Activity bitrate units together Co-Authored-By: gpt-6.2-sol <noreply@openai.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: gpt-6.2-sol <noreply@openai.com>
Podcast shows come back from the mixed catalog search, and the item type label helper had no case for them, so they showed the raw value "podcast". Map it to a new web.search.typePodcast key and add podcast to the BrowseItem type union. Closes Silo-Server#5091 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Codex gpt-6.2-sol <noreply@openai.com>
…sis (Silo-Server#5470) * fix(web): end a search placeholder too long for its box with an ellipsis On a phone in a longer language, search boxes cut their placeholder off mid-word with no ellipsis: in German at 393 px the Admin Users search read "Nach Benutzername oder E-Mail such". The shared Input set no text-overflow, and only Silo-Server#5057's diagnostics filters had one. The shared Input now sets text-overflow: ellipsis while its placeholder shows (placeholder-shown:text-ellipsis), which covers every search box built on it, and the raw input of the Watch Together browse shelf gets the same class. A typed value is unaffected, so a long path or URL keeps its end visible. Closes Silo-Server#5059 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(web): say what the Input placeholder ellipsis leaves alone A blurred typed value shows its start and clips its end with or without the ellipsis, so the comment's claim that a typed path keeps its end visible was wrong. Say instead that typed values keep the plain clip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Quick104 <31828688+Quick104@users.noreply.github.com>
…er#5541) Infuse lists /Plugins and /Packages while adding a Jellyfin server and fails the add when either request fails. Jellycompat registered neither route, so both answered 404 and Infuse could not add Silo. Both routes now return an empty array to any signed-in user, as /SyncPlay/List does: Silo has no Jellyfin plugins, and every compat user already reports IsAdministrator false. Lowercase and /jellyfin-prefixed paths reach them too. Unauthenticated requests get 401.
…-Server#5547) * fix(web): finish a Preferences removal another tab already made Removing a setting on an admin user's Preferences tab after another admin or tab removed it got a 404, showed "No value is set at this scope" and kept the row on every retry. A 404 means nothing is stored at that identity, which is what the removal asked for, so it now succeeds: the row (and its mirrored half) leaves the list and the list refetches. Closes Silo-Server#5519 * refactor(web): share the delete that treats an already removed setting as done Both the Preferences removal and the single device override reset now use one helper for the 404 handling, so users.ts keeps its size.
…ts (Silo-Server#5549) Multi-line fields in a sign-in provider's setup form drew a raw textarea with the faint border-border color, while the single-line fields use the input border. Render them with the shared Textarea component so they share Input's border, fill and focus ring, in the default theme and with high contrast on.
…the watchlist (Silo-Server#5594) GET /api/v2/favorites and GET /api/v2/watchlist copied an episode's stored title as is, so an episode with no title (for example after an admin clears it in the metadata editor) came back with "title": "". Browse, home rows and the episode detail already show "Episode N" for it. Episode.DisplayTitle now holds that fallback, and both the list cards and the episode detail read use it. Closes Silo-Server#5529
…erver#5607) The library headings on the restore Choose step already use the foreground color, so the disclosure's hover color changed nothing. The count now brightens on hover, as the step's other disclosures do. Closes Silo-Server#4733
…er (Silo-Server#5608) The Position diagram drew the positions you can pick as faint grey fills, 1.5:1 against the panel. Unselected positions and the reserved top-right corner are now outlined in --input, the theme's control edge (3.2:1, 4.6:1 with high contrast). Only the selected position is filled, so it stays distinct with any admin accent, including the slate preset that a grey fill would match. Closes Silo-Server#4915
…s ring gap (Silo-Server#5609) The padlock beside each field label was about 12x12 px unlocked, under the 24 px minimum target, and the browser outline sat on the icon. Pad it to a 24 px box with negative margins so the label row and the icon's position stay the same, and draw the shared focus ring around the padded box. On touch screens the hit area also reaches 44 px wide and into the space above the label, but not down into the field.
…rast (Silo-Server#5610) The green last-seen time on admin Devices used the raw success colour at 80% opacity. High contrast lightens the row backgrounds but does not boost --success, so the time fell to about 4.1:1 on a hovered row and 3.8:1 on the selected row. Use the success label token, which high contrast boosts for exactly this case. Closes Silo-Server#4831
…lo-Server#5612) On compact posters at 1024 px with the sidebar open, on 280 px phones, and under larger text sizes, a personal collection card is too narrow for the drag handle and the menu chip side by side, so the two overlapped, and both covered the title on a card without artwork. A card too narrow for both chips and a 4 px gap now shrinks them to fit the top edge, never below 24 px. Its placeholder keeps the title below the chips: under 6 rem the title keeps two lines, and under 4.5 rem the person icon goes, so the title is never cut at the poster's bottom edge. The clamped title takes data-clamp-cut from useClampCut, as the i18n rules ask.
…rver#5640) * fix(web): keep red error messages readable on their red tint Error boxes drew text-destructive on a 10% destructive tint. With high contrast off that measured 4.10:1 on the card surface (the sign-in error box) and 4.50:1 on the page background, below or at the 4.5:1 floor for normal-size text. Use text-destructive-label, as the status badges do since Silo-Server#4888: 5.52:1 on the card and 6.05:1 on the page. High contrast is unchanged, since the label is the boosted red there. Covers the sign-in and account sign-in errors, the policy editor, simulation and vendor viewer errors, the request server and rule form errors, the compatibility proxy error, the autoscan poll event error detail and the autoscan webhook failure title. Closes Silo-Server#4892 * fix(web): keep the autoscan connection test error readable The failed result in Admin > Settings > Autoscan > Add connection drew text-destructive on its red tint: 4.50:1 rounded, 4.497:1 measured. Use text-destructive-label like the other red message boxes (6.05:1).
…ered rows (Silo-Server#5641) The Autoscan Activity badges and count labels used Tailwind palette colours (emerald, amber, sky) on a 10% tint of themselves. With high contrast on, a hovered poll row put Success at 3.4:1 and Unresolved at 3.8:1. Draw them with the success, warning and info label tokens, as the play-method tags and the other admin status badges do. Closes Silo-Server#4894
…ilo-Server#5642) * fix(web): keep the audiobook mini bar beside the collapsing sidebar The mini bar starts at --app-sidebar-offset, which snaps to its new value when the sidebar collapses or expands on a title's page, while the sidebar itself animates for 300 ms. The bar jumped at once and covered the foot of the still-wide sidebar, or left a gap on the way back. Give it the shared follows-sidebar-collapse hold that the impersonation banner and the background watch bar use. The bar is pinned to the sidebar's edge, so the default 196 px hold is the right distance. Closes Silo-Server#5018 * fix(web): skip the sidebar-follow hold when the rail is hover-expanded Leaving a title's page while the rail is hover-expanded keeps the sidebar at 260 px, so nothing slides. The expand hold still started follows-sidebar-collapse chrome at the rail's edge and slid it across the already-wide sidebar; the audiobook mini bar painted over its foot. AppSidebar now marks the root while it floats expanded over a title's page, and the expand hold skips that state.
…Server#5643) The breadcrumb above a task's title was a single flex row that could not wrap. At Extra large text in French on a 360 px phone the task name ran past the screen edge and was cut off. The row now wraps, and each chevron stays with the crumb that follows it.
…uage (Silo-Server#5023) * fix(web): pick backup and restore wording for the exact number of items Seven backup and restore messages in the web admin chose "it" or "them" with a plural on a count they never print. In Russian, Ukrainian, Croatian, Lithuanian and Latvian CLDR's "one" form also covers 21, 31 or 101, and in Slovenian 101, so 21 omitted accounts read "its data is too large" and the Restore page offered "Show it" for 21 items. The callers now pass exactAmount(count), and the catalog selects on exactlyOne, exactlyTwo (for the Slovenian and Arabic dual) or other. English is unchanged. docs/architecture/i18n.md and the web i18n README now say when a web message selects on the exact amount instead of a plural. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(web): show unmatched items' type and status in the interface language The admin Libraries page's Unmatched Items section printed each item's content type and match status as the raw API values (movie, unmatched, pending, ambiguous) in both the table and the card layout. The type now uses the shared item-type labels and the status uses new catalog keys; a value the client has no label for still shows as sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(web): wrap a long item type in the unmatched items card layout Translated types such as "Электронная книга" ran past the card edge on a phone-width screen with large text, because the Type badge kept the badge's no-wrap default. It now wraps like the Status badge below it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
……" when it can only transcribe (Silo-Server#5514) * fix(web): name the AI subtitle menu item after what the dialog offers When the server can only create subtitles from the audio (translation off, or no subtitle track it can translate), the player's subtitle menu now reads "Generate subtitles with AI…" instead of "Translate with AI…", matching the dialog it opens. Translations are synced from a local silo-translations checkout that adds web.subtitles.menu.generateWithAi; re-sync with --version once that catalog change is released. Closes Silo-Server#5352 * chore(i18n): sync translations with the new subtitle menu key --------- Co-authored-by: Quick104 <31828688+Quick104@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…lo-Server#5593) A failed events-socket ticket mint was retried every second for as long as the server stayed unreachable. The wait now doubles from 1 to 30 seconds with jitter, honours a refused mint's Retry-After (capped at 60 seconds), and starts over once a socket receives hello. Closes Silo-Server#5569
…un (Silo-Server#5592) A task that has never run now counts its first interval from when its schedule was saved (for a default schedule, the first start that saw the task), so restarts within an interval no longer postpone its first run. Startup counts from now when it can't read a task's history. Closes Silo-Server#5572 Co-authored-by: Quick104 <31828688+Quick104@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ays as errors (Silo-Server#5596) * fix(logging): stop logging abandoned matcher-queue fetches and node relays as errors The admin matcher-queue and unmatched-items reads and the segment relay to a transcode node (in the API and in the proxy) logged ERROR "context canceled" when the client dropped the request, which fills Admin > Logs with failures that did not happen. Log those at Debug with ctxerr.LogLevel, as the other request paths already do; real failures stay at ERROR and the relay still answers 502. Closes Silo-Server#5562 * fix(logging): log an abandoned manifest read in the API relay below ERROR The API relay read a signed manifest with io.ReadAll and logged any read error at ERROR, including a player canceling partway through the body. Use the same ctxerr.LogLevel check as the connect error above it. The 502 answer is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Quick104 <31828688+Quick104@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
843 upstream commits since 92ee051. Rebrand-aware merge by Prairie-Server/.github upstream-sync/prairie_sync.py (base=rebrand(merge-base), theirs=rebrand(upstream)). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Conflicts resolved by hand: .github/actions/setup-go/action.yml .golangci.yml cmd/prairie/main.go contracts/api/v2/openapi.json docs/admin-api.md docs/architecture/playback-protocol-v3.md docs/architecture/restart-resilient-playback.md docs/design/2026-07-19-client-diagnostics.md docs/diagnostics-upload-api.md docs/non-goals.md go.mod internal/api/handlers/libraries.go internal/api/handlers/notifications_email.go internal/api/handlers/playback_v3.go internal/api/handlers/playback_v3_test.go internal/api/router.go internal/apiv2/admin_catalog_marker_contributions_test.go internal/apiv2/admin_catalog_marker_history_test.go internal/apiv2/admin_catalog_marker_providers_test.go internal/apiv2/admin_catalog_unmatched_test.go internal/apiv2/admin_plugin_catalog_settings_test.go internal/apiv2/admin_rate_limit_reads_test.go internal/apiv2/admin_settings_inspection_test.go internal/apiv2/catalog_items.go internal/apiv2/household_profile_gate_test.go internal/apiv2/playback_delivery.go internal/artworkkey/artworkkey_test.go internal/auth/api_key_repository.go internal/auth/provider_recheck_db_test.go internal/autoscan/provider_test.go internal/autoscan/service_test.go internal/catalog/catalog_resolver.go internal/catalog/detail.go internal/catalog/library_collection_service.go internal/catalog/search_meilisearch_provider.go internal/clientip/config.go internal/config/admin_settings.go internal/config/redis_url_test.go internal/historyimport/emby_client.go internal/historyimport/plex_watchlist_test.go internal/imagecache/imagecache_test.go internal/imagesize/widths_test.go internal/imageutil/budget.go internal/imageutil/imageutil.go internal/imageutil/imageutil_test.go internal/imageutil/variants_test.go internal/jellycompat/access_filter_test.go internal/jellycompat/auth_api_key_session_test.go internal/jellycompat/collection_images_test.go internal/jellycompat/content_direct_test.go internal/jellycompat/deviceprofile_conditions_test.go internal/jellycompat/download_route_test.go internal/jellycompat/handlers_autoscan_test.go internal/jellycompat/handlers_collections_test.go internal/jellycompat/handlers_genres_test.go internal/jellycompat/handlers_items_batch_detail_test.go internal/jellycompat/handlers_items_test.go internal/jellycompat/image_cache_test.go internal/jellycompat/images_test.go internal/jellycompat/latest_via_sections_test.go internal/jellycompat/mapping_images_test.go internal/jellycompat/parent_browse_test.go internal/jellycompat/playback_report_liveness_test.go internal/jellycompat/playback_static_directplay_test.go internal/jellycompat/resume_filter_test.go internal/jellycompat/router_test.go internal/jellycompat/series_userdata_test.go internal/jellycompat/slice_page_ids_test.go internal/jellycompat/streams.go internal/jellycompat/subtitle_selection_test.go internal/jellycompat/userdata_direct_test.go internal/jellycompat/web_component_test.go internal/mediatrack/audio_select_test.go internal/metadata/fallback_unification_test.go internal/metadata/image_cache_job_repo_test.go internal/metadata/image_ladder_fallback_test.go internal/metadata/image_resolver_test.go internal/metadata/service.go internal/models/api_key.go internal/notifications/home_hides_test.go internal/notifications/interest_repo.go internal/notifications/push_delivery.go internal/notifications/system.go internal/notifications/webhook_logic_test.go internal/playback/copy_keyframe_plan_test.go internal/playback/copy_seek_anchor.go internal/playback/dovi_rpu_probe_test.go internal/playback/remux.go internal/playback/remux_dv_test.go internal/playback/subtitle_fonts.go internal/playback/subtitle_rendition_test.go internal/playback/transcode.go internal/playback/transcode_manifest_test.go internal/plugins/builtin_guard_test.go internal/plugins/installer.go internal/recommendations/collaborative.go internal/rootcheck/rootcheck_test.go internal/s3client/client_test.go internal/server/frontend_test.go internal/taskmanager/manager.go internal/taskmanager/repository/postgres_history_test.go internal/taskmanager/worker.go internal/transcodenode/server.go internal/usercollections/sync.go internal/watchsync/plugin_provider_test.go scripts/ci/dbpins/main.go web/eslint-suppressions.json web/package.json web/src/app.css web/src/components/AdminCatalogMaintenance.tsx web/src/components/AdminJobHistory.tsx web/src/components/AppSidebar.tsx web/src/components/CastCarousel.tsx web/src/components/CrewList.tsx web/src/components/EditMetadataDialog.tsx web/src/components/admin/AdminSubtitleAppearanceDialog.tsx web/src/components/admin/plugins/PluginConfigForm.tsx web/src/components/admin/plugins/SchemaForm.tsx web/src/hooks/queries/personalLists.v2.test.ts web/src/hooks/queries/profiles.ts web/src/hooks/queries/ratings.ts web/src/lib/adminSettingsSearch.ts web/src/lib/calendarWeek.test.ts web/src/lib/calendarWeek.ts web/src/lib/userSettingsNav.ts web/src/pages/ActivateDevice.tsx web/src/pages/AdminDevices.tsx web/src/pages/AdminPlaybackHistory.tsx web/src/pages/EbookReader.tsx web/src/pages/ItemDetail/EbookContent.test.tsx web/src/pages/ItemDetail/EbookContent.tsx web/src/pages/ItemDetail/components/ActionBar.tsx web/src/pages/Login.tsx web/src/pages/PersonDetail.tsx web/src/pages/Signup.tsx web/src/pages/admin/autoscan/ActivityPanel.tsx web/src/pages/audiobooks/player/MiniBar.tsx web/src/player/components/MarkerEditPanel.tsx web/src/player/components/PlayingNextScreen.tsx web/src/player/components/WatchPage.tsx web/vite.config.ts
- playback_v3: pass transport.url to hlsVariableSubstitutionURLV3 (the value setPlanStreamURLsV3 just stored), restoring the Prairie invariant. - web: restore exports upstream dropped with its pruned tests (BuildInfo, CatalogPage, RequestToAddSectionProps, SettingsHealthInput, SettingsAttentionState) and the lost Radio icon import. - web: regenerate pnpm-lock.yaml and api/v2/schema.ts from the merged package.json and openapi.json. - web: SubtitleMenu test uses getDeviceHeaders (upstream rename); rem font sizes in Live TV components for the new text-size-in-rem rule; prettier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream's ratings_ten_point_scores migration doubles stored ratings, so
Prairie's community-rating average now halves AVG(rating) to stay in stars,
matching its API doc ("1-5 star") and the web label ("out of 5").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Upstream sync audit
Names still used but declared nowhere. Upstream renamed/removed them, or a resolution dropped the definition. Port the caller to upstream's replacement:
Prairie lines no longer present. Each is either intended (upstream rewrote that code) or a lost Prairie change:
|
|
Review skipped: 2998 files exceed the limit of 100 WalkthroughWarning Review details and warnings were omitted to fit the comment limit. |
- Re-derive directconn HKDF vectors for the prairie/* labels the rename produces. - Config bootstrap test expects the prairie database name. - Adapt two upstream playback tests to Prairie's Tizen behaviour (encoded sessions never restart below their window; tail resume uses a synthetic window whose origin carries the seek). - Upstream client-feature test includes Prairie's paused_timeout_v1. - Add missing imports to the imageutil variants test. - Regenerate route-inventory.json and openapi.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Restore Prairie tests the sync's upstream test pruning dropped (librarykind, providerid, titleutil sort title, rootcheck regular file, artworkkey), which the 95% per-package coverage gate needs. - Cover upstream's new contentid.ReanchorEpisodeID. - Regenerate web/src/api/v2/schema.ts from the refreshed OpenAPI artifact. - nolint:nestif on the direct-connections block in cmd/prairie/main.go, which is byte-identical to upstream (lint only checks lines new to Prairie). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebrand-aware merge of
Silo-Server/silo-serveratae0e763725(843 upstream commits).Land with "Create a merge commit". Never squash. The second parent is the real upstream commit; that is what keeps the next sync small.
76 files auto-resolved (hunks: theirs 102, ours 0, same 0, superset 0, import-union 10, version-max 0; delete-over-noise 93).
Generated files taken from upstream (the regen job rebuilds them on this branch):
contracts/api/v2/route-inventory.jsongo.sumweb/pnpm-lock.yamlweb/src/api/v2/schema.tsUpstream deleted files Prairie had modified. The delete was applied. Check that Prairie's change isn't a feature that needs re-homing:
+6 -6 internal/api/handlers/artwork_widths_test.go+3 -3 internal/api/handlers/calendar_test.go+7 -6 internal/api/handlers/image_size_test.go+7 -6 internal/api/handlers/images_capability_test.go+2 -0 internal/api/handlers/ratings_test.go+2 -1 internal/apiv2/admin_autoscan_available_sources_test.go+2 -1 internal/apiv2/admin_autoscan_connections_test.go+4 -3 internal/apiv2/admin_autoscan_sources_test.go+2 -1 internal/apiv2/admin_jellyfin_compat_status_test.go+2 -1 internal/apiv2/admin_settings_checks_test.go+2 -1 internal/apiv2/admin_settings_discovery_test.go+2 -1 internal/apiv2/operational_discovery_test.go+47 -13 internal/catalog/image_size_test.go+4 -4 internal/catalog/image_variants_test.go+1 -1 internal/catalog/person_credit_batch_test.go+2 -2 internal/catalog/person_credit_image_test.go+9 -5 internal/imagesize/imagesize_test.go+4 -0 internal/jellycompat/audiobook_exclusion_test.go+2 -0 internal/jellycompat/favorites_supported_test.go+2 -0 internal/jellycompat/handlers_missing_endpoints_test.go+2 -0 internal/jellycompat/hydrate_progress_no_detail_test.go+1 -0 internal/jellycompat/idcodec_mediasource_test.go+2 -0 internal/jellycompat/idcodec_test.go+4 -0 internal/jellycompat/image_proxy_tags_test.go+25 -18 internal/jellycompat/image_variants_test.go+2 -0 internal/jellycompat/mapping_chapters_test.go+2 -0 internal/jellycompat/mapping_sort_test.go+7 -0 internal/jellycompat/mapping_userdata_test.go+1 -0 internal/jellycompat/query_imagetypes_test.go+2 -0 internal/jellycompat/query_repeated_fields_test.go+7 -1 internal/jellycompat/query_test.go+2 -0 internal/jellycompat/search_guard_test.go+2 -0 internal/jellycompat/smart_boxset_test.go+2 -0 internal/jellycompat/virtual_episode_test.go+47 -0 internal/metadata/image_ladder_backfill_test.go+1 -1 internal/telemetry/config_test.go+8 -0 internal/titleutil/provisional_test.go+0 -2 internal/userdb/section_overrides_test.go+6 -0 web/src/components/AppSidebar.test.tsx+1 -0 web/src/components/CastCarousel.test.tsx+2 -2 web/src/components/CollectionTemplateGallery/CollectionTemplateCard.test.tsx+18 -3 web/src/components/overlays/CardOverlays.test.tsx+2 -2 web/src/fonts.test.ts+7 -3 web/src/hooks/queries/useRequests.test.tsx+10 -10 web/src/hooks/useViewTransition.test.tsx+15 -8 web/src/pages/AdminPlugins.test.tsx+4 -0 web/src/pages/Home.test.tsx+24 -0 web/src/pages/ItemDetail/DetailHero.test.tsx+29 -6 web/src/pages/ItemDetail/SeasonContent.test.tsx+21 -1 web/src/pages/SettingsLayout.test.tsx+9 -1 web/src/playback/WatchPlaybackChrome.shuffle.test.tsx+6 -0 web/src/player/components/PlayerControls.test.tsx+3 -1 web/src/player/components/SeekBar.test.tsx+74 -2 web/src/player/playback-info.test.ts+15 -6 web/src/sidebarCollapseCss.test.ts+3 -3 web/src/themeBoot.test.tsxThe audit comment below lists likely compile breaks and lost Prairie lines. CI must be green, including
Prairie invariants; a failing test after a sync usually means Prairie code was lost, not that the test is stale.Notes from the sync session
finish.sh --force: what the gate flagged and why it is a false positive. The gate flagged one item. All 26 Prairie invariants held, and no workflow-called scripts were deleted.ServerReadingatweb/src/player/bandwidth-probe.ts:95and:112. It is declared at:95as a non-exportedinterface ServerReadingand used at:112in the same file. The audit counts only exported declarations, so it misses this one.tsc -bis clean.Ratings move to 1–10 (upstream). This merge takes upstream's ten-point personal ratings.
internal/apiv2/ratings.gois identical to upstream, andRatingSet/RatingEntrynow accept 1–10 where origin/main capped them at 5. Migration20261116115433_ratings_ten_point_scores.sqldoubles the stored ratings. Prairie keeps no 1–5 validation. Prairie's community rating (internal/catalog/ratings_repo.goAggregate) now halvesAVG(rating), so it stays on the documented 1–5 star scale that the web "out of 5" label shows.Post-merge fixes (commits after the merge commit):
playback_v3.go: restored thehlsVariableSubstitutionURLV3(transport.url, …)call site (invariant).BuildInfo,CatalogPage,RequestToAddSectionProps,SettingsHealthInput,SettingsAttentionState.Radioicon import.pnpm-lock.yamlandapi/v2/schema.ts.getDeviceId→getDeviceHeaders.text-size-in-remlint rule.FastStartduplicate andmediatrack.LangMatch; re-homed pruned test helpers; livetv_historyEndPositionSecondsrename; SDK pinned to prairie-plugin-sdk9bcdd7b(v0.38.0).playback_v3.gomerges Prairie'shls_varsonto upstream'ssetPlanStreamURLsV3, and the web merge dropped some Prairie UI details (data-cursive,EbookContentavif/png props, select widths,PluginConfigFormicons).🤖 Generated with Claude Code