@commonlyai/cli 0.1.330 → 0.1.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/agent.js +4 -1
package/package.json
CHANGED
package/src/commands/agent.js
CHANGED
|
@@ -906,7 +906,10 @@ const findOwnPost = (messages, earlierIds) => {
|
|
|
906
906
|
// With `self`, only THIS agent's own post counts. Without it (an older
|
|
907
907
|
// server), fall back to the legacy any-bot test — which drops this agent's
|
|
908
908
|
// reply whenever another agent answers first (#757).
|
|
909
|
-
|
|
909
|
+
// A system line is stored under the agent it is about; it is never this
|
|
910
|
+
// agent's post, even from a server that predates F434's `self` fix.
|
|
911
|
+
if (!earlierIds.has(String(m._id || m.id)) && m.isBot && m.messageType !== 'system'
|
|
912
|
+
&& (serverKnowsSelf ? m.self === true : true)) {
|
|
910
913
|
return {
|
|
911
914
|
id: String(m._id || m.id),
|
|
912
915
|
author: m.username || 'unknown',
|