Skip to content

Agents: prevent silent message-tool drops#717

Merged
steipete merged 3 commits into
openclaw:mainfrom
theglove44:fix/message-tool-send-requires-to
Jan 11, 2026
Merged

Agents: prevent silent message-tool drops#717
steipete merged 3 commits into
openclaw:mainfrom
theglove44:fix/message-tool-send-requires-to

Conversation

@theglove44

@theglove44 theglove44 commented Jan 11, 2026

Copy link
Copy Markdown

Issue

Discord replies can be silently dropped when the message tool is called without to. The tool fails, but the agent suppresses the fallback reply.

Investigation

Logs show message failed: to required followed by Skipping block reply - already sent via messaging tool, so the send failure is treated as success.

Root Cause

The message tool schema + system prompt didn’t require to for action=send, and tool errors returned {status:"error"} without flipping isError, so dedupe logic treated failures as successful sends.

Solution

Treat tool results with {status:"error"|"timeout"} as failures to keep fallback replies, and require to + message for action=send in the tool schema; clarify prompt guidance.

Tests

Not run (not requested).

@theglove44 theglove44 changed the title fix: harden message tool sends Agents: prevent silent message-tool drops Jan 11, 2026
@steipete steipete force-pushed the fix/message-tool-send-requires-to branch from 956aeaa to 99fcc82 Compare January 11, 2026 11:05
@steipete steipete merged commit 225b44a into openclaw:main Jan 11, 2026
5 of 20 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Landed via temp rebase onto main.\n\n- Gate: skipped (per request)\n- Land commit: 99fcc82\n- Merge commit: 225b44a\n\nThanks @theglove44!

lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…-requires-to

Agents: prevent silent message-tool drops
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
…-requires-to

Agents: prevent silent message-tool drops
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants