Explorar o código

Capture current input only

Lukas Goldschmidt hai 1 mes
pai
achega
9a5c41ce00
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  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 (!text) return;
     if (isMediaPlaceholder(text) && !transcriptNow) return;
     if (isMediaPlaceholder(text) && !transcriptNow) return;
 
 
-    const recent = pushRecent(
-      event.sessionKey || "global",
-      text,
-      pluginCfg.recentKeep
-    );
 
 
     const { captureTrigger, triggerPhrase } = pluginCfg;
     const { captureTrigger, triggerPhrase } = pluginCfg;
     let shouldCapture = false;
     let shouldCapture = false;
@@ -645,7 +640,7 @@ export default async function handler(event: HookEvent) {
       event.sessionKey,
       event.sessionKey,
       eventTs
       eventTs
     );
     );
-    const userCaptureText = recent.join("\n");
+    const userCaptureText = text;
 
 
     const captureMessages: Array<{ role: "user" | "assistant"; content: string }> = [
     const captureMessages: Array<{ role: "user" | "assistant"; content: string }> = [
       { role: "user", content: userCaptureText },
       { role: "user", content: userCaptureText },