Teknium
13eb190479
fix(tools): image-bearing tool results stay inside the turn budget; spills and refusals keep their content (review)
...
Greptile on b17398db089:
- `enforce_turn_budget` took `len(content)` of every tool message. An
image-bearing result reaches it as a part list, so it counted parts,
not characters: six 60K-char MCP results with screenshots totalled
~18 "chars" and nothing was spilled. Part lists now count their text
characters and spill their largest text part (images stay inline).
- `_persist_multimodal_text_parts` spilled every text part under the same
tool_call_id, so with a small `tool_budget.mcp_result_size_chars` the
notes part overwrote the tool text's spill file. Each spilled part now
gets its own id.
- When `vision.max_calls_per_image` refused every image, the refusal lines
were appended after the handler's JSON closing brace. They now go into
the envelope's `result`.
2026-10-06 22:54:13 -07:00
..
2026-10-06 22:54:13 -07:00
2026-10-07 01:01:14 +05:30
2026-10-07 01:29:02 +05:30
2026-10-06 22:54:13 -07:00
2026-10-06 14:22:13 -07:00
2026-10-06 14:22:13 -07:00
2026-10-05 01:15:16 -07:00
2026-10-06 14:22:13 -07:00
2026-10-06 14:22:13 -07:00
2026-10-05 17:10:58 -07:00
2026-10-05 17:10:58 -07:00
2026-10-05 16:42:57 -05:00
2026-10-05 01:15:16 -07:00
2026-10-06 14:51:26 -04:00
2026-10-05 16:40:38 -05:00
2026-10-05 16:40:38 -05:00
2026-10-05 16:46:53 -05:00
2026-10-06 15:39:24 +00:00
2026-10-06 15:39:24 +00:00
2026-10-06 15:39:24 +00:00
2026-10-06 15:39:24 +00:00
2026-10-06 15:39:24 +00:00
2026-10-05 01:15:16 -07:00
2026-10-07 11:19:10 +05:30
2026-10-04 00:10:54 +05:30
2026-10-03 10:26:12 -07:00
2026-10-07 01:01:14 +05:30
2026-10-04 12:42:25 -05:00
2026-10-06 22:54:13 -07:00
2026-10-04 12:42:25 -05:00
2026-10-06 22:54:13 -07:00
2026-10-06 22:54:13 -07:00
2026-10-05 16:47:32 -05:00
2026-10-05 22:07:41 -07:00
2026-10-05 22:07:41 -07:00
2026-10-06 15:39:24 +00:00
2026-10-06 00:00:57 -04:00
2026-10-05 14:35:39 -04:00
2026-10-07 01:03:03 +05:30
2026-10-07 01:03:03 +05:30
2026-10-07 01:03:03 +05:30
2026-10-05 18:39:43 -05:00
2026-10-04 00:08:20 -07:00
2026-10-05 18:39:43 -05:00
2026-10-03 23:05:48 -07:00
2026-10-03 23:05:48 -07:00
2026-10-06 12:00:47 -04:00
2026-10-03 23:05:48 -07:00
2026-10-05 15:56:28 -07:00
2026-10-05 15:56:28 -07:00
2026-10-05 15:56:28 -07:00
2026-10-05 16:00:48 -07:00
2026-10-05 00:23:05 -07:00
2026-10-03 23:05:48 -07:00
2026-10-05 20:08:11 +05:30
2026-10-05 20:08:11 +05:30
2026-10-06 14:22:13 -07:00
2026-10-06 09:53:34 -04:00
2026-10-06 02:53:56 -07:00
2026-10-06 22:54:13 -07:00
2026-10-04 11:56:08 +05:30
2026-10-07 01:01:14 +05:30
2026-10-07 01:02:34 +05:30
2026-10-07 01:02:34 +05:30
2026-10-06 12:08:49 -07:00
2026-10-06 12:08:49 -07:00
2026-10-05 16:40:15 -05:00
2026-10-06 22:01:38 -07:00
2026-10-06 22:01:38 -07:00
2026-10-06 12:50:31 -07:00
2026-10-06 12:08:49 -07:00
2026-10-05 12:37:46 -04:00
2026-10-06 00:52:41 -07:00
2026-10-06 00:52:41 -07:00
2026-10-05 16:42:22 -05:00
2026-10-06 22:54:13 -07:00
2026-10-06 12:50:31 -07:00
2026-10-06 12:50:31 -07:00
2026-10-06 02:53:56 -07:00
2026-10-05 20:08:11 +05:30