Abhinav
7ce5fa7bdc
Validate thread providers before resume and input ( #57840 )
...
## Why
Existing chats retain their provider configuration when the selected provider changes. Reject resume and input until the configured provider matches the chat, while keeping history readable and allowing recovery after configuration is restored.
## What changed
- Validate saved providers before applying resume overrides, preserving the provider when only model or reasoning settings change.
- Check the current provider selection, including profiles and launch overrides, before accepting input. Reject input when configuration cannot be loaded.
- Return structured `ModelProviderError` data for provider mismatches, missing definitions, and policy conflicts, with generated JSON Schema, TypeScript, and Python types.
## Testing
Add coverage for override bypass prevention, provider restoration, readable history after rejection, and blocked requests sending no inference traffic. Verify schema fields and Python round trips match the error wire format.
GitOrigin-RevId: 051f97c3815c547d8411c71b770df30eae969f68
2026-10-28 21:33:02 +00:00
..
2026-08-02 21:01:04 +00:00
2026-10-19 21:43:19 +00:00
2026-10-19 21:43:19 +00:00
2026-07-22 23:45:45 +00:00
2026-07-17 15:23:35 +00:00
2026-07-17 15:23:35 +00:00
2026-02-09 23:10:26 -08:00
2026-07-22 23:45:45 +00:00
2026-08-10 22:39:29 +00:00
2026-07-23 01:00:35 +00:00
2026-08-28 01:14:02 +00:00
2026-03-06 17:30:17 -08:00
2026-05-18 17:28:50 -07:00
2026-03-06 17:30:17 -08:00
2026-03-06 17:30:17 -08:00
2026-03-06 17:30:17 -08:00
2026-03-06 17:30:17 -08:00
2026-03-06 17:30:17 -08:00
2026-03-06 17:30:17 -08:00
2026-03-06 17:30:17 -08:00
2026-09-15 23:39:40 +00:00
2026-05-22 16:52:53 +00:00
2026-09-16 21:50:07 +00:00
2026-10-28 06:24:24 +00:00
2026-08-10 11:22:55 +00:00
2026-07-06 12:54:06 -07:00
2026-06-15 21:54:01 +00:00
2026-07-15 05:21:13 +00:00
2026-10-27 13:31:38 +00:00
2026-03-25 02:27:00 +00:00
2026-03-25 02:27:00 +00:00
2026-05-18 12:12:14 -07:00
2026-02-05 23:31:04 +00:00
2026-07-21 02:55:11 +00:00
2026-07-30 20:58:06 +00:00
2026-07-29 02:45:55 +00:00
2026-07-29 02:45:55 +00:00
2026-07-29 02:45:55 +00:00
2026-07-23 17:55:22 +00:00
2026-07-23 17:55:22 +00:00
2026-07-29 02:45:55 +00:00
2026-06-15 13:25:42 -07:00
2026-10-21 16:43:30 +00:00
2026-10-21 16:43:30 +00:00
2026-05-22 16:52:53 +00:00
2026-09-09 22:45:00 +00:00
2026-04-30 11:42:07 -07:00
2026-04-20 10:44:03 -07:00
2026-04-07 11:22:28 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-04-13 17:46:56 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-04-07 11:22:28 -07:00
2026-03-24 15:52:13 -07:00
2026-04-07 11:22:28 -07:00
2026-04-07 11:22:28 -07:00
2026-03-13 14:42:20 -07:00
2026-03-13 14:42:20 -07:00
2026-09-22 06:36:09 +00:00
2026-09-22 06:36:09 +00:00
2026-09-22 06:36:09 +00:00
2026-09-22 06:36:09 +00:00
2026-05-22 16:52:53 +00:00
2026-10-19 21:43:19 +00:00
2026-10-27 05:22:23 +00:00
2026-10-26 20:54:35 +00:00
2026-06-22 04:25:07 -07:00
2026-04-22 20:34:15 +00:00
2026-10-23 18:39:28 +00:00
2026-10-23 18:39:28 +00:00
2026-10-23 18:39:28 +00:00
2026-10-23 18:39:28 +00:00
2026-10-27 19:43:27 +00:00
2026-09-04 19:56:31 +00:00
2026-09-04 19:56:31 +00:00
2026-10-27 19:43:27 +00:00
2026-09-27 21:07:54 +00:00
2026-10-16 19:26:46 +00:00
2026-08-24 21:39:48 +00:00
2026-07-09 17:05:37 -07:00
2026-04-13 20:37:11 -07:00
2026-04-13 20:37:11 -07:00
2026-04-19 23:22:49 -07:00
2026-04-19 23:22:49 -07:00
2026-04-23 13:00:46 -07:00
2026-04-23 13:00:46 -07:00
2026-09-22 10:42:50 +00:00
2026-08-18 11:51:21 +00:00
2026-08-20 17:49:35 +00:00
2026-09-29 14:46:33 +00:00
2026-08-12 00:01:01 +00:00
2026-09-29 14:46:33 +00:00
2026-06-25 21:50:36 +00:00
2026-04-11 04:39:19 +00:00
2026-04-11 04:39:19 +00:00
2026-02-13 16:26:32 -08:00
2026-09-30 00:08:55 +00:00
2026-04-29 01:36:19 +00:00
2026-10-02 22:55:08 +00:00
2026-10-28 21:33:02 +00:00
2026-02-17 11:02:23 -08:00
2026-06-22 19:51:03 -07:00
2026-04-22 22:24:12 -07:00
2026-09-02 21:01:04 +00:00
2026-08-13 00:30:08 +00:00
2026-05-20 02:42:56 +00:00
2026-06-22 13:48:09 -07:00
2026-05-18 03:11:54 -07:00
2026-09-25 08:25:37 +00:00
2026-08-10 03:28:19 +00:00
2026-06-11 10:34:41 -07:00
2026-07-21 16:30:17 +00:00
2026-09-25 08:25:37 +00:00
2026-04-17 16:47:58 -07:00
2026-10-18 22:43:56 +00:00
2026-09-01 00:50:11 +00:00
2026-09-01 00:50:11 +00:00
2026-05-13 00:50:29 -07:00
2026-05-13 00:50:29 -07:00
2026-04-29 23:49:20 -07:00
2026-04-29 23:49:20 -07:00
2026-04-29 23:49:20 -07:00
2026-09-25 08:25:37 +00:00
2026-05-08 20:46:39 -07:00
2026-07-24 22:14:12 +00:00
2026-07-17 21:29:51 +00:00
2026-05-08 20:46:39 -07:00
2026-05-01 00:16:25 -07:00
2026-05-01 00:16:25 -07:00
2026-04-17 16:47:58 -07:00
2026-03-09 12:40:25 -07:00
2026-10-27 21:51:50 +00:00
2026-05-04 16:43:58 -07:00
2026-08-17 04:01:37 +00:00
2026-09-01 05:17:11 +00:00
2026-10-10 01:25:00 +00:00
2026-05-15 14:33:24 -07:00
2026-10-28 07:12:32 +00:00
2026-10-28 07:12:32 +00:00
2026-04-17 21:41:57 -07:00
2026-04-17 21:41:57 -07:00
2026-02-27 12:45:59 -08:00
2026-03-03 17:01:00 -08:00
2026-03-23 12:57:40 -07:00
2026-05-28 21:14:34 -07:00
2026-05-28 21:14:34 -07:00
2026-05-07 20:56:42 -07:00
2026-10-06 21:29:35 +00:00
2026-08-18 06:48:12 +00:00
2026-04-22 10:38:19 -07:00
2026-04-22 10:38:19 -07:00
2026-02-17 14:53:58 -08:00
2026-09-10 15:52:09 +00:00
2026-09-10 15:52:09 +00:00
2026-09-10 15:52:09 +00:00
2026-09-10 15:52:09 +00:00
2026-10-01 20:47:05 +00:00
2026-10-01 20:47:05 +00:00
2026-09-10 15:52:09 +00:00
2026-09-10 15:52:09 +00:00
2026-09-10 15:52:09 +00:00
2026-02-25 13:14:30 -08:00
2026-02-03 18:15:55 -08:00
2026-02-03 18:15:55 -08:00
2026-06-10 11:22:12 -07:00
2026-06-10 11:22:12 -07:00
2026-06-10 11:22:12 -07:00
2026-08-25 19:06:42 +00:00
2026-10-27 19:43:27 +00:00
2026-04-24 20:53:41 -07:00
2026-09-30 11:58:03 +00:00
2026-05-20 15:07:35 -07:00
2026-05-20 15:07:35 -07:00
2026-05-20 15:07:35 -07:00
2026-09-30 11:58:03 +00:00
2026-05-20 15:07:35 -07:00
2026-05-18 11:28:53 -07:00
2026-04-13 16:11:05 -07:00
2026-04-13 16:11:05 -07:00
2026-09-25 17:57:32 +00:00
2026-10-27 19:43:27 +00:00
2026-10-07 06:07:47 +00:00
2026-10-27 19:43:27 +00:00
2026-07-29 18:37:22 +00:00
2026-10-27 19:43:27 +00:00
2026-09-30 04:48:50 +00:00
2026-08-17 04:01:37 +00:00
2026-08-13 23:38:02 +00:00
2026-08-25 19:06:42 +00:00
2026-10-27 19:43:27 +00:00
2026-10-09 02:59:21 +00:00
2026-02-25 09:59:10 -08:00
2026-02-25 09:59:10 -08:00
2026-02-25 09:59:10 -08:00
2026-08-25 01:03:20 +00:00
2026-08-25 01:03:20 +00:00
2026-08-25 01:03:20 +00:00
2026-03-16 21:38:07 -07:00
2026-04-07 15:43:38 -07:00
2026-07-15 05:59:37 +00:00
2026-04-14 00:13:13 -07:00
2026-04-14 00:13:13 -07:00
2026-10-10 01:25:00 +00:00
2026-10-27 19:43:27 +00:00
2026-08-13 21:45:02 +00:00
2026-08-25 19:03:27 +00:00
2026-10-27 19:43:27 +00:00
2026-08-10 23:32:42 +00:00
2026-08-10 23:32:42 +00:00
2026-07-31 19:08:45 +00:00
2026-07-31 19:08:45 +00:00
2026-07-28 05:26:16 +00:00
2026-08-10 23:32:42 +00:00
2026-07-29 18:37:22 +00:00
2026-07-29 18:37:22 +00:00
2026-08-10 23:32:42 +00:00
2026-08-10 23:32:42 +00:00
2026-09-15 23:39:40 +00:00
2026-08-28 18:07:40 +00:00
2026-03-18 23:42:40 -06:00
2026-10-27 19:43:27 +00:00
2026-09-15 23:39:40 +00:00
2026-10-27 19:43:27 +00:00
2026-02-18 15:20:03 -08:00
2026-07-16 00:22:53 +00:00
2026-08-25 19:03:27 +00:00
2026-10-27 19:43:27 +00:00
2026-02-17 14:53:58 -08:00
2026-10-27 19:43:27 +00:00
2026-02-25 13:14:30 -08:00
2026-02-25 13:14:30 -08:00
2026-10-27 19:43:27 +00:00
2026-06-05 02:41:06 -07:00
2026-10-27 19:43:27 +00:00
2026-10-26 18:23:07 +00:00
2026-10-27 19:43:27 +00:00
2026-10-26 18:23:07 +00:00
2026-02-06 00:35:04 +00:00
2026-04-17 18:11:47 -07:00
2026-05-05 09:58:23 -07:00
2026-02-18 13:03:16 -08:00
2026-03-08 18:07:46 -07:00
2026-02-18 13:03:16 -08:00