Files
codex/codex-rs/core/src
Eric Traut d63e44ae29 Fixed a bug that causes token refresh to not work in a seamless manner (#2699)
This PR fixes a bug in the token refresh logic. Token refresh is
performed in a retry loop so if we receive a 401 error, we refresh the
token, then we go around the loop again and reissue the fetch with a
fresh token. The bug is that we're not using the updated token on the
second and subsequent times through the loop. The result is that we'll
try to refresh the token a few more times until we hit the retry limit
(default of 4). The 401 error is then passed back up to the caller.
Subsequent calls will use the refreshed token, so the problem clears
itself up.

The fix is straightforward — make sure we use the updated auth
information each time through the retry loop.
2025-08-25 19:18:16 -07:00
..
2025-08-23 22:58:56 -07:00
2025-08-25 18:57:20 -04:00
2025-08-23 22:58:56 -07:00
2025-08-23 16:54:31 +00:00
2025-08-22 22:18:54 +00:00
2025-08-19 13:22:02 -07:00