Repository navigation
Description
Summary
In Codex Desktop, the Google Drive / Google Sheets connector can read an existing Google Sheet, but attempting to append a row with _batch_update_spreadsheet fails with a missing-permissions/scopes error. Reinstalling the Google Drive plugin did not resolve the write failure.
The same workflow also intermittently hit a shared Google Sheets API project read quota (ReadRequestsPerMinutePerProject) even though the user was not making other requests. That makes the connector feel unusable for a simple read-one-header/write-one-row task.
Environment
- Product: Codex Desktop
- Platform: Windows
- Plugin/connector:
google-drive@openai-curated - Tool family: Google Drive connector, Google Sheets tools
- Date observed: 2026-05-24
Repro steps
- In a Codex Desktop session, use the Google Drive / Google Sheets connector against an existing Google Sheets spreadsheet.
- Call
_get_spreadsheet_metadatafor the spreadsheet. - Call
_get_spreadsheet_cellsfor a small bounded range (Sheet1!A1:M20) to read the header row. - Prepare one row of current weather data from AccuWeather that matches the sheet headers.
- Attempt to append the row with
_batch_update_spreadsheetusingappendCells. - Reinstall the Google Drive plugin and retry the same write.
Observed behavior
A metadata/cell read can succeed and confirm the spreadsheet, tab, sheetId, and headers. In this run the connector read the sheet title and Sheet1 metadata, then read headers such as:
Date, Time, Service, Temperature, Feels Like, Humidity, Wind Speed, Wind Direction, Precipitation, Cloud Cover, Pressure, UV Index, Visibility
But the write call fails:
Current action failed because this app connection is missing permissions or scopes required for this action. Reauthenticate to grant the missing access; other actions on this app may still work.
After the user reinstalled the Google Drive plugin, the same _batch_update_spreadsheet append still failed with the same missing-permissions/scopes message.
Separately, narrow read calls intermittently failed with a project-level Google Sheets API quota error:
Error code: RATE_LIMITED; Error: HTTPError: 429: Too Many Requests
Quota exceeded for quota metric 'Read requests' and limit 'Read requests per minute' of service 'sheets.googleapis.com' for consumer 'project_number:77377267392'.
quota_limit: ReadRequestsPerMinutePerProject
quota_limit_value: 300
quota_unit: 1/min/{project}
The user was not making other Google Sheets requests, so this appears to be a shared connector/backend project quota rather than user-specific activity.
Expected behavior
For an installed Google Drive / Google Sheets connector, Codex should be able to complete a simple read-header + append-row workflow, or it should clearly surface an actionable auth upgrade path before the agent reaches the write step.
At minimum:
- The connector install/reinstall flow should request or preserve the scopes required for exposed write tools such as
_batch_update_spreadsheet. - If the connection lacks write scopes, the app should expose a direct reauthorize/upgrade flow for the Google Drive connector from the failed action.
- The connector should not expose write tools that are unusable with the current auth state without a clear remediation path.
- Project-level read quota exhaustion should be handled or messaged as a shared backend quota issue, not as if the user caused excessive requests.
Impact
The user asked Codex to write one line of AccuWeather data into a Google Sheet. Codex could inspect the sheet and build the exact row, but could not write it even after the user reinstalled the Google Drive plugin. The task could not be completed through the connector.
Activity
github-actions commentedon May 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
H0rs3man commentedon May 25, 2026
Hi, experiencing the same issue here, I wonder if you fixed it successfully?
ponugoti commentedon May 25, 2026
Same issue, wasted so many credits trying to fix it through codex :(
C-Advait commentedon May 25, 2026
Same issue. Connector is read-only access.
Computer details: MacOs 15.7.4 (24G517)
Codex: Version 26.519.41501 (3044)
Google Drive connector installed 11:48 PM UTC time
Error message states:
CyberMZ666 commentedon May 26, 2026
experience same issue here. Any updates on the fix?
C-Advait commentedon May 26, 2026
@CyberMZ666 @ponugoti @H0rs3man @jshaofa-ui
Fix that worked for me:
/pluginsand type "gmail"Hope this helps!
ponugoti commentedon May 26, 2026
@C-Advait the problem isn't the Gmail plugin, it's the Google Sheets/Drive plugin's write access. Gmail has been working fine.
culli commentedon May 27, 2026
This didn't work for me. I tried (replacing "gmail" with "sheets") reinstalling the Google Drive plugin via codex CLI and that could not write to a google sheet either.
(then it goes off and tries to do the update via Computer Use, which is also not what I was looking for).
smeetChheda commentedon May 27, 2026
The only solution I found was to go to my account settings in ChatGPT web and go to Apps -> Google Drive and then hit Disconnect and subsequently 'Connect'. Hope this helps
RTnhN commentedon May 29, 2026
Smeet's solution also worked for me. I had to go online in the ChatGPT website to do it. You can't fix these permissions through the codex app or CLI.
H0rs3man commentedon May 30, 2026
We have a solution from @reduced2as
Link: #24233
mikelottridge commentedon May 30, 2026
I tried this workaround on Codex Desktop for Windows and can confirm it worked, with one extra caveat: I had to restart Codex after completing the OAuth flow.
What I did:
First I verified the failure from Codex itself by asking the Google Drive connector to create a native Google Doc. It failed with:
Current action failed because this app connection is missing permissions or scopes required for this action. Reauthenticate to grant the missing access; other actions on this app may still work.In ChatGPT Web, I went to Settings -> Apps -> Google Drive and disconnected Google Drive.
I reconnected Google Drive from the ChatGPT app directory. As described above, the first Google OAuth prompt still only requested read-style access for Drive/Docs/Sheets/Slides. I selected all requested permissions and completed that flow anyway.
Then I opened a brand-new ChatGPT Web chat and prompted:
Create a Google Doc named "Codex Drive Write Scope Trigger Test" with the content "test".ChatGPT showed a “Reconnect Google Drive” prompt. I clicked Reconnect, went through Google OAuth again, and this time Google requested the missing write scopes, including permissions to see/edit/create/delete Drive files and Docs/Sheets/Slides content.
After approving those scopes, ChatGPT Web successfully created and edited the test Google Doc.
Issue encountered:
After completing the browser-side OAuth flow, my existing Codex Desktop session did not immediately pick up the refreshed connector state. Instead of the original missing-scope error, Google Drive tool calls started returning:
Unknown tool: google drive_create_fileWorkaround:
I restarted Codex Desktop. After restart, the Google Drive connector worked from Codex. I verified this by:
So the workaround fixed the OAuth scope problem, but Codex may need to be restarted or a fresh session started before the updated connector/tool state is usable.
Codex / Windows actually was able to do the fix for me... i summarized the steps done as a prompt if anyone wants to try it:
Please apply and verify the Google Drive write-scope workaround from openai/codex issue #24233.
Goal:
Fix the Codex Desktop Google Drive connector so it can create and edit Google Docs, not just read Drive files.
Steps:
First, verify the current failure from Codex:
Codex Drive Write Scope Baseline TestUse Chrome with my logged-in ChatGPT session to perform the workaround:
Create a Google Doc named "Codex Drive Write Scope Trigger Test" with the content "test".Approve the ChatGPT Web tool confirmations only for the test document:
Return to Codex and verify:
Codex Drive Write Scope Test After OAuthCodex Google Drive write verification passed.If Codex Google Drive tools return
Unknown toolor look stale after OAuth:Do not claim success unless the final Codex connector readback confirms the inserted text.
jacob-israel-turner commentedon Jun 2, 2026
Fixed by reconnecting.
Plugins -> Google Drive -> "Connected" dropdown -> reconnect. This will take you to ChatGPT, where you can reconnect the Drive connection. Fixed the 429 error for me!