Repository navigation
Conversation
[Low impact] The PR appears safe to merge. SummaryFixes Google Docs creation reporting failure after Google has created the document.
No actionable issues found. Review was based on source inspection; tests were not run during this review. Reviews (2) · Last reviewed commit: "fix(google-docs): accept successful docu..." · Reviewed by Greptile |
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
…sponse parses (#52346) createDoc asked Drive for id,name,webViewLink but parsed the answer with DriveFileSchema, which requires mimeType. The partial response failed to parse, so the CLI reported a failure after the doc was already created, and a retry made a duplicate. Request mimeType too. Fixes #52333 Original fix by Afloat16 (#52335). Co-authored-by: Afloat <[email protected]>
ELI5
Creating a Google Doc can succeed in Drive while Orca reports a failure. Request the response field Orca needs to recognize the created document and return its ID and link.
What Changed
mimeTypein the existing multipart create request's response fields.createDocoperation. Its Google API fixture returns only fields selected by the actual request and runs the real production response reader.Why
createDocpreviously requestedid,name,webViewLink, butDriveFileSchemarequiresmimeType. A successful filtered response was therefore rejected after the document had already been created. A caller retry could create a duplicate document.Requesting the missing field preserves the shared schema's validation without adding another network request or weakening response parsing.
Linked Issue
Fixes #52333
Visual Proof
N/A — this changes a backend response contract; it adds no UI, layout, or interaction controls.
Testing
Local Linux / Node 24 source-level reproduction exercised the real
createDocoperation and production parser: the original field mask rejected the successful response; the corrected mask returned the created document.Exact source commit:
b286b5f31289c5364fb5bf2b18ff51a7e09a2ada.Fork validation run:
Unreadable creation response, as expected.pnpm test src/main/google/google-docs-create.test.ts --maxWorkers=2: 1 test passed.pnpm check:changed --base=f6e561e9ec050afbaa5bfb55bfac4b31dc394f6c --maxWorkers=2: all 28 selected checks passed.The fixture models Google's documented partial-response contract. No live Google account writes or native macOS/Windows/SSH sessions were used. Broader platform coverage remains with the upstream CI.
Performance
The existing create request returns one additional scalar
mimeTypevalue. There are no additional API calls, subprocesses, disk operations, background work, polling, or renderer updates. The extra response bytes occur only when creating a document.Risk
Level: Low.
The change is limited to response-field selection for Google Docs creation. The main risk is requesting a field incompatible with Drive's File response;
mimeTypeis already required by the shared File schema and requested by the other Drive file operations. No credentials, scopes, stored data, or transport contracts change. A plain revert restores the previous field selection; it does not remove documents already created.AI Disclosure
Contributor and commit author: Afloat16. Model used: GPT-6 Astra Pro for implementation and code review.
Review
Independent review traced the CLI/RPC call through
createDocand the actual response parser, checked the Google partial-response contract, and reviewed the regression against the original implementation. No blocking issue was found.The request uses the existing Google API/authentication path and introduces no platform-specific paths, binaries, SSH or mobile protocol changes. Agent callers receive the existing successful result shape. Security, UI behavior, backwards compatibility, and performance boundaries were checked; the strict response schema remains intact.
Agent skill upstream boundary
Notes
Checked existing open and closed contributions for this response-field mismatch; no duplicate fix was found. Related folder-resolution and Google scope changes address different paths.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)