Skip to content

[Bug]: blender agent hangs in tool execution #1022

@klkr1

Description

@klkr1

Quick check

  • I've searched existing issues and didn't find a duplicate.
  • This issue relates to Gaia Agent UI (gaia chat --ui).
  • This issue relates to a CLI command (gaia ...) or the SDK.

GAIA version

0.17.6

What happened?

  1. install blender mcp server (blender 4.5.2) and run it on port 9876
  2. run gaia blender --example 1 --logging-level DEBUG
  3. gaia hangs in tool execution, Executing animation runs, cannot be interrupted with "CTRL+C"

GAIA debug log:
[2026-05-08 22:11:26] | DEBUG | gaia.agents.base.agent._parse_llm_response | agent.py:1090 | [PARSE] Valid JSON response
[2026-05-08 22:11:26] | DEBUG | gaia.agents.base.agent._process_query_impl | agent.py:2593 | Parsed response: {'thought': 'The user wants to clear the current Blender scene to start fresh. This is a simple single-step operation using the clear_scene function.', 'goal': 'Remove all objects from the current Blender scene', 'tool': 'clear_scene', 'tool_args': {}}
🧠 Thought: The user wants to clear the current Blender scene to start fresh. This is a simple single-step operation
using the clear_scene function.
🎯 Goal: Remove all objects from the current Blender scene
[2026-05-08 22:11:26] | DEBUG | gaia.agents.base.agent._process_query_impl | agent.py:2832 | Tool call detected: clear_scene with args {}

🔧 Executing operation
Tool: clear_scene
[2026-05-08 22:11:26] | DEBUG | gaia.agents.base.agent._execute_tool | agent.py:1354 | Executing tool clear_scene with args: {}
⠹ Executing clear_scene

Blender MCP server log:
SimpleMCP server started on localhost:9876
Connected to client: ('127.0.0.1', 65360)
Client handler started
Client disconnected
Client handler stopped
Connected to client: ('127.0.0.1', 64412)
Client handler started
Executing handler for execute_code

----- EXECUTING CODE IN BLENDER -----

import bpy

Select all objects

bpy.ops.object.select_all(action='SELECT')

Delete all selected objects

bpy.ops.object.delete()

Return info about the cleared scene

object_count = len(bpy.context.scene.objects)
result = {
"object_count": object_count,
"message": "Scene cleared successfully"
}

print("Scene cleared successfully")

----- CODE EXECUTION OUTPUT -----
Scene cleared successfully
----- CODE EXECUTION COMPLETE -----
----- RETURNED RESULT -----
{'object_count': 0, 'message': 'Scene cleared successfully'}

Handler execution complete

What did you expect to happen?

gaia blender should finish the tool execution

Acceptance criteria

  • 'gaia blender' should finish cleanly after tool execution

Environment

OS: Windows 11 25H2
CPU: AMD Ryzen 7 3700X
GPU: AMD Radeon RX 9060 XT
Lemonade: 10.3.0
Installer: Gaia UI and uv
Blender 4.5.2

Metadata

Metadata

Labels

bugSomething isn't workingtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions