fix(extension): google token paste alongside browser OAuth (Claude-style) - #408
Conversation
Google connectors now accept a pasted token the same way Claude and other connectors do (Slack/GitHub flow via POST /amicode/connections/credential), in addition to the browser OAuth path. The extension already proxies that route via chat_bridge (connections-credential) and the opencode server validates via probeGoogle/probeGoogleDrive, so no extension logic change was needed — this logs the dual support explicitly so a future 'browser doesn't launch' is not the only diagnostic. Server side (harmoniqs/opencode#210) advertises [token,browser] for google/google-drive, makes the UI offer token input + browser button in the picker and card chooser, and validates pasted tokens via POST /amicode/connections/credential -> probeGoogle. Related to #335
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan includes up to 3 reviews per rolling hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe extension updates server startup output to document Google connector token-paste support alongside browser-based OAuth. Existing browser and IPC environment logging remains unchanged. ChangesGoogle connector messaging
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized change only improves logging for Google token and browser sign-in support; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Fixes the reported 'google connectors don't work' — now supports paste-a-token the same way Claude and other AI connectors do.
What changed
fix: google token auth like Claude + revert dock blank + restart opencode#210 (companion — already pushed): Google connectors advertise
[token,browser]forgoogle/google-drive, not browser-only.probeGoogle/probeGoogleDrivealready validate pasted tokens viaPOST /amicode/connections/credential; the UI (connections.ts,connection-picker.tsx) now offers token input + browser button for Google, same as Slack/GitHub. Validated viaprobeGoogle(tokeninfo) andprobeGoogleDrive(drive/v3/about).This repo:
server_manager.tslogs the dual support so diagnostics don't mislead — the extension host already proxiesconnections-credentialviachat_bridgeto the local server, no proxy change needed.Verification
/amicode/connections/credential→probeGoogle.Fixes #335 follow-up
Summary by CodeRabbit