Skip to content

fix(jellycompat): serve profile avatars to Jellyfin apps and Seerr - #2685

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/2471-jellycompat-user-avatars
Nov 5, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/2471-jellycompat-user-avatars

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #2471
Closes #1903
Related issue: N/A
Validation tasks: changes #1246 C1, C3

Jellyfin apps and Seerr never show a Silo user's profile picture. The user object leaves PrimaryImageTag empty, so apps don't ask for an image, and /Users/{id}/Images/Primary returns a placeholder square instead of the uploaded avatar. Seerr also rejects every Silo user ID before it fetches anything: its avatar proxy accepts only 32 hex digits, and Silo sends user IDs with dashes.

This change serves a profile's uploaded avatar to Jellyfin apps and Seerr, and sends user IDs the way Jellyfin does.

Approach

  • The user DTO sets PrimaryImageTag when the profile has an uploaded avatar. /UserImage and /Users/{id}/Images/Primary are anonymous, as in Jellyfin, and return the 256px WebP, or 404 when there is no uploaded avatar. Preset avatars are SVGs most Jellyfin apps can't draw, so they get no tag and a 404.
  • The anonymous routes map the pseudo-user ID back to its account and profile through the stored compat sessions, so any replica can answer. A new index on jellycompat_sessions.pseudo_user_id backs that lookup. A user with no live compat session gets 404, and a compat session whose login session was signed out or expired doesn't count as live. The avatar routes spend the per-IP rate-limit budget, since each request reads the session, profile and blob stores; item artwork stays exempt.
  • User IDs go out as 32 lowercase hex digits in the user DTO, /Sessions, SessionInfo.UserId and UserDataChanged messages. Routes and queries still accept the dashed form that apps saved before. Item, library and server IDs keep their dashes.
  • docs/jellycompat-api.md records the ID format and the avatar routes.

Validation

  • Validation impact: Compatibility layers (Jellyfin / Audiobookshelf) — Jellyfin compatibility #1246’s October 23 comment records C1’s client smoke results on server 31fabc723 plus fix(jellycompat): report hls sub-protocol only for sources played via TranscodingUrl #2934/fix(jellycompat): serve GET /Library/MediaFolders for library discovery #2935/fix(jellycompat): accept an empty stream index in playback requests #2970. This PR changes the sign-in/user ID contract to Jellyfin’s dashless Guid form, which Seerr requires, and adds avatar discovery and lookup. That is a major change to the exercised contract: after merge, repeat C1 with Jellyfin Web 12.1, Findroid 1.1.0 and Jellyfin for Android TV 0.19.10, recording server and client builds. Recheck C3 against the published compatibility guide, including uploaded/preset avatars and the Seerr relink instructions. The guide updates in siloserver.org#254 and .strm Files Not Working as Media #295 are merged; that alone is not a new validation result. C2’s profile/item restrictions and acceptance of both UUID forms are unchanged.

  • Go: go build, gofmt, go vet, make lint-changed and make lint-router-recovery pass. make test-go passes except two Dolby Vision strip tests in internal/jellycompat, which fail the same way on the base build on this machine (its local ffmpeg) while CI passes them on that commit.

  • verify-* targets: route inventory, migration ledger, migrations, scenario catalogs, offline routes, apiv2 OpenAPI/contract/fixtures, playback fixtures, v1 route freeze, local paths, case collisions, size ratchet and bidi pass. verify-settings-bindings-all did not run its web half (web tooling isn't installed here); this branch changes no settings or web files.

  • make test-db-pins against a fresh migrated pgvector database: the new cross-replica owner lookup test passes. Two full runs each had one different failure in an untouched package (internal/metadata, then internal/userstore/pgstore), caused by tests sharing the database. Both tests pass when run alone, on this branch and on the base, five times each.

  • After rebasing onto main at 81ae2ce1c (head 6fdf9e1): go vet, make lint-changed, make lint-router-recovery, the migration, route inventory, local path and case collision checks, the jellycompat, userstore and api/handlers tests, and every jellycompat test in scripts/ci/db-contracts.txt against a freshly migrated Postgres pass. The end-to-end captures below were taken before the rebase; the rebase doesn't change the avatar code.

  • End to end on a local server, base build (365e3d436) and this branch on the same database: the excerpts below. Jellyfin Web 12.1 and Seerr 3.5.0 were run against both builds; see Evidence.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-2685/

The page shows before-and-after captures of the same profile with an uploaded avatar, desktop and phone width, in Jellyfin Web 12.1 (home header, user menu, profile page) and Seerr 3.5.0 (user list, profile). Before is 365e3d436, after is 558593396. It also has before-and-after excerpts of the sign-in SessionInfo.UserId, /Users/Me, /UserImage, /Sessions and the UserDataChanged socket message. Seerr's first-run wizard needs a Jellyfin administrator and /Auth/Keys, which Silo doesn't provide, so a local proxy completed only that step; the captures and avatar requests went straight to Silo.

Surface: Jellyfin-compatible API, the user object and avatar route that Jellyfin apps and Seerr render. Admin profile with an uploaded 914-byte PNG avatar. Before: 365e3d436. After: this branch.

Before
$ GET /Users/Me
{"Name": "admin", "Id": "29582081-b6f5-59b7-827e-a04a96418bfc", "PrimaryImageTag": null}
$ GET /UserImage?UserId=<Id>   (no token)
HTTP 200, image/png, 366 bytes        <- placeholder, not the avatar
Seerr avatar proxy id check /^[a-f0-9]{32}$/: rejected (HTTP 400)

After
$ GET /Users/Me
{"Name": "admin", "Id": "29582081b6f559b7827ea04a96418bfc", "PrimaryImageTag": "2e904fc5a46bb658"}
$ GET /UserImage?UserId=<Id>   (no token)
HTTP 200, image/webp, 202 bytes       <- the uploaded avatar, Cache-Control: public, max-age=3600
Seerr avatar proxy id check /^[a-f0-9]{32}$/: accepted
$ GET /UserImage?UserId=<dashed Id>
HTTP 200, image/webp, 202 bytes

Risks

The maintainer accepts the one-time Seerr relink and fresh Jellyfin Web sign-in described below. Avatar requests remain under the per-IP rate limit because each request reads the database and blob store.

  • Seerr matches returning users by Jellyfin user ID. Users who signed in to Seerr before this change no longer match: Seerr either refuses their sign-in or creates a second account, depending on its settings. docs: profile avatars in Jellyfin apps and the Seerr user ID change siloserver.org#254 documents a one-time SQL fix for Seerr's database; it already merged on October 24, before this server change shipped.
  • Jellyfin web sessions signed in before the update keep the dashed ID they saved. Its item details page compares UserDataChanged events with that ID, so watched and progress changes from other devices stop updating that page live until the user signs in again. Routes, playback and saving state still work.
  • New migration with a concurrent index build; it drops a leftover invalid index first.
  • Known limitation: once a profile has an avatar, Jellyfin Web's profile page shows "Delete Image" in place of "Add Image". Silo has no Jellyfin route to upload or delete a user image, so that button fails the same way "Add Image" already does. Users change their avatar in Silo.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Decision follow-up: Codex in T3 Code (gpt-6-astra) recorded acceptance of the migration costs and the avatar rate limit.

  • Validation follow-up: Codex in T3 Code (gpt-6-astra) checked the task comments and corrected the recorded-results and re-validation notes.

  • Harness: Claude Code in T3 Code

  • Tool(s): Claude Code; Codex CLI (review only)

  • Model(s): claude-opus-5-5; gpt-6.1-sol (review only)

  • Involvement: Fully AI-generated, human verified

  • Adversarial review: two independent reviews of the branch diff (claude-opus-5-5 and gpt-6.1-sol, medium effort). GPT found nothing. Opus found that Jellyfin web sessions from before the update stop matching UserDataChanged events (confirmed in jellyfin-web's item details page and listed under Risks) and that a user with no live compat session gets a 404 avatar (by design, documented in docs/jellycompat-api.md and in the user manual).

Note

Serve uploaded profile avatars to Jellyfin apps and Seerr via user-image routes

  • Replaces the deterministic placeholder-PNG implementation of ImagesHandler.HandleUserImage with a real avatar loader (compatUserAvatars in user_avatar.go) that maps a pseudo-user UUID to a compat session, loads the profile, and serves the uploaded avatar blob. Missing avatars return JSON 404; storage errors return 503; bodies over 2 MiB are rejected. Served avatars use public 1-hour cache control.
  • Serializes all user IDs returned to Jellyfin clients (user DTOs, SessionInfo, sessions, UserDataChanged socket messages) as dashless lowercase hex via compatUserID. User-ID checks accept both dashed and dashless forms through isPseudoUser.
  • Adds PrimaryImageTag to user DTOs, derived from the avatar display key and profile UpdatedAt.
  • Adds SessionStore.PseudoUserOwner for mapping a pseudo-user UUID back to its account/profile, backed by a new PseudoUserTokens repository query and a pseudo_user_id index (migration).
  • Anonymous /UserImage and /Users/{id}/Images/Primary routes now pass through the per-IP rate limiter instead of being unauthenticated without it; the image-proxy middleware no longer rewrites /Users object responses.
  • Behavioral Change: anonymous avatar routes now return 404 (no avatar) or 429 (rate limited) instead of 200 with a placeholder PNG; user IDs in all Jellyfin responses change from dashed to dashless form.

Macroscope summarized 6fdf9e1.

@silo-triage silo-triage Bot added the size/XL 500–999 added + deleted lines (all files); change volume, not priority. label Oct 19, 2026
@silo-kody

silo-kody Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bc2f050d-b41e-4bc7-8eb0-eb6a5a54f424
📥 Commits

Reviewing files that changed from the base of the PR and between 365e3d4 and 5585933.

📒 Files selected for processing: 27
  • cmd/silo/main.go
  • docs/jellycompat-api.md
  • internal/api/handlers/profile_avatars.go
  • internal/jellycompat/auth_api_key_session_test.go
  • internal/jellycompat/handlers_auth.go
  • internal/jellycompat/handlers_images.go
  • internal/jellycompat/handlers_items.go
  • internal/jellycompat/handlers_missing_endpoints_router_test.go
  • internal/jellycompat/handlers_missing_endpoints_test.go
  • internal/jellycompat/handlers_quickconnect_test.go
  • internal/jellycompat/handlers_sessions.go
  • internal/jellycompat/handlers_userconfig.go
  • internal/jellycompat/image_proxy_tags.go
  • internal/jellycompat/images.go
  • internal/jellycompat/images_test.go
  • internal/jellycompat/router.go
  • internal/jellycompat/server.go
  • internal/jellycompat/session_owner_db_test.go
  • internal/jellycompat/session_repository.go
  • internal/jellycompat/session_store.go
  • internal/jellycompat/user_avatar.go
  • internal/jellycompat/user_avatar_test.go
  • internal/jellycompat/userdata_events.go
  • internal/jellycompat/userdata_events_test.go
  • internal/userstore/avatar.go
  • migrations/sql/20261018212157_index_jellycompat_sessions_pseudo_user.sql
  • scripts/ci/db-contracts.txt
💤 Files with no reviewable changes: 3
  • internal/jellycompat/images_test.go
  • internal/jellycompat/images.go
  • internal/jellycompat/handlers_missing_endpoints_test.go

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The Jellyfin-compatible API now returns user IDs in dashless lowercase hexadecimal form, accepts dashed and dashless IDs, and exposes uploaded profile avatars through user image routes. Session ownership lookup supports persistent stores, and user DTOs can include an avatar tag.

Changes: Jellyfin user IDs and profile avatars

Layer / File(s) Summary
Compatibility user IDs and avatar tags
internal/jellycompat/user_avatar.go, internal/jellycompat/handlers_auth.go, internal/jellycompat/handlers_items.go, internal/jellycompat/handlers_sessions.go, internal/jellycompat/handlers_userconfig.go, internal/jellycompat/userdata_events.go, internal/jellycompat/image_proxy_tags.go, internal/jellycompat/*_test.go
User IDs in user responses and socket messages use dashless lowercase hexadecimal formatting. User lookup accepts dashed and dashless IDs. User DTOs can include an uploaded-avatar tag, and user-object responses bypass image-tag rewriting.
Avatar references and session ownership
internal/userstore/avatar.go, internal/api/handlers/profile_avatars.go, internal/jellycompat/session_store.go, internal/jellycompat/session_repository.go, internal/jellycompat/session_owner_db_test.go, migrations/sql/20261018212157_index_jellycompat_sessions_pseudo_user.sql, scripts/ci/db-contracts.txt
Avatar-reference checks and display-key construction use shared user-store helpers. Session stores resolve live pseudo-user IDs to account and profile IDs. The migration creates an index for pseudo-user lookup, and the database contract test checks resolution across persistent stores.
Uploaded-avatar routes and wiring
cmd/silo/main.go, internal/jellycompat/server.go, internal/jellycompat/router.go, internal/jellycompat/user_avatar.go, internal/jellycompat/handlers_images.go, internal/jellycompat/images.go, internal/jellycompat/user_avatar_test.go, internal/jellycompat/handlers_missing_endpoints*_test.go, docs/jellycompat-api.md
The router shares an avatar handler between image and authentication handlers, with an optional avatar blob store. Image routes serve uploaded profile avatars and return 404 when an avatar is unavailable. The generated placeholder-avatar implementation and its tests are removed.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant JellyfinClient
  participant compatUserAvatars
  participant SessionStore
  participant SessionRepository
  participant UserStore
  participant AvatarStore
  JellyfinClient->>compatUserAvatars: GET or HEAD user image
  compatUserAvatars->>SessionStore: Resolve pseudo-user owner
  SessionStore->>SessionRepository: Find a live matching session
  compatUserAvatars->>UserStore: Load owner profile
  compatUserAvatars->>AvatarStore: Read uploaded display avatar
  compatUserAvatars-->>JellyfinClient: Return image or HTTP error
Loading

Suggested reviewers: quick104

Merge Risk: Minimal · up to 55859

This change serves uploaded profile avatars to Jellyfin-compatible clients and switches user IDs to the dashless format Seerr accepts. No concrete merge-blocking problem was identified. Existing Seerr users may need a one-time ID fix, as the author notes.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: serving profile avatars through the Jellyfin compatibility API for Jellyfin apps and Seerr.
Linked Issues check Passed The PR meets the coding requirements for [#2471] and [#1903]. PrimaryImageTag is set for uploaded profile avatars. Anonymous /UserImage and /Users/{id}/Images/Primary serve the stored 256px WebP…
Out of Scope Changes check Passed The changes remain within [#2471] and [#1903]. The session-owner lookup and index support anonymous avatar resolution across replicas. Shared avatar-reference helpers, route wiring, compatibility hand…
Description check Passed The description is specific and on-topic. It names the linked issues (#2471, #1903), explains the problem (Jellyfin apps and Seerr never show a Silo user's profile picture, and Seerr rejects dashed us…
Full details: Linked Issues check

Explanation

The PR meets the coding requirements for [#2471] and [#1903]. PrimaryImageTag is set for uploaded profile avatars. Anonymous /UserImage and /Users/{id}/Images/Primary serve the stored 256px WebP and return 404 when no supported avatar exists. compatUserID emits 32 lowercase hexadecimal user IDs, while uuid.Parse and isPseudoUser accept both dashless and legacy dashed IDs. Tests cover DTOs, avatar GET and HEAD requests, both ID forms, 404 cases, and Seerr's ID shape.

Full details: Out of Scope Changes check

Explanation

The changes remain within [#2471] and [#1903]. The session-owner lookup and index support anonymous avatar resolution across replicas. Shared avatar-reference helpers, route wiring, compatibility handling, documentation, migration coverage, and focused tests directly support the avatar and user-ID objectives. No unrelated functional change is demonstrated.

Full details: Description check

Explanation

The description is specific and on-topic. It names the linked issues (#2471, #1903), explains the problem (Jellyfin apps and Seerr never show a Silo user's profile picture, and Seerr rejects dashed user IDs), and describes the approach: PrimaryImageTag on the user DTO, anonymous avatar routes returning a 256px WebP or 404, dashless user IDs, the new pseudo_user_id index, and docs. It also gives validation results and risks. The changeset matches these claims, so the check passes.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@macroscopeapp

macroscopeapp Bot commented Oct 19, 2026

Copy link
Copy Markdown

Evidence is incomplete:

  • The new avatar is intended to appear in Jellyfin apps and Seerr, but the excerpts show only image response metadata, not the rendered change; please add before-and-after captures of the same user's avatar in the affected client surface(s).
  • User IDs also change in /Sessions, SessionInfo.UserId, and UserDataChanged socket messages, but only /Users/Me is shown; please add before-and-after excerpts for those changed outputs.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code impact: compat Breaks a supported client or server path priority: P2 Limited scope, workaround exists, or polish labels Oct 19, 2026
@silo-triage

silo-triage Bot commented Oct 19, 2026

Copy link
Copy Markdown

The API excerpts show the tag, ID format and image response changing, but don't show the uploaded avatar rendering in a client; Seerr also wasn't run. Please add before-and-after captures of the same profile in an affected Jellyfin app and Seerr, with the builds identified, as CONTRIBUTING.md's “Show visible changes” section requires.

Comment thread internal/jellycompat/user_avatar.go Resolved
@macroscopeapp

macroscopeapp Bot commented Oct 19, 2026

Copy link
Copy Markdown

Silo-Server/silo-server#1246 C1 and C3 are affected, but both are currently Not run, so there is no prior result to invalidate or unblock. C1's Jellyfin sign-in payload now uses dashless IDs and adds an avatar tag; C3's compatibility boundary should cover uploaded-avatar support and the preset-avatar limitation. Please update the line so the post-merge task run covers them.

Suggested fix: Validation tasks: changes #1246 C1, C3

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of 5585933. Two defects and one test gap below. I'm fixing all three in a commit on this branch, together with a rebase onto current main, so there's no need to change them yourself.

Comment thread internal/jellycompat/router.go Resolved
@Quick104
Quick104 force-pushed the fix/2471-jellycompat-user-avatars branch from 5585933 to 683806d Compare October 21, 2026 17:04
@silo-kody

silo-kody Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Oct 21, 2026

Copy link
Copy Markdown

Evidence is incomplete for one visible behavior:

  • For a user without an uploaded avatar (including a preset-avatar profile), /UserImage changes from returning a generated placeholder to returning 404. Please add a before-and-after response excerpt for that case, or a client capture showing the resulting default avatar. The linked evidence description covers an uploaded avatar, client rendering, and the changed user-ID outputs, but does not mention this no-avatar case.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@Quick104

Quick104 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: 6fdf9e1 (rebase of 683806d onto current main). The earlier review covered 5585933 and is kept below.

This round. No new defects at 683806d or after the rebase. The branch conflicted with main, so I rebased it and force-pushed with a lease. Rhainland's commit keeps its authorship. Conflict resolution:

  • handlers_auth.go: the user DTO keeps main's EnableAutoLogin, LastLoginDate and LastActivityDate and adds PrimaryImageTag. The full sign-in SessionInfo from main now sends UserId in the dashless form.
  • images.go keeps main's imports minus the ones the removed placeholder used. db-contracts.txt keeps both sides.
  • Main's TestProxyImageServesOnlyImages used the removed placeholder as a PNG body; it now uses a PNG signature. One test call passes the request that sessionInfo now takes.

No code main added since the old base emits a user ID to clients or compares a client's user ID in the old form. The remaining dashed PseudoUserID.String() uses fill the internal playback owner field, which is never sent to clients.

Checked on 6fdf9e1: go vet, make lint-changed and make lint-router-recovery (0 issues); verify-migrations, verify-migration-ledger, verify-route-inventory, verify-local-paths and verify-case-collisions; the jellycompat, userstore and api/handlers tests; and every jellycompat test in scripts/ci/db-contracts.txt, TestPseudoUserOwnerAcrossReplicasPostgres included, against a freshly migrated Postgres. No live client run on this head.

Earlier round (5585933 → 683806d), still fixed:

  • Revoking or expiring a login session kept its avatar public. The owner lookup now runs Recheck on each candidate compat session.
  • The anonymous avatar routes spend the per-IP rate-limit budget. Item artwork stays exempt.
  • The router check for /UserImage asserts the handler's JSON 404, so it fails if the route is dropped.
  • Tests that failed on 5585933 and pass now: TestHandleUserImageNotFound, TestPseudoUserOwnerAcrossReplicasPostgres and TestRouterRateLimitCoversAuthenticatedMediaAndAvatarRoutes. The PR's other new tests call code it adds, so they don't build on its base.

Maintainer decisions and remaining notes:

  • Jellyfin Web sessions signed in before the update keep the dashed user ID, so live UserDataChanged updates stop on their item pages until the user signs in again. Seerr users who signed in before need the one-time relink. Both are under Risks. The maintainer accepted these one-time migration costs so Seerr can use the dashless IDs.
  • The maintainer chose to keep avatars under the per-IP budget because each request reads the database and blob store.
  • The user manual already describes this change: docs: profile avatars in Jellyfin apps and the Seerr user ID change siloserver.org#254 merged on 2026-10-24, so the published pages promise avatars in Jellyfin apps and a Seerr relink before this PR ships.
  • Optional cleanup: resolveProfileAvatar in internal/api/handlers/profile_avatars.go could call userstore.UploadedAvatarDisplayKey instead of repeating its prefix handling.

Validated features: the board could not be read, but #1246’s October 23 comment records C1 client smoke results and a C3 documentation gap. The result table is stale. The dashless user-ID contract and avatar behavior require repeating C1’s client matrix after merge; C3 needs checking against the server and the already-merged guide updates (#254 and #295 in siloserver.org). Keep Validation tasks: changes #1246 C1, C3. C2’s restrictions and acceptance of both UUID forms are unchanged. No validation records or board status were edited.

User manual: covered by Silo-Server/siloserver.org#254 (merged; see above).

Apple and Android: the native apps use /api/v2, which this PR doesn't touch.

Evidence: the captures were taken on 5585933. The rebase doesn't change the avatar code they show, so they still apply.

Cross-provider review: gpt-6.1-sol (xhigh), two rounds. The first, on 5585933, found the two defects fixed above. The second, on 6fdf9e1, confirmed both fixed and found nothing new.

Fit: 8/10 · Readiness: 8/10 — conditional: CI green, migration costs accepted

  • Fit: the PR closes a real Jellyfin compatibility gap at the right boundary, and Seerr is a common companion app. The user ID format change is a one-time break operators have to act on, which keeps the score below 9.
  • Readiness: the approach holds, the defects found are fixed with tests that failed before, and the rebased head passes the focused and database tests. The maintainer has accepted the disclosed migration costs and retained the avatar rate limit. No new live client validation was performed for this decision; the documented post-merge client matrix still needs repeating.

🤖 Claude Code in T3 Code (claude-opus-5-5)

Coordinator check: required CI passes on 6fdf9e1; GitHub reports it mergeable. The ID-migration and avatar rate-limit decisions are now settled as described above. No approval or merge performed.

🤖 Validation follow-up by Codex in T3 Code (gpt-6-astra).

Decisions recorded by 🤖 Codex (gpt-6-astra) in T3 Code.

Comment thread internal/jellycompat/session_store.go Resolved
Rhainland and others added 2 commits November 2, 2026 00:01
Jellyfin users report a PrimaryImageTag when their profile has an uploaded
avatar, and /UserImage and /Users/{id}/Images/Primary serve it anonymously,
resolving the pseudo-user id through the stored compat sessions so any
replica answers. Users without an uploaded avatar get 404, as in Jellyfin,
instead of a placeholder square.

User ids are now sent as 32 lowercase hex digits, the way Jellyfin
serializes a Guid, which Seerr's avatar proxy requires. Routes and queries
still accept the dashed form clients stored earlier. Item, library and
server ids are unchanged.

Closes Silo-Server#2471
Closes Silo-Server#1903
The anonymous avatar routes found the profile through any unexpired compat
session row, so signing out the login session behind it kept the avatar
public until the row was next looked up. The owner lookup now rechecks each
candidate session's login session, as a token lookup does.

Each avatar request reads the session, profile, and blob stores, so the
avatar routes now spend the per-IP rate-limit budget. The router check for
/UserImage asserts the handler's 404 body, so it fails if the route is
dropped, and a test that repeated isPseudoUser coverage is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Quick104
Quick104 force-pushed the fix/2471-jellycompat-user-avatars branch from 683806d to 6fdf9e1 Compare November 2, 2026 00:13
@silo-kody

silo-kody Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Nov 2, 2026

Copy link
Copy Markdown

Major change — #1246 C1 needs re-validation after merge. The Oct. 23 issue comment records the real-client smoke matrix on server 31fabc723 plus #2934/#2935/#2970 (Jellyfin Web 12.1, Findroid 1.1.0, and Jellyfin for Android TV 0.19.10). This PR changes the sign-in/user DTO ID format and adds PrimaryImageTag and avatar lookup. The PR must explain why this exercised contract changes to match Jellyfin Guid serialization and Seerr's ID requirement; rerun the client matrix after merge.

Major change — #1246 C3 needs re-validation after merge. The Oct. 23 note identifies the published-boundary gap tracked by siloserver.org#283; the site guide was updated by #295. Merged siloserver.org#254 now documents uploaded-avatar and preset-avatar behavior, and explicitly depends on #2685. Recheck the published boundary against the merged server implementation; the documentation update alone is not a new validation result.

#1246 C2 does not need to be added to the task line: isPseudoUser accepts both UUID forms, while the profile and item access checks exercised by C2 are unchanged. The task body still says Not run; its Oct. 23 comment contains the recorded results.

Suggested fix: No diff. Keep Validation tasks: changes #1246 C1, C3, then record human re-validation and exact server/client builds for those cases after merge.

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@Quick104
Quick104 merged commit 5a6c64b into Silo-Server:main Nov 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code impact: compat Breaks a supported client or server path priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

2 participants