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
This commit is contained in:
2026-05-03 22:35:35 -07:00
parent 47161cd8a5
commit b8dc5db14a
10 changed files with 95 additions and 14 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ test('createReloadConfigHandler runs success flow with warnings', async () => {
assert.equal(showedWarningDialog, process.platform === 'darwin');
assert.ok(calls.some((entry) => entry.includes('actual=10 fallback=250')));
assert.ok(calls.includes('hotReload:start'));
assert.deepEqual(refreshCalls, [{ force: true }]);
assert.deepEqual(refreshCalls, [{ force: true, allowSetupPrompt: false }]);
});
test('createReloadConfigHandler fails startup for parse errors', () => {