Cian Johnston
0c27224fc2
fix(coderd): pass title API key context ( #25723 )
...
Fixes CODAGT-503
- Add failing-first coverage for manual title generation with missing
message `api_key_id`, with both context fallback and fail-closed cases.
- Set `aibridge.WithDelegatedAPIKeyID(ctx, apiKey.ID)` in
`regenerateChatTitle` and `proposeChatTitle`.
- In `generateManualTitleCandidate`, fall back to
`aibridge.DelegatedAPIKeyIDFromContext(ctx)` only when
`modelBuildOptionsFromMessages` yields an empty `ActiveAPIKeyID`.
- Keep `modelBuildOptionsFromMessages` pure and leave automatic title
generation unchanged.
2026-05-27 13:20:36 +01:00
..
2026-05-19 17:57:14 +02:00
2026-05-22 20:24:38 +10:00
2026-05-27 09:45:36 +01:00
2026-05-22 20:24:38 +10:00
2026-05-04 20:30:50 +02:00
2026-05-21 08:12:34 +00:00
2026-05-27 11:13:39 +00:00
2026-05-08 15:52:42 +10:00
2026-05-20 01:28:02 +10:00
2026-05-04 11:17:19 +02:00
2026-05-26 11:11:47 +03:00
2026-05-04 11:17:19 +02:00
2026-03-30 11:43:59 +00:00
2026-05-12 08:54:53 -04:00
2026-05-26 19:31:52 +00:00
2026-05-22 20:24:38 +10:00
2026-05-18 12:30:30 -04:00
2026-05-26 19:31:52 +00:00
2026-05-26 19:31:52 +00:00
2026-05-26 19:31:52 +00:00
2026-05-27 13:20:36 +01:00
2026-05-08 02:07:33 +10:00
2026-05-26 19:31:52 +00:00
2026-05-22 20:24:38 +10:00
2026-05-22 09:50:01 +02:00
2026-04-09 16:33:00 +02:00
2026-05-22 20:24:38 +10:00
2026-03-27 18:47:39 +11:00
2026-05-20 01:37:38 +02:00
2026-04-08 11:54:44 -04:00
2026-04-08 11:54:44 -04:00
2026-05-12 22:13:55 +10:00
2026-05-22 14:08:07 +00:00
2026-04-09 16:33:00 +02:00
2026-05-12 14:50:30 +02:00
2026-05-22 07:53:23 +02:00
2026-05-26 19:31:52 +00:00
2026-05-26 19:31:52 +00:00
2026-05-26 19:31:52 +00:00
2026-05-26 19:31:52 +00:00
2026-05-05 00:57:51 +02:00
2026-05-05 00:57:51 +02:00
2026-05-22 14:08:07 +00:00
2026-05-26 19:31:52 +00:00
2026-05-26 19:31:52 +00:00
2026-05-01 13:29:33 +01:00
2026-04-22 20:11:53 +10:00
2026-03-25 14:09:24 +00:00
2026-03-25 14:09:24 +00:00
2026-05-22 20:24:38 +10:00
2026-04-22 20:11:53 +10:00
2026-05-11 17:27:03 -04:00
2026-05-22 02:17:09 +02:00
2026-05-01 13:29:33 +01:00
2026-05-26 19:31:52 +00:00
2026-05-01 13:29:33 +01:00
2026-05-26 19:31:52 +00:00
2026-05-21 10:35:41 +03:00
2026-05-12 22:13:55 +10:00
2026-05-27 13:20:36 +01:00
2026-05-26 19:31:52 +00:00
2026-05-22 09:50:01 +02:00
2026-05-22 20:24:38 +10:00
2026-04-14 16:56:17 +01:00