AI Assistant does not execute tools or follow instructions properly #109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Hero AI Assistant (via hero_agent) does not execute commands when asked. Instead of running tools (Python scripts, shell commands, MCP calls), it lists its capabilities and asks what to do.
Example: Asked "write a python uv script to generate 50 random numbers and tell them to me" — it listed capabilities (File operations, Shell commands, Code generation...) but did not execute anything.
Expected
The AI Assistant should use its MCP tools to execute the request, as it did in earlier versions (v0.8.7-dev and before).
Context
Investigation
Repos to check
Fixed in v0.9.1-dev.
Root cause: The agent saved user messages to OSIS then loaded them from history to build the LLM request. OSIS was unreachable, so user messages were lost — the LLM only received the system prompt with 62 tools and no user question.
Fix: Added safety check in
hero_agent/crates/hero_agent/src/agent.rs(bothhandle_messageandquick_response) ensuring the current user message is always in the messages vector regardless of OSIS availability.Commit:
lhumina_code/hero_agent@26b5909Verified: Shell commands, Python/uv scripts, MCP tools, file operations all working.
Signed-off-by: mik-tf