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
Revert "feat(google-docs): enable read+write scopes"
Louis Beaumontdd1dbffc3436
diff --git a/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx b/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsxindex a5535312e..9995a000f 100644--- a/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx+++ b/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx@@ -127,8 +127,7 @@ export function GoogleDocsCard() {</div><p className="text-xs text-muted-foreground mb-3 leading-relaxed">- Read and write access to Google Docs. Lets AI search, read, create, and edit documents.- Only docs you open with screenpipe or that screenpipe creates are visible — not your whole Drive.+ Read-only access to your Google Docs. Lets AI search and read document content.</p>{!connected ? (diff --git a/crates/screenpipe-connect/src/connections/google_docs.rs b/crates/screenpipe-connect/src/connections/google_docs.rsindex fd3ecfd72..51ca6c762 100644--- a/crates/screenpipe-connect/src/connections/google_docs.rs+++ b/crates/screenpipe-connect/src/connections/google_docs.rs@@ -17,13 +17,11 @@ static OAUTH: OAuthConfig = OAuthConfig {extra_auth_params: &[("scope",- // documents — read and write full document content and structure- // drive.file — create/read/update only files the app creates or- // the user explicitly opens; doesn't grant access to the whole- // Drive. Needed so we can create new docs and search them.+ // documents.readonly — read full document content and structure+ // drive.readonly — list and search documents via Drive API// userinfo.email — identify the connected account for multi-instance- "https://www.googleapis.com/auth/documents \- https://www.googleapis.com/auth/drive.file \+ "https://www.googleapis.com/auth/documents.readonly \+ https://www.googleapis.com/auth/drive.readonly \https://www.googleapis.com/auth/userinfo.email",),("access_type", "offline"),@@ -37,17 +35,13 @@ static DEF: IntegrationDef = IntegrationDef {name: "Google Docs",icon: "google-docs",category: Category::Productivity,- description: "Read and write access to Google Docs — full document content, \- Drive search, and document creation/editing. \+ description: "Read-only access to Google Docs — full document content and Drive search. \Proxy base: /connections/google-docs/proxy. \Useful endpoints: \GET /connections/google-docs/proxy/docs/v1/documents/{documentId} — fetch full document content (paragraphs, tables, headings). \- POST /connections/google-docs/proxy/docs/v1/documents — create a new Google Doc (body: {\"title\": \"...\"}). \- POST /connections/google-docs/proxy/docs/v1/documents/{documentId}:batchUpdate — edit an existing doc (requests: insertText, updateTextStyle, etc.). \- GET /connections/google-docs/proxy/drive/v3/files?q=mimeType='application/vnd.google-apps.document' — list Docs created by or shared with screenpipe. \- GET /connections/google-docs/proxy/drive/v3/files?q=fullText+contains+'query'+and+mimeType='application/vnd.google-apps.document' — full-text search. \- GET /connections/google-docs/proxy/drive/v3/files/{fileId}/export?mimeType=text/plain — export a Doc as plain text. \- Uses drive.file scope — only files the user explicitly opens with screenpipe or that screenpipe creates are visible; this is intentional privacy design.",+ GET /connections/google-docs/proxy/drive/v3/files?q=mimeType='application/vnd.google-apps.document' — list all Google Docs. \+ GET /connections/google-docs/proxy/drive/v3/files?q=fullText+contains+'query'+and+mimeType='application/vnd.google-apps.document' — full-text search across all Docs. \+ GET /connections/google-docs/proxy/drive/v3/files/{fileId}/export?mimeType=text/plain — export a Doc as plain text.",fields: &[],};