Skip to content

fix(agent): suppress duplicate final reply after named-agent message tool send#2022

Open
Alix-007 wants to merge 1 commit intosipeed:mainfrom
Alix-007:fix/issue-1909-message-tool-dedupe
Open

fix(agent): suppress duplicate final reply after named-agent message tool send#2022
Alix-007 wants to merge 1 commit intosipeed:mainfrom
Alix-007:fix/issue-1909-message-tool-dedupe

Conversation

@Alix-007
Copy link
Contributor

@Alix-007 Alix-007 commented Mar 25, 2026

Summary

  • avoid duplicate outbound replies when a routed named agent already sent a user-visible message via the message tool in the same round
  • route final outbound dedupe through the routed session/agent instead of always depending on the default-agent lane
  • add regression tests for named-agent message-tool dedupe in both helper and Run flow

Fixes #1909

Verification

  • go test ./pkg/agent -run 'TestPublishResponseIfNeeded_SkipsDuplicateForNamedAgentMessageTool|TestRun_NamedAgentMessageToolSuppressesFinalOutbound|TestProcessMessage_PublishesToolFeedbackWhenEnabled' -count=1
    • ok github.com/sipeed/picoclaw/pkg/agent 0.452s

@sipeed-bot sipeed-bot bot added type: bug Something isn't working domain: agent go Pull requests that update go code labels Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: agent go Pull requests that update go code type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Named agents can send duplicate replies after using the message tool

1 participant