mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
fix(cron): propagate sessionKey to prevent duplicate tool responses
This commit is contained in:
+1
-1
@@ -357,7 +357,7 @@ func (t *CronTool) ExecuteJob(ctx context.Context, job *cron.CronJob) string {
|
||||
}
|
||||
|
||||
if response != "" {
|
||||
t.executor.PublishResponseIfNeeded(ctx, channel, chatID, "", response)
|
||||
t.executor.PublishResponseIfNeeded(ctx, channel, chatID, sessionKey, response)
|
||||
}
|
||||
return "ok"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user