Skip to content

[Bug] "Exec completed" system message causes duplicate user message processing #25959

@udolfAI

Description

@udolfAI

Summary

"Exec completed" system message causes duplicate user message processing, resulting in duplicate replies to users.

Steps to reproduce

  1. Configure Feishu or Telegram channel
  2. Send a message via the chat platform
  3. Agent starts a background exec process to handle the request
  4. Exec process completes, triggers "Exec completed" system message
  5. System message contains original user message content and re-triggers agent
  6. Agent processes the same message twice and sends two identical replies

Expected behavior

Agent processes each user message only once and sends a single reply.

Actual behavior

Agent sends two identical replies to the same user message.

OpenClaw version

2026.2.23 (or latest)

Operating system

Ubuntu 24.04

Install method

No response

Logs, screenshots, and evidence

Impact and severity

Who is affected: All users of channels (Feishu, Telegram, etc.)
Severity: Medium - causes user confusion and wastes API tokens
Frequency: Every time an exec process completes during message handling

Additional information

"Exec completed" system event should not carry user message content to re-trigger the conversation, or should be clearly marked as a system event rather than a user message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions