YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(sync): use shell redirection instead of cat for Claude CLI
Louis Beaumont12dc56d1cc0d
diff --git a/packages/sync/src/index.ts b/packages/sync/src/index.tsindex f88e33ae3..4439fc7b0 100644--- a/packages/sync/src/index.ts+++ b/packages/sync/src/index.ts@@ -330,7 +330,7 @@ async function extractWithAI(const tmpFile = path.join(os.tmpdir(), `screenpipe-prompt-${Date.now()}.txt`);await fs.writeFile(tmpFile, prompt);- const result = execSync(`cat "${tmpFile}" | claude --print`, {+ const result = execSync(`claude --print < "${tmpFile}"`, {encoding: "utf-8",maxBuffer: 10 * 1024 * 1024,timeout: 120000, // 2 min timeout