omoclaw 3.2.0 → 3.2.1

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 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1096,6 +1096,15 @@ function handleUserEvent(event, dedup, state, notify, debugLog) {
1096
1096
  const partText = asString(part.text);
1097
1097
  if (!partText)
1098
1098
  return;
1099
+ 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);
1106
+ return;
1107
+ }
1099
1108
  pending.text += (pending.text ? " " : "") + partText;
1100
1109
  flushPendingPrompt(messageID2, notify, debugLog);
1101
1110
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omoclaw",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
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",