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: remove legacy file write from SecretStore refresh path

Louis Beaumontf429691dbf03
diff --git a/crates/screenpipe-engine/src/secret_oauth.rs b/crates/screenpipe-engine/src/secret_oauth.rs
index cd7ebff0d..9b49e5727 100644
--- a/crates/screenpipe-engine/src/secret_oauth.rs
+++ b/crates/screenpipe-engine/src/secret_oauth.rs
@@ -64,13 +64,6 @@ pub async fn save_oauth_json(
}
store.set_json(&key, &stored).await?;
-
- // Also write to legacy file — screenpipe-connect's refresh_token_instance
- // still reads from files. This will be removed once refresh is fully
- // migrated to SecretStore.
- let _ =
- screenpipe_connect::oauth::write_oauth_token_instance(integration_id, instance, &stored);
-
Ok(())
}