fix: dedupe message tool replies (#659) (thanks @mickahouan)

This commit is contained in:
Peter Steinberger committed 2026-01-10 15:28:13 +01:00
1 parent d01e06f09a
commit 4d146ea2f5
3 files changed
+51 -1

No files matched your search

+3 -1
View File
@@ -558,7 +558,9 @@ export function subscribeEmbeddedPiSession(params: {
? (args as Record<string, unknown>)
: {};
const action =
typeof argsRecord.action === "string" ? argsRecord.action : "";
typeof argsRecord.action === "string"
? argsRecord.action.trim()
: "";
// Track send actions: sendMessage/threadReply for Discord/Slack, sessions_send (no action field),
// and message/send or message/thread-reply for the generic message tool.
const isMessagingSend =