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

chore: include Cargo.lock version bump and chatgpt oauth scope update

Louis Beaumont0d1af8927619
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 62602e9d6..4e72d5c1b 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -9074,7 +9074,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.51"
+version = "2.2.52"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rs b/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rs
index ce5a29917..c6ad25430 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rs
@@ -112,7 +112,7 @@ async fn do_refresh_token(refresh_token: &str) -> Result<OAuthTokens, String> {
"grant_type": "refresh_token",
"client_id": CLIENT_ID,
"refresh_token": refresh_token,
- "scope": "openid profile email",
+ "scope": "openid profile email offline_access model.request api.model.read",
}))
.send()
.await
@@ -238,7 +238,7 @@ pub async fn chatgpt_oauth_login(app_handle: AppHandle) -> Result<bool, String>
.append_pair("response_type", "code")
.append_pair("client_id", CLIENT_ID)
.append_pair("redirect_uri", &redirect_uri)
- .append_pair("scope", "openid profile email offline_access")
+ .append_pair("scope", "openid profile email offline_access model.request api.model.read")
.append_pair("code_challenge", &code_challenge)
.append_pair("code_challenge_method", "S256")
.append_pair("id_token_add_organizations", "true")