omoclaw 3.2.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1096,17 +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);
1099
1100
  const trimmed = partText.trimStart();
1100
- if (trimmed.startsWith("<system-reminder>") || trimmed.startsWith("<system")) {
1101
- debugLog?.(`User prompt part SKIPPED (system-injected): msg=${messageID2} text="${trimmed.slice(0, 60)}"`);
1102
- seenMessageIDs.add(messageID2);
1103
- evictOldestSeen();
1104
- clearTimeout(pending.timer);
1105
- pendingPrompts.delete(messageID2);
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)}"`);
1106
1104
  return;
1107
1105
  }
1108
1106
  pending.text += (pending.text ? " " : "") + partText;
1109
- flushPendingPrompt(messageID2, notify, debugLog);
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);
1110
1112
  return;
1111
1113
  }
1112
1114
  if (event.type !== "message.updated")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omoclaw",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "OpenCode session monitor plugin — native event-driven webhook notifications for session state changes",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",