smurching-oai
fa4c0607d4
Surface refresh-token rejection errors during workspace routing ( #57304 )
...
## Why
When workspace discovery receives a 401 and token refresh is permanently rejected, the generic discovery error hides the guidance to sign in again.
## What changed
Propagate cached permanent refresh-token failures for the current credentials through workspace routing and model-provider resolution as `CodexErr::RefreshTokenFailed`. Preserve account-change checks and only surface the cached rejection when external authentication is absent and the auth generation is unchanged.
## Testing
Add an app-server regression test that simulates `refresh_token_reused` during workspace discovery and verifies that the turn fails with `Unauthorized` and tells the user to sign in again.
GitOrigin-RevId: cf89c71fd6a2103e56d637838b0cb34d58b3cc32
2026-10-26 23:21:18 +00:00
..
2026-09-26 23:17:41 +00:00
2026-10-23 09:06:13 +00:00
2026-10-26 23:21:18 +00:00
2026-10-20 11:48:54 +00:00
2026-09-14 22:31:32 +00:00
2026-10-26 18:20:30 +00:00
2026-07-23 01:00:35 +00:00
2026-07-22 14:16:51 +00:00
2026-09-23 00:49:19 +00:00
2026-10-26 18:05:05 +00:00
2026-08-21 19:04:32 +00:00
2026-08-24 21:39:48 +00:00
2026-10-26 18:13:00 +00:00
2026-08-25 20:37:15 +00:00
2026-08-25 20:37:15 +00:00
2026-09-08 10:18:59 +00:00
2026-09-24 09:25:19 +00:00
2026-08-10 11:22:55 +00:00
2026-10-26 18:05:05 +00:00
2026-09-09 17:45:17 +00:00
2026-10-21 19:06:57 +00:00
2026-10-16 14:38:19 +00:00
2026-10-26 18:14:57 +00:00
2026-06-08 10:20:54 -07:00
2026-09-09 23:59:14 +00:00
2026-06-27 16:42:03 -07:00
2026-09-16 00:54:58 +00:00
2026-07-18 23:22:13 +00:00
2026-08-28 19:12:34 +00:00
2026-10-16 14:38:19 +00:00
2026-10-09 23:16:46 +00:00
2026-10-26 21:20:21 +00:00
2026-08-21 19:04:32 +00:00
2026-05-28 23:09:55 -07:00
2026-09-22 06:36:09 +00:00
2026-06-23 00:43:56 +00:00
2026-10-26 18:20:30 +00:00
2026-10-26 18:20:30 +00:00
2026-10-26 18:13:00 +00:00
2026-10-22 19:36:47 +00:00
2026-10-26 18:05:05 +00:00
2026-09-24 17:04:50 +00:00
2026-09-24 17:04:50 +00:00
2026-08-25 20:37:15 +00:00
2026-10-20 17:01:52 +00:00
2026-10-06 19:51:15 +00:00
2026-10-20 23:03:56 +00:00
2026-10-20 15:43:19 +00:00
2026-10-08 11:52:25 +00:00
2026-10-26 17:56:43 +00:00
2026-10-26 17:56:43 +00:00
2026-10-26 20:54:08 +00:00
2026-10-15 03:06:16 +00:00
2026-10-15 03:06:16 +00:00
2026-09-21 01:19:40 +00:00
2026-10-06 01:46:33 +00:00
2026-10-26 18:13:00 +00:00
2026-08-07 00:28:32 +00:00
2026-10-21 09:54:36 +00:00
2026-10-07 23:19:26 +00:00
2026-10-26 18:23:07 +00:00
2026-10-23 18:39:28 +00:00
2026-08-11 10:43:11 +00:00
2026-10-26 18:05:05 +00:00
2026-10-26 17:56:43 +00:00
2026-10-22 19:36:47 +00:00
2026-10-20 03:09:44 +00:00
2026-10-23 06:07:10 +00:00
2026-10-26 18:13:00 +00:00
2026-09-28 21:33:00 +00:00
2026-10-21 01:49:26 +00:00
2026-10-21 01:49:26 +00:00
2026-10-09 23:16:46 +00:00
2026-09-09 01:03:42 +00:00
2026-09-01 00:30:55 +00:00
2026-09-23 00:47:07 +00:00
2026-10-06 15:50:27 +00:00
2026-10-26 18:20:30 +00:00
2026-09-21 07:01:52 +00:00
2026-09-07 18:43:20 +00:00
2026-09-07 18:43:20 +00:00
2026-09-08 05:57:24 +00:00
2026-09-08 21:48:53 +00:00
2026-09-08 21:48:53 +00:00
2026-09-21 07:01:52 +00:00
2026-09-21 07:01:52 +00:00
2026-10-07 19:28:14 +00:00
2026-10-07 19:28:14 +00:00
2026-09-11 17:36:50 +00:00
2026-10-26 17:56:43 +00:00
2026-09-11 17:36:50 +00:00
2026-09-11 17:36:50 +00:00