Mathias Fredriksson
b0a571888c
refactor(coderd/x/chatd): validate model overrides once ( #31347 )
...
`SendMessage`, `EditMessage` and `EditQueuedMessage` validate a
requested model config once, before hooks and the chat transaction.
Model config writes serialize on an organization advisory lock that
chat transactions do not take, so a second check under the chat row
lock could not stop a concurrent disable. If the config is disabled
after the check, the turn runs on the organization default model.
Fallback resolution stays in the transaction because it reads the
locked chat.
Refs CODAGT-971
2026-10-30 15:03:28 +00:00
..
2026-10-19 14:02:46 +11:00
2026-10-29 23:24:18 +01:00
2026-10-27 12:46:27 +02:00
2026-09-21 12:26:09 +02:00
2026-10-27 01:06:49 +01:00
2026-10-30 15:52:22 +02:00
2026-10-26 09:12:30 +00:00
2026-10-30 02:00:59 +00:00
2026-10-26 09:12:30 +00:00
2026-09-28 09:25:01 +00:00
2026-10-27 09:56:02 +00:00
2026-10-30 14:23:13 +00:00
2026-10-29 19:50:34 +00:00
2026-10-29 13:00:05 +01:00
2026-07-02 11:22:56 +01:00
2026-10-23 12:53:40 +11:00
2026-08-25 16:57:27 +07:00
2026-10-26 17:55:48 +01:00
2026-10-29 17:30:20 +01:00
2026-10-26 17:55:52 +01:00
2026-10-26 17:55:52 +01:00
2026-10-26 17:55:52 +01:00
2026-10-26 17:55:52 +01:00
2026-10-22 07:55:42 +00:00
2026-10-22 07:55:42 +00:00
2026-10-29 23:24:18 +01:00
2026-10-27 22:48:18 +00:00
2026-10-01 16:42:51 +02:00
2026-10-27 22:48:18 +00:00
2026-10-01 16:42:51 +02:00
2026-10-30 15:52:22 +02:00
2026-10-20 09:29:57 +00:00
2026-10-01 16:40:24 +02:00
2026-10-30 15:52:22 +02:00
2026-10-01 16:40:24 +02:00
2026-09-30 11:53:57 -05:00
2026-10-13 22:57:46 +02:00
2026-10-30 15:03:28 +00:00
2026-10-20 22:11:25 +00:00
2026-09-05 11:39:10 +02:00
2026-10-30 15:03:28 +00:00
2026-09-18 15:24:15 +10:00
2026-10-30 15:52:22 +02:00
2026-10-30 15:03:28 +00:00
2026-07-20 19:49:19 +02:00
2026-10-20 13:06:57 +02:00
2026-10-13 13:49:12 +02:00
2026-10-13 13:49:12 +02:00
2026-10-29 13:00:05 +01:00
2026-10-29 23:24:18 +01:00
2026-10-29 23:24:18 +01:00
2026-10-27 18:28:16 +00:00
2026-10-27 18:28:16 +00:00
2026-10-27 18:28:16 +00:00
2026-10-21 14:18:12 +00:00
2026-10-21 14:18:12 +00:00
2026-10-19 14:02:47 +11:00
2026-10-02 12:58:53 +00:00
2026-10-14 14:55:29 -07:00
2026-10-14 14:55:29 -07:00
2026-10-13 13:49:12 +02:00
2026-09-30 11:53:58 -05:00
2026-10-29 20:32:56 +01:00
2026-10-22 07:55:42 +00:00
2026-10-30 02:00:59 +00:00
2026-10-29 20:32:56 +01:00
2026-10-05 11:47:24 -07:00
2026-10-27 22:48:18 +00:00
2026-10-30 15:52:22 +02:00
2026-10-12 09:53:45 +11:00
2026-10-29 20:32:56 +01:00
2026-10-12 09:53:45 +11:00
2026-09-26 21:39:40 +02:00
2026-10-29 19:50:34 +00:00
2026-08-26 11:57:56 -06:00
2026-10-23 12:53:40 +11:00
2026-10-23 12:53:40 +11:00
2026-10-11 19:57:49 +02:00
2026-10-11 19:57:49 +02:00
2026-10-19 14:02:47 +11:00
2026-10-29 20:32:56 +01:00
2026-10-29 20:32:56 +01:00
2026-10-19 12:38:17 +00:00
2026-10-27 18:18:41 -04:00
2026-10-27 18:18:41 -04:00
2026-10-27 19:31:51 +00:00
2026-10-29 23:24:18 +01:00
2026-10-29 23:24:18 +01:00
2026-10-29 13:00:05 +01:00
2026-10-29 13:00:05 +01:00
2026-10-29 13:00:05 +01:00
2026-10-29 13:00:05 +01:00
2026-09-30 11:53:58 -05:00
2026-10-29 13:00:05 +01:00
2026-10-29 20:32:56 +01:00
2026-10-29 12:53:50 +00:00
2026-07-29 11:39:12 +00:00
2026-09-30 12:20:03 +02:00
2026-10-27 18:18:41 -04:00
2026-10-27 18:18:41 -04:00
2026-10-23 19:32:08 +07:00
2026-10-21 19:47:50 +07:00
2026-10-29 17:30:20 +01:00
2026-10-30 01:30:11 +00:00
2026-10-30 01:30:11 +00:00
2026-10-27 10:14:11 +01:00
2026-10-30 15:52:22 +02:00
2026-10-30 15:52:22 +02:00
2026-10-29 13:00:05 +01:00
2026-10-27 23:10:37 +00:00
2026-10-27 23:10:37 +00:00
2026-10-01 16:42:51 +02:00
2026-10-27 10:14:19 +01:00
2026-10-30 15:52:22 +02:00
2026-10-29 12:53:50 +00:00
2026-10-29 12:53:50 +00:00
2026-09-30 11:53:58 -05:00
2026-09-30 11:53:58 -05:00
2026-07-29 11:39:12 +00:00
2026-09-28 09:25:01 +00:00
2026-09-28 09:25:01 +00:00
2026-10-02 13:02:41 +02:00
2026-10-19 19:15:56 +02:00
2026-10-19 19:15:56 +02:00
2026-10-05 11:47:24 -07:00
2026-09-04 08:55:15 +01:00
2026-10-01 14:10:21 +02:00
2026-10-30 02:00:59 +00:00
2026-10-19 14:02:46 +11:00
2026-10-30 15:58:05 +02:00
2026-10-27 16:13:00 +01:00
2026-10-30 15:58:05 +02:00
2026-09-11 20:17:23 +00:00
2026-09-25 15:30:21 +01:00
2026-07-18 20:45:13 +02:00
2026-10-27 22:48:18 +00:00
2026-10-05 11:47:24 -07:00
2026-10-27 10:23:01 +01:00
2026-10-27 10:23:01 +01:00
2026-10-27 11:29:10 +11:00
2026-09-24 14:02:06 +10:00
2026-10-15 14:39:21 +11:00
2026-10-27 10:14:11 +01:00
2026-09-17 15:09:19 +02:00
2026-09-17 15:09:19 +02:00
2026-10-30 02:00:59 +00:00
2026-10-30 02:00:59 +00:00
2026-10-30 15:52:22 +02:00
2026-10-30 15:52:22 +02:00
2026-09-27 16:38:30 +02:00
2026-10-27 22:48:18 +00:00
2026-09-30 11:53:58 -05:00
2026-10-01 16:42:51 +02:00
2026-10-30 15:52:22 +02:00