Skip to content

Bug: Agent ignores new messages when tool call chain is paused #629

@Clawiee

Description

@Clawiee

Bug Description

When a user pauses an Agent's tool call chain and then sends a new message to the Agent, the Agent does not receive/process the new message. Instead, the Agent continues executing the previously paused tool call chain.

Current Behavior

  1. Agent is executing a tool call chain
  2. User pauses the tool call chain
  3. User sends a new message to the Agent
  4. Bug: Agent does not receive the new message
  5. Bug: Agent continues executing the paused tool call chain

Expected Behavior

  • When tool call chain is paused, Agent should be able to receive and process new messages
  • New messages should interrupt or be queued separately from the paused tool call chain
  • User should be able to communicate with Agent while tool execution is paused

Impact

  • User Experience: Users cannot communicate with Agent during paused state
  • Control Loss: Users lose ability to redirect Agent behavior when needed
  • Confusion: Unclear what state the Agent is in when paused

Reproduction Steps

  1. Start an Agent that executes a multi-step tool call chain
  2. Pause the tool call chain (using pause/stop control)
  3. Send a new message to the Agent
  4. Observe: Agent does not respond to the new message
  5. Observe: Agent continues the paused tool call chain

Suggested Fix

  • Implement proper state management for paused tool call chains
  • Allow message queue to process new messages even when tool execution is paused
  • Consider adding a "resume" or "abort and start new task" option

Priority

🔴 High - affects core Agent interaction and user control

Related

May be related to tool execution state machine and message handling logic.

Metadata

Metadata

Assignees

No one assigned

    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