Skip to content

Conversation

@kalvinnchau
Copy link
Contributor

this fixes the fact that the readonly commands would re-initiate the oauth flow after a write call, and vice versa, since they only requested a single differing scope

use google_sheets4::{self, Sheets};
use http_body_util::BodyExt;

const GOOGLE_DRIVE_SCOPES: Scope = Scope::Full;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any worry about deletions or unwanted consequences from changing this to full (which I assume is read and manage everything?). Guess this also depends on what you're enabling with the tools, which are reasonable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeaaa, definitely worried it could go wild.
just looked and saw that while we have allow_shared_drives as a bool, the tool didn't actually do anything with it so that should be fixed first

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, could probably stop it from deleting, and I think there are drive options to keep changes so things are not lost.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay this is updated and fixed up a couple other bugs during testing

…ame token

the readonly commands would re-initiate the oauth flow after a write
call, and vice versa, since they only requested a single differing scope
previously the parameters were exctracting parent and supportAllDrives,
when the tool parameters were parent_id and allow_shared_drives
@kalvinnchau kalvinnchau force-pushed the kalvin/google-drive-scopes branch from 5fd0fc3 to e659e10 Compare March 17, 2025 16:00
@kalvinnchau kalvinnchau merged commit 952e0d2 into main Mar 17, 2025
6 checks passed
@kalvinnchau kalvinnchau deleted the kalvin/google-drive-scopes branch March 17, 2025 19:32
michaelneale added a commit that referenced this pull request Mar 18, 2025
* main:
  chore(release): release version 1.0.15 (#1749)
  docs: goosing around: langfuse blog (#1746)
  feat: update the deny call response (#1741)
  feat: refactor register eval (#1713)
  fix: Goose UI fix typos (#1744)
  feat(google_drive): comment read (#1732)
  feat: build cli workflow  (#1697)
  fix: fix initial model configuration in cli when using toolshim (#1720)
  feat: add basic support for aws bedrock to desktop app (#1271)
  feat(google_drive): add image resizing logic from developer, and use Content::Image (#1735)
  Standardize Radio Button input (#1701)
  ui: tweaks to settings v2 (#1731)
  feat(google_drive): set read/write scope on all commands to use the same token (#1707)
  refactor: clean up log usage (#1704)
  docs: fix docusaurus sidebar limit (#1722)
  docs: Add Session List To CLI Commands Guide (#1729)
  ui: start extensions on add (#1714)
  ui: new extensions modal (#1711)
  docs: Add Filesystem Short Video to Tutorial (#1723)
  fix: update the mcp client protocol version to 2024-11-05 (#1690)
salman1993 added a commit that referenced this pull request Mar 20, 2025
* origin/main: (74 commits)
  config: add optional extension description (#1743)
  docs: add deployment for install link generator (#1737)
  ui: new configure provider flow (#1736)
  Revert "Standardize Radio Button input" (#1758)
  Settings v2 Add Model (#1708)
  fix: use lowercase names for builtin external extensions (#1756)
  chore(release): release version 1.0.15 (#1749)
  docs: goosing around: langfuse blog (#1746)
  feat: update the deny call response (#1741)
  feat: refactor register eval (#1713)
  fix: Goose UI fix typos (#1744)
  feat(google_drive): comment read (#1732)
  feat: build cli workflow  (#1697)
  fix: fix initial model configuration in cli when using toolshim (#1720)
  feat: add basic support for aws bedrock to desktop app (#1271)
  feat(google_drive): add image resizing logic from developer, and use Content::Image (#1735)
  Standardize Radio Button input (#1701)
  ui: tweaks to settings v2 (#1731)
  feat(google_drive): set read/write scope on all commands to use the same token (#1707)
  refactor: clean up log usage (#1704)
  ...
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants