EthanGuo-coder
26933c2f59
fix(agent/gemini-cloudcode): seed delta defaults for reasoning-only stream chunks
...
_make_stream_chunk built delta_kwargs with only `role`, so a reasoning-only
chunk produced a SimpleNamespace without a `.content` attribute. Downstream
consumers that read `delta.content` then raised AttributeError on Gemini 2.5
Flash, where the thinking delta arrives before any content delta.
Seed `content`, `tool_calls`, `reasoning`, and `reasoning_content` as None
up front, matching the pattern already used in gemini_native_adapter.py.
Key-present arguments still override the defaults.
Fixes #24974
References: Related open PR #24984 (luyao618) applies the same 1-line fix; this PR adds a regression test that #24984 omits
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-14 08:03:56 -07:00
..
2026-05-12 17:02:35 -07:00
2026-05-14 07:55:09 -07:00
2026-02-26 13:54:20 +03:00
2026-05-07 05:43:20 -07:00
2026-04-24 07:14:00 -07:00
2026-05-05 17:23:45 -07:00
2026-04-19 22:43:09 -07:00
2026-05-12 13:59:22 -04:00
2026-05-09 02:47:28 -07:00
2026-04-27 08:35:50 -07:00
2026-04-30 20:18:44 -07:00
2026-04-28 06:50:14 -07:00
2026-05-08 14:55:40 -07:00
2026-05-07 05:17:16 -07:00
2026-04-24 07:26:07 -07:00
2026-04-29 23:23:50 -07:00
2026-04-14 01:43:45 -07:00
2026-04-27 06:27:59 -07:00
2026-05-05 04:42:44 -07:00
2026-05-13 22:25:16 -07:00
2026-04-10 19:15:50 -07:00
2026-04-20 01:56:41 -07:00
2026-04-29 20:05:32 -07:00
2026-04-19 18:12:55 -07:00
2026-05-07 06:15:33 -07:00
2026-04-07 17:19:07 -07:00
2026-04-30 10:31:47 -07:00
2026-05-02 01:29:57 -07:00
2026-05-10 06:44:53 -07:00
2026-04-30 23:04:50 -07:00
2026-05-04 02:19:28 -07:00
2026-04-29 08:10:29 -07:00
2026-04-20 22:14:29 -07:00
2026-03-15 20:21:21 -07:00
2026-05-13 06:46:23 -07:00
2026-05-09 17:54:07 -07:00
2026-05-08 16:39:32 -07:00
2026-03-29 00:33:30 -07:00
2026-05-14 08:03:56 -07:00
2026-05-05 10:14:48 -07:00
2026-04-24 04:46:17 -07:00
2026-04-24 05:35:17 -07:00
2026-04-24 03:40:00 -07:00
2026-05-10 07:14:14 -07:00
2026-04-21 21:30:10 -07:00
2026-05-07 05:58:11 -07:00
2026-04-20 23:20:33 -07:00
2026-04-29 06:35:42 -07:00
2026-04-22 14:46:10 -07:00
2026-05-11 16:49:13 -07:00
2026-04-24 14:37:55 -07:00
2026-05-05 15:09:59 -07:00
2026-04-22 05:27:10 -07:00
2026-04-07 22:23:28 -07:00
2026-05-05 13:40:01 -07:00
2026-04-28 12:27:36 -07:00
2026-04-24 03:00:33 -07:00
2026-05-12 11:59:31 -07:00
2026-05-09 13:32:38 -07:00
2026-04-30 23:14:31 -07:00
2026-04-26 04:53:42 -07:00
2026-04-29 08:08:36 -07:00
2026-05-05 10:13:34 -07:00
2026-05-10 07:09:28 -07:00
2026-05-12 20:49:20 -07:00
2026-05-09 02:22:40 -07:00
2026-05-12 20:46:04 -07:00
2026-04-21 05:52:46 -07:00
2026-04-09 03:43:14 -07:00
2026-04-20 11:49:54 -07:00
2026-04-26 20:48:35 -07:00
2026-04-20 20:53:51 -07:00
2026-04-29 21:07:47 -07:00
2026-05-07 04:59:43 -07:00
2026-04-30 20:37:15 -07:00
2026-04-27 12:37:33 -07:00
2026-04-21 14:23:45 -07:00
2026-04-20 20:53:51 -07:00
2026-04-09 03:10:30 -07:00
2026-05-05 04:33:38 -07:00
2026-05-04 12:07:17 -07:00
2026-05-13 06:46:23 -07:00
2026-05-13 06:46:23 -07:00
2026-05-08 14:55:40 -07:00
2026-04-25 08:21:14 -07:00
2026-05-12 16:32:57 -07:00
2026-05-13 16:39:41 -07:00
2026-05-04 05:05:43 -07:00