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(chatgpt-oauth): update scope to match new OpenAI requirements
Louis Beaumont7210a36f4607
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rs b/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rsindex 5edc4df61..59132f8b5 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/chatgpt_oauth.rs@@ -135,7 +135,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": "openai offline_access",+ "scope": "openid profile email offline_access api.connectors.read api.connectors.invoke",})).send().await@@ -271,7 +271,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", "openai offline_access")+ .append_pair("scope", "openid profile email offline_access api.connectors.read api.connectors.invoke").append_pair("code_challenge", &code_challenge).append_pair("code_challenge_method", "S256").append_pair("id_token_add_organizations", "true")