Преглед изворни кода

Capture current input only

Lukas Goldschmidt пре 1 месец
родитељ
комит
9a5c41ce00
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1 6
      hook/handler.ts

+ 1 - 6
hook/handler.ts

@@ -621,11 +621,6 @@ export default async function handler(event: HookEvent) {
     if (!text) return;
     if (isMediaPlaceholder(text) && !transcriptNow) return;
 
-    const recent = pushRecent(
-      event.sessionKey || "global",
-      text,
-      pluginCfg.recentKeep
-    );
 
     const { captureTrigger, triggerPhrase } = pluginCfg;
     let shouldCapture = false;
@@ -645,7 +640,7 @@ export default async function handler(event: HookEvent) {
       event.sessionKey,
       eventTs
     );
-    const userCaptureText = recent.join("\n");
+    const userCaptureText = text;
 
     const captureMessages: Array<{ role: "user" | "assistant"; content: string }> = [
       { role: "user", content: userCaptureText },