omoclaw 3.2.0 → 3.2.2
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/dist/index.js +12 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1096,8 +1096,19 @@ function handleUserEvent(event, dedup, state, notify, debugLog) {
|
|
|
1096
1096
|
const partText = asString(part.text);
|
|
1097
1097
|
if (!partText)
|
|
1098
1098
|
return;
|
|
1099
|
+
const partID = asString(part.id);
|
|
1100
|
+
const trimmed = partText.trimStart();
|
|
1101
|
+
const isContextInjection = partID.startsWith("supermemory-context") || trimmed.startsWith("[SUPERMEMORY]") || trimmed.startsWith("<system-reminder>") || trimmed.startsWith("<system");
|
|
1102
|
+
if (isContextInjection) {
|
|
1103
|
+
debugLog?.(`User prompt part SKIPPED (context-injection): msg=${messageID2} partId=${partID.slice(0, 30)} text="${trimmed.slice(0, 40)}"`);
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1099
1106
|
pending.text += (pending.text ? " " : "") + partText;
|
|
1100
|
-
|
|
1107
|
+
debugLog?.(`User prompt part CAPTURED: msg=${messageID2} text="${partText.slice(0, 60)}"`);
|
|
1108
|
+
clearTimeout(pending.timer);
|
|
1109
|
+
pending.timer = setTimeout(() => {
|
|
1110
|
+
flushPendingPrompt(messageID2, notify, debugLog);
|
|
1111
|
+
}, 500);
|
|
1101
1112
|
return;
|
|
1102
1113
|
}
|
|
1103
1114
|
if (event.type !== "message.updated")
|
package/package.json
CHANGED