Title: fix(google-drive): keep the page token an agent passes by waleedlatif1 · Pull Request #10008 · simstudioai/sim · GitHub
Open Graph Title: fix(google-drive): keep the page token an agent passes by waleedlatif1 · Pull Request #10008 · simstudioai/sim
X Title: fix(google-drive): keep the page token an agent passes by waleedlatif1 · Pull Request #10008 · simstudioai/sim
Description: Summary On an agent tool call the stored tool keeps its operation on the tool, not in the args the block mapper receives. So params.operation is undefined there, and the Drive mapper's last branch (params.operation !== 'list') set pageToken to undefined. The block's output is spread over the model's args, so every agent call to list, search, list permissions, list revisions or list comments lost the model's page token and returned the first page. That branch now falls back to the agent's own token (context?.operation ? pageToken : undefined), the same agentPageToken the dedicated per-operation tokens already use. Canvas runs pass no context, so a stale list token is still dropped for every other operation and the canvas request is unchanged. Type of Change Bug fix Testing blocks/blocks/google_drive.test.ts: New cases call the mapper with the operation only in the context (the real agent shape) for all five paginated operations. They fail on staging and pass with the fix. Added a canvas case for a stale token under a non-paginating operation. blocks/blocks.test.ts passes. check-block-registry origin/staging, check:utils, check:test-patterns, check:explicit-any, check:comment-hygiene and check:docs pass, plus lint and type-check in the pre-push hook. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary On an agent tool call the stored tool keeps its operation on the tool, not in the args the block mapper receives. So params.operation is undefined there, and the Drive mapper's last br...
X Description: Summary On an agent tool call the stored tool keeps its operation on the tool, not in the args the block mapper receives. So params.operation is undefined there, and the Drive mapper's las...
Opengraph URL: https://github.com/simstudioai/sim/pull/10008
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c1b43fe0-cc15-9811-849b-20f539372175 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A982:AE3C5:10FA9E:190DF2:6AFB1BF9 |
| html-safe-nonce | f4b6f3839880d05a6d477dc04df6e57ee9e5b159d5fd24b1154d586eb6103a4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTgyOkFFM0M1OjEwRkE5RToxOTBERjI6NkFGQjFCRjkiLCJ2aXNpdG9yX2lkIjoiNjAzMTk3ODEzMzg4MjM0NjQ4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 01f9bea24f6cf502cdeabb623b1c631f2a3622365b65bba33c8cb02e0b391b65 |
| hovercard-subject-tag | pull_request:5302817529 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/10008/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary On an agent tool call the stored tool keeps its operation on the tool, not in the args the block mapper receives. So params.operation is undefined there, and the Drive mapper's last br... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24933791aba0f10b2f189f8b953a1452dd79933933ac13a0a67b8ad3acee3d9f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 030711cc180b563614a434f4376acf7da5d445fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width