Files
SubMiner/backlog/tasks/task-335 - Fix-Linux-AniList-setup-gate-using-stored-keyring-token.md
T
sudacode b8dc5db14a fix: stop AniList setup reopening on Linux when keyring token exists
- Gate setup success on token persistence: `saveToken` now returns `boolean`; on failure, keeps the setup window open instead of reporting success
- Config reload passes `allowSetupPrompt: false` so playback reloads don't re-open the setup window
- Add regression test for persistence-failure path
2026-05-04 00:06:27 -07:00

1.8 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
id title status assignee created_date updated_date labels dependencies priority
TASK-335 Fix Linux AniList setup gate using stored keyring token Done
2026-05-04 05:26 2026-05-04 05:30
anilist
bug
linux
high

Description

AniList setup page reopens on Linux video launch even when the token exists in secret storage and post-watch updates can use it. Investigate setup gating versus update token refresh paths and make them agree on stored-token availability.

Acceptance Criteria

  • #1 Launching a video on Linux with an AniList token available in secret storage does not show the AniList setup page just because config accessToken is empty.
  • #2 If secret storage load fails, setup/errors surface the underlying storage problem instead of behaving like an empty token.
  • #3 Regression coverage exercises the setup-gate token availability path and preserves post-watch update token behavior.

Implementation Notes

Patched AniList setup callback to require successful token persistence before caching/closing the setup flow. Patched config reload auth refresh to pass allowSetupPrompt:false so normal startup/playback reloads do not open AniList setup UI. Added regression coverage around persistence failure and non-prompting config refresh.

Final Summary

Fixed AniList setup/login flow so failed encrypted token persistence no longer reports success or seeds only an in-memory token. Config reload now refreshes AniList auth state without opening the setup window during playback, reducing repeated Linux setup prompts when safeStorage/keyring resolution fails.