Teknium
161acb0086
fix: credential pool 401 recovery rotates to next credential after failed refresh ( #4300 )
...
When an OAuth token refresh fails on a 401 error, the pool recovery
would return 'not recovered' without trying the next credential in the
pool. This meant users who added a second valid credential via
'hermes auth add' would never see it used when the primary credential
was dead.
Now: try refresh first (handles expired tokens quickly), and if that
fails, rotate to the next available credential — same as 429/402
already did.
Adds three tests covering 401 refresh success, refresh-fail-then-rotate,
and refresh-fail-with-no-remaining-credentials.
2026-03-31 12:02:29 -07:00
..
2026-03-28 23:45:53 -07:00
2026-03-31 10:30:48 -07:00
2026-03-29 21:24:17 -07:00
2026-03-31 10:42:03 -07:00
2026-03-31 11:41:12 -07:00
2026-03-30 16:41:19 -07:00
2026-03-24 07:30:25 -07:00
2026-03-29 16:52:52 -07:00
2026-03-31 10:40:13 -07:00
2026-03-17 02:02:33 -07:00
2026-03-17 02:53:33 -07:00
2026-03-17 01:50:59 -07:00
2026-03-17 04:24:27 -07:00
2026-03-30 13:19:44 -07:00
2026-03-26 19:21:34 -07:00
2026-03-31 11:42:52 -07:00
2026-03-27 09:45:25 -07:00
2026-03-31 03:10:01 -07:00
2026-03-17 04:46:15 -07:00
2026-03-25 15:00:33 -07:00
2026-03-31 11:42:48 -07:00
2026-03-21 09:42:07 -07:00
2026-03-26 17:58:40 -07:00
2026-03-17 02:53:33 -07:00
2026-03-20 04:35:17 -07:00
2026-03-17 02:05:26 -07:00
2026-03-23 06:20:19 -07:00
2026-03-31 03:29:00 -07:00
2026-03-29 23:59:07 -07:00
2026-03-30 08:10:14 -07:00
2026-03-30 21:17:09 -07:00
2026-03-29 20:10:00 -07:00
2026-03-18 15:22:51 -07:00
2026-03-30 18:49:14 -07:00
2026-03-29 16:04:53 -07:00
2026-03-23 16:02:06 -07:00
2026-03-27 21:42:09 -07:00
2026-03-23 06:40:05 -07:00
2026-03-22 05:58:26 -07:00
2026-03-31 03:10:01 -07:00
2026-03-25 17:31:56 -07:00
2026-03-26 14:34:31 -07:00
2026-03-18 02:42:58 -07:00
2026-03-26 14:35:31 -07:00
2026-03-17 03:44:44 -07:00
2026-03-17 02:53:33 -07:00
2026-03-17 02:53:33 -07:00
2026-03-29 15:47:19 -07:00
2026-03-24 08:19:23 -07:00
2026-03-19 21:24:53 +01:00
2026-03-17 23:40:22 -07:00
2026-03-20 15:41:06 -04:00
2026-03-16 06:35:46 -07:00
2026-03-30 17:34:43 -07:00
2026-03-28 14:55:18 -07:00
2026-03-29 20:05:59 -07:00
2026-03-28 11:14:54 -07:00
2026-03-29 21:53:28 -07:00
2026-03-29 16:04:53 -07:00
2026-03-31 03:16:40 -07:00
2026-03-17 02:53:33 -07:00
2026-03-17 02:53:33 -07:00
2026-03-27 09:57:50 -07:00
2026-03-19 10:34:44 -07:00
2026-03-31 12:02:29 -07:00
2026-03-31 03:10:01 -07:00
2026-03-25 18:22:21 -07:00
2026-03-31 01:54:13 -07:00
2026-03-19 15:16:35 +01:00
2026-03-28 13:41:23 -07:00
2026-03-28 16:53:14 -07:00
2026-03-16 23:48:14 -07:00
2026-03-21 09:41:17 -07:00
2026-03-30 13:16:16 -07:00
2026-03-30 20:36:56 -07:00