-
-
Notifications
You must be signed in to change notification settings - Fork 67.7k
Agent silent failure: tool errors cause no response to user #12595
Copy link
Copy link
Closed as not planned
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
- OpenClaw version: 2026.2.6-3
- OS: Linux (WSL2) 6.6.87.2-microsoft-standard-WSL2
- Runtime: systemd
- Model: google-antigravity/claude-sonnet-4-5-thinking
- Channel: Telegram
Bug Summary
Agent experiences tool execution error and fails to send any response to the user, resulting in complete silence instead of graceful error handling. User is left without any indication that something went wrong.
Expected Behavior
When a tool execution fails:
- Agent should catch the error
- Send user a response explaining the issue
- Optionally retry or suggest alternatives
Actual Behavior
When certain tool errors occur:
- Tool fails with error (e.g., "missing tool result in session history")
- Agent sends NO response at all
- Session appears to "freeze" or "sleep"
- User must send another message to wake agent
- Agent then continues as if nothing happened
Reproduction Steps
- Execute a tool command that triggers a session history error
- In this case:
execcommand to create directory (mkdir -p) - Tool returns:
"[openclaw] missing tool result in session history; inserted synthetic error result for transcript repair." - Observe: Agent fails to send any response
- Send another message to agent
- Observe: Agent wakes up and responds normally
Timeline Evidence
User perspective:
- 17:51 - User: "Start with 3 at first. Create 1 log file per day about what you did"
- 17:51-18:27 - SILENCE (36 minutes)
- 18:27 - User: "Hi ?"
- 18:28 - Agent: Responds and completes the task
What happened internally:
- Agent attempted
mkdircommand - Hit "missing tool result in session history" error
- Generated no user-facing response
- Session effectively froze until next user message
Error Message
[openclaw] missing tool result in session history; inserted synthetic error result for transcript repair.
Impact
Critical UX issue:
- User has no idea if agent is working, broken, or stuck
- Creates confusion and breaks trust
- Forces user to "ping" agent to check if it's alive
- Degrades user experience significantly
Expected: Agent should ALWAYS respond, even if just to say "Error occurred, retrying..."
Possible Root Causes
- Tool error handling doesn't guarantee response generation
- Session history repair mechanism blocks response pipeline
- No fallback/catch-all response for unhandled errors
- Error might occur after tool call but before response generation
Suggested Fix
Add error handling layer that ensures:
- Every user message MUST receive a response
- Tool failures generate user-facing error messages
- "Synthetic error results" still trigger graceful degradation
- Timeout mechanism if no response generated after N seconds
Notes
- No configuration options found for error handling behavior
- This is different from the cron wakeMode bug (already fixed in fix(cron): share isolated announce flow + harden cron scheduling/delivery #11641)
- Silent failures are worse than visible errors - user can't debug or report properly
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.