# NousResearch/hermes-agent · enforce_turn_budget crash on multimodal tool results

## Open now

- Nothing open on GitHub.

A bug where enforce_turn_budget incorrectly treats multimodal tool results as strings, causing an AttributeError. The associated fixes make the function skip multimodal results and count only text parts.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #133815. Verify it addresses your case.
- **Recommended:** read PR #133815 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #126945: \[Bug\] \`enforce_turn_budget\` treats a multimodal tool result as a string and crashes the turn with \`AttributeError\`

## Prior & competing PRs

- **#133815: Vision models see MCP image results; every image tool honours image_input_mode (salvage #131374)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/tool_dispatch_helpers.py`, `agent/tool_executor.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_tool_dispatch_helpers.py`, `tests/computer_use/test_cua_perf_knobs.py`, `tests/tools/test_computer_use_capture_routing.py`, `tests/tools/test_computer_use_vision_routing.py`, `tests/tools/test_mcp_image_content.py`, `tests/tools/test_multiplex_tool_cache_scope.py`, `tests/tools/test_tool_result_storage.py`, `tools/AGENTS.md`, `tools/computer_use/tool.py`, `tools/computer_use/vision_routing.py`, `tools/mcp_tool_content.py`, `tools/mcp_tool_handlers.py`, `tools/mcp_tool_registration.py`, `tools/tool_result_storage.py`, `tools/vision_tools.py`, `website/docs/user-guide/features/mcp.md`, `website/docs/user-guide/features/vision.md`
- **#126954: fix(tools): enforce_turn_budget skips multimodal results, counts text parts**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `a3ab152cd534`, `#126945`, `#133815`
- **#127119: fix(tools): enforce_turn_budget skips multimodal results, counts text parts**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#127159`
- **#127159: fix(tools): enforce_turn_budget skips multimodal results, counts text parts**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `a3ab152cd534`, `#126945`, `#133815`

## Fix status

- Merged to main in PR #133815 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-07`.
- Subsystem: `agent`
