picoclaw/pkg/tools
Zhaoyikaiii 132fe7db51
bugfix: fix duplicate Telegram message sending
Two issues caused duplicate messages to be sent to users:

1. System messages (from subagent): processSystemMessage set SendResponse:true,
   causing runAgentLoop to publish outbound. Then Run() also published outbound
   using the returned response string, resulting in two identical messages.
   Fix: processSystemMessage now returns empty string since runAgentLoop already
   handles the send.

2. Message tool double-send: When LLM called the "message" tool during
   processing, it published outbound immediately. Then Run() published the
   final response again. Fix: Track whether MessageTool sent a message in the
   current round (sentInRound flag, reset on each SetContext call). Run()
   checks HasSentInRound() before publishing to avoid duplicates.
2026-02-13 14:41:21 +08:00
..
base.go feat: add cron tool integration with agent 2026-02-11 20:28:46 +08:00
cron.go merged and fixed the issues 2026-02-12 20:29:15 +05:30
edit.go Enforce workspace boundaries with configurable restriction option 2026-02-12 12:46:32 +07:00
filesystem.go Enforce workspace boundaries with configurable restriction option 2026-02-12 12:46:32 +07:00
message.go bugfix: fix duplicate Telegram message sending 2026-02-13 14:41:21 +08:00
registry.go feat: add cron tool integration with agent 2026-02-11 20:28:46 +08:00
shell.go Merge branch 'main' of https://github.com/SatyamDevv/picoclaw 2026-02-12 20:25:31 +05:30
spawn.go * First commit 2026-02-09 19:20:19 +08:00
subagent.go Add memory system, debug mode, and tools 2026-02-11 00:14:23 +08:00
types.go * First commit 2026-02-09 19:20:19 +08:00
web.go Add memory system, dynamic tool loading, and fix logging issues 2026-02-11 00:14:33 +08:00