Skip to content

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

fix ts build

Louis Beaumont4a76ec8eea70
diff --git a/screenpipe-app-tauri/components/search-chat.tsx b/screenpipe-app-tauri/components/search-chat.tsx
index 6afa99813..cfd38672c 100644
--- a/screenpipe-app-tauri/components/search-chat.tsx
+++ b/screenpipe-app-tauri/components/search-chat.tsx
@@ -183,6 +183,7 @@ export function SearchChat() {
});
let fullResponse = "";
+ // @ts-ignore
setChatMessages((prevMessages) => [
...prevMessages,
{ role: "assistant", content: "" },
@@ -191,6 +192,7 @@ export function SearchChat() {
for await (const chunk of stream) {
const content = chunk.choices[0]?.delta?.content || "";
fullResponse += content;
+ // @ts-ignore
setChatMessages((prevMessages) => [
...prevMessages.slice(0, -1),
{ role: "assistant", content: fullResponse },