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: revert hack

Louis Beaumonte5fc95d1b722
diff --git a/examples/apps/screenpipe-app-tauri/components/settings.tsx b/examples/apps/screenpipe-app-tauri/components/settings.tsx
index a4e6c1ddb..e3c9c30f5 100644
--- a/examples/apps/screenpipe-app-tauri/components/settings.tsx
+++ b/examples/apps/screenpipe-app-tauri/components/settings.tsx
@@ -55,20 +55,6 @@ export function Settings({ className }: { className?: string }) {
updateSettings({ ...localSettings, useOllama: checked });
};
- const handleCliToggle = async (checked: boolean) => {
- setIsTogglingCli(true);
- try {
- await invoke("use_cli", { useCli: checked });
- setLocalSettings({ ...localSettings, useCli: checked });
- updateSettings({ ...localSettings, useCli: checked });
- } catch (error) {
- console.error("Failed to toggle sidecar:", error);
- setIsTogglingCliError("Failed to toggle sidecar: " + error);
- } finally {
- setIsTogglingCli(false);
- }
- };
-
const handleStop = async () => {
setIsStopping(true);
try {
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index 9703b3646..b637cb21e 100755
--- a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -71,13 +71,13 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
// resulting in multiple screenpipe instances
// (hard kill = cli, right click bottom bar), otherwise click on windows close should
// properly kill the sidecar
- tauri::async_runtime::spawn(async {
- let _ = tokio::process::Command::new("pkill")
- .arg("-f")
- .arg("screenpipe")
- .output()
- .await;
- });
+ // tauri::async_runtime::spawn(async {
+ // let _ = tokio::process::Command::new("pkill")
+ // .arg("-f")
+ // .arg("screenpipe")
+ // .output()
+ // .await;
+ // });
// sleep 1s hack
std::thread::sleep(std::time::Duration::from_secs(1));