opencode icon indicating copy to clipboard operation
opencode copied to clipboard

desktop: Google Cloud sign-in rejected after 2.4.0; Chrome import fails on macOS

Open Dabman1980 opened this issue 1 week ago • 6 comments

Description

Google Cloud Billing worked in the built-in browser before the update without importing sign-ins. After updating to 2.4.0 and restarting the Mac, Google rejects sign-in. The built-in Chrome import also fails before any site can be selected.

Steps to reproduce

  1. Open https://console.cloud.google.com/billing in OpenCode’s built-in browser and try to sign in. Google shows “Couldn’t sign you in” and says the browser or app may not be secure.
  2. Open Settings → Browser → Import from Google Chrome, leave only Sign-ins checked, and click Choose sites. OpenCode says “Access was denied” and recommends Full Disk Access for Safari, even though Chrome is selected.

OpenCode version

Desktop 2.4.0, stable release.

Operating System

macOS 27.2.1, Apple silicon.

Terminal

Not applicable: Desktop UI.

Plugins

Third-party plugins configured; not tested with plugins disabled.

Dabman1980 avatar Nov 23 '26 11:11 Dabman1980

Thanks for the detailed report. I couldn't reproduce this here. Both problems happen in the desktop app's built-in browser on macOS, and the Google one needs a real Google sign-in. This sandbox has neither, so a maintainer with a Mac will need to look at it.

While you wait, these would help:

  • After Import from Google Chrome fails, does it still fail with Chrome fully quit?
  • Do you get the same sign-in error at another Google page, such as https://accounts.google.com?

opencodejr[bot] avatar Nov 23 '26 11:11 opencodejr[bot]

Both requested checks reproduce on macOS 27.2.1 with OpenCode Desktop 2.4.0:

  • Chrome fully quit: Import from Google Chrome → Choose sites still shows “Access was denied” and recommends Full Disk Access for Safari. The macOS privacy log records an access denial for OpenCode 16 seconds before Chrome was next launched.
  • Direct Google sign-in: starting at https://accounts.google.com/ in the built-in browser produces the same security rejection, without going through Cloud Billing.

An existing Google Cloud Billing workflow is currently blocked in OpenCode: sign-in is blocked and the built-in import fallback fails. Please investigate this as a possible regression on macOS and fix the misleading Safari/Full Disk Access guidance when Chrome is selected.

Dabman1980 avatar Nov 23 '26 11:11 Dabman1980

cc @Hona

neriousy avatar Nov 23 '26 16:11 neriousy

Same on Win10

imjosiel avatar Nov 24 '26 14:11 imjosiel

Same on Windows 11 (Microsoft Windows [Version 10.0.26300.9974]) with OpenCode Desktop 2.4.2. Attempting to sign in at https://accounts.google.com/ in the built-in browser redirects to accounts.google.com/v3/signin/rejected and shows Couldn't sign you in / This browser or app may not be secure.

Environment:

  • OpenCode Desktop 2.4.2, release
  • Embedded Chromium 152.0.7977.167; UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.7977.167 Safari/537.36
  • secureContext: true, navigator.cookieEnabled: true, navigator.webdriver: false
  • Plugins: none configured; no local project plugins

A control navigation to https://accounts.google.com/ loaded the normal Google sign-in identifier page in the same built-in browser, but the actual sign-in attempt was rejected.

cepice avatar Nov 26 '26 14:11 cepice

Additional Windows data point, including a working 2.3.0 control:

  • OpenCode Desktop 2.4.3 on Windows 11 26H2 (10.0.26300), same PC/network/account: Google sign-in at https://accounts.google.com/ and Sentry OAuth both fail after entering the email with "Couldn't sign you in / This browser or app may not be secure".
  • Same PC/network/Google account on OpenCode Desktop 2.3.0: Google reaches the password challenge and sign-in succeeds.
  • 2.3.0 UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) OpenCode/2.3.0 Chrome/152.0.7977.167 Electron/44.9.1 Safari/537.36
  • 2.4.3 UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.7977.167 Safari/537.36 (no OpenCode/Electron tokens)

This confirms the regression starts between 2.3.0 and 2.4.x and is not account/network-specific. Full report (closed as duplicate): #67599.

dgmensit-gif avatar Dec 01 '26 19:12 dgmensit-gif