mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
2.4 KiB
2.4 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-102 | Restore Jellyfin session migration contract and build green | To Do | 2026-02-22 07:12 | 2026-02-22 07:12 |
|
|
high |
Description
bun run build is currently failing after refactor/rebase drift in Jellyfin auth/session wiring.
Observed drift:
src/config/definitions/defaults-integrations.tsstill includesjellyfin.accessTokenandjellyfin.userId.src/config/resolve/integrations.tsstill parses those removed config keys.src/main.tsstill calls removed token-store methods (loadToken/saveToken/clearToken) instead of session-store methods.- setup/config patch flows still attempt to write removed Jellyfin auth fields to config.
This task restores the TASK-93 contract end-to-end: auth in env/stored session, no token/userId in editable config.
Action Steps
- Remove stale
jellyfin.accessToken/jellyfin.userIdkeys from defaults and config resolve parsing. - Update
src/main.tsJellyfin deps wiring to useloadStoredSession/saveStoredSession/clearStoredSessionwithcreateJellyfinTokenStore. - Update Jellyfin setup/auth flows so config patch writes only supported Jellyfin config keys.
- Update launcher-side Jellyfin config loader to stop reading removed auth keys from config file.
- Add/adjust regression tests around Jellyfin resolver precedence and setup/auth save+clear paths.
- Verify with
bun run build,bun run test:config:src, and targeted Jellyfin runtime tests.
Acceptance Criteria
- #1
bun run buildpasses onmainafter Jellyfin session contract fix. - #2 No production config defaults/resolvers parse
jellyfin.accessTokenorjellyfin.userId. - #3 Main/runtime Jellyfin auth wiring compiles against session-store API only.
- #4 Jellyfin setup/login/logout paths are covered by source tests and pass.
Definition of Done
- #1 Compile + config test lanes pass without local patches.
- #2 Runtime Jellyfin tests include session-store save/load/clear expectations.
- #3 Docs/examples reflect session-store contract and no longer mention removed config auth keys.