Biser Perchinkov
b5495db701
fix(agent): re-pad reasoning_content on cross-provider fallback to require-side providers
...
api_messages is built once before the retry loop while the primary provider
is active. When a mid-conversation fallback switches to a require-side thinking
provider (DeepSeek/Kimi/MiMo), assistant turns built under a non-require primary
(e.g. Codex) go out without reasoning_content and the new provider rejects the
request with HTTP 400 ("reasoning_content must be passed back").
Re-apply the echo-back pad against the current provider immediately before
building the request kwargs. Idempotent and a no-op unless the active provider
enforces echo-back, so it covers all fallback paths without affecting normal or
reject-side operation.
Drafted by Claude (Opus 4.7) under human review while fixing a personal deployment.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-28 03:21:00 -07:00
..
2026-05-17 02:29:41 -07:00
2026-05-25 03:06:39 -07:00
2026-05-27 11:46:17 -07:00
2026-05-28 00:20:11 -07:00
2026-05-11 11:13:25 -07:00
2026-05-28 01:45:30 -07:00
2026-05-28 03:21:00 -07:00
2026-05-24 17:45:12 -07:00
2026-05-15 14:00:01 -07:00
2026-05-28 00:19:31 -07:00
2026-05-18 10:14:38 -07:00
2026-05-27 22:14:53 -07:00
2026-05-17 02:31:18 -07:00
2026-05-17 04:04:15 -07:00
2026-05-17 04:04:15 -07:00
2026-05-27 11:19:55 -07:00
2026-05-27 05:25:38 -07:00
2026-05-27 00:30:06 -07:00
2026-05-23 17:38:19 -07:00
2026-05-28 01:45:30 -07:00
2026-04-20 01:56:41 -07:00
2026-05-28 01:45:30 -07:00
2026-05-28 03:21:00 -07:00
2026-05-19 00:12:41 -07:00
2026-05-25 00:32:08 -07:00
2026-05-25 17:41:40 -07:00
2026-05-26 15:41:11 -07:00
2026-05-21 14:18:02 -07:00
2026-05-27 13:39:58 -07:00
2026-05-23 21:03:51 -07:00
2026-05-28 00:19:31 -07:00
2026-05-25 03:40:47 -07:00
2026-05-14 08:03:56 -07:00
2026-05-11 11:13:20 -07:00
2026-04-28 06:46:45 -07:00
2026-04-28 06:46:45 -07:00
2026-05-26 15:41:11 -07:00
2026-05-10 07:14:14 -07:00
2026-05-24 18:10:47 -07:00
2026-05-13 22:31:28 -07:00
2026-05-20 23:27:10 -07:00
2026-04-20 05:25:49 -07:00
2026-05-16 17:59:32 -07:00
2026-05-28 00:20:11 -07:00
2026-04-28 12:27:36 -07:00
2026-04-30 23:03:54 -07:00
2026-05-11 16:49:13 -07:00
2026-05-18 10:53:08 -07:00
2026-05-27 10:49:33 -07:00
2026-05-16 17:41:09 -07:00
2026-05-27 00:43:32 -07:00
2026-05-27 00:43:32 -07:00
2026-05-16 13:02:19 -07:00
2026-05-08 14:27:40 -07:00
2026-04-29 08:08:36 -07:00
2026-05-10 07:09:28 -07:00
2026-05-12 20:49:20 -07:00
2026-05-16 17:59:32 -07:00
2026-05-27 00:43:32 -07:00
2026-05-12 20:46:04 -07:00
2026-04-13 16:32:04 -07:00
2026-05-24 15:43:48 -07:00
2026-04-08 00:41:36 -07:00
2026-05-19 00:12:41 -07:00
2026-05-18 21:38:05 -07:00
2026-05-18 00:34:29 -07:00
2026-05-18 19:36:04 -07:00
2026-05-21 19:08:38 -07:00
2026-05-16 18:28:17 -07:00
2026-05-25 23:17:33 -07:00
2026-05-24 00:38:17 -07:00
2026-05-05 04:33:38 -07:00
2026-05-04 12:07:17 -07:00
2026-05-25 14:52:24 -07:00
2026-05-23 21:03:51 -07:00
2026-05-19 00:12:12 -07:00
2026-05-13 06:46:23 -07:00
2026-02-21 22:31:43 -08:00
2026-05-25 01:41:19 -07:00
2026-05-25 01:41:19 -07:00
2026-05-24 18:04:54 -07:00
2026-05-24 18:04:54 -07:00
2026-05-27 00:43:32 -07:00
2026-05-13 16:39:41 -07:00
2026-05-13 16:39:41 -07:00
2026-05-13 22:31:28 -07:00
2026-05-13 22:31:28 -07:00