openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Windows v0.54.0 release still drops Google/GitHub OAuth callbacks after #2469/#2511

Open anweat opened this issue 6 months ago • 10 comments

Title

Windows v0.54.0 release still drops Google/GitHub OAuth callbacks after #2469/#2511

Body

Summary

The latest published Windows release (v0.54.0, published 2026-05-19) still reproduces the Windows OAuth callback issue described in #2466: after completing Google or GitHub sign-in in the browser, clicking the "Open OpenHuman" option launches/focuses OpenHuman but the app remains on the welcome/login screen.

This appears to be fixed on main by #2469 and further hardened by #2511, but the latest downloadable Windows installer predates both fixes. Users who uninstall/reinstall from the current release still receive a build that cannot consume the OAuth callback.

Environment

  • OS: Windows
  • OpenHuman install path: F:\ProgramFile\OpenHuman\OpenHuman.exe
  • Installed executable timestamp: 2026-05-19
  • Latest GitHub release checked: v0.54.0
  • Release publish time: 2026-05-19T07:17:46Z
  • Release target commit: c25fc8e5fd3e7716f416571cd53b34247c94ddbe
  • main currently contains #2469 and #2511, after the release commit

Reproduction

  1. Install/Open OpenHuman v0.54.0 on Windows.
  2. Choose the local/native runtime.
  3. Click Google or GitHub on the welcome screen.
  4. Complete OAuth in the system browser.
  5. On the OpenHuman redirect page, choose the option to open OpenHuman.

Expected: OpenHuman consumes the OAuth callback and logs in.

Actual: OpenHuman remains on the welcome/login screen.

Diagnostics

The app is running and healthy:

  • Main process is listening on 127.0.0.1:7788, 127.0.0.1:19222, and another local port.
  • The WebView remains at http://tauri.localhost/#/.
  • Local storage does not contain auth/session/user keys after the callback.

The Windows protocol handler is registered:

HKEY_CLASSES_ROOT\openhuman
URL Protocol:
openhuman\shell\open\command = "F:\ProgramFile\OpenHuman\OpenHuman.exe" "%1"

During OAuth callback attempts, the log repeatedly shows secondary launches being discarded:

[startup] platform: arch=x86_64 os=windows
[single-instance] pre-CEF mutex held by primary; secondary exiting (OPENHUMAN-TAURI-A fix)

No corresponding auth, oauth, callback, deep-link, or token-consumption log line appears, and the UI state does not change.

Related

  • #2466: same symptom, closed by #2469
  • #2469: fix(tauri): forward Windows local-runtime OAuth callbacks, merged 2026-05-22
  • #2511: feat(auth): loopback OAuth redirect with deep-link fallback, merged 2026-05-23

Requested action

Could you publish a new Windows release/build that includes #2469/#2511, or reopen/track this as a release packaging issue until the latest public installer contains the OAuth callback fix?

anweat avatar May 23 '26 08:05 anweat

附议

Yang20260312 avatar May 23 '26 08:05 Yang20260312

附议

Tian0118 avatar May 23 '26 08:05 Tian0118

Confirmed the current state here.

Latest public release is still v0.54.0, published 2026-05-19, target commit c25fc8e5fd3e7716f416571cd53b34247c94ddbe.

The Windows OAuth fixes landed after that release:

  • #2469 merged 2026-05-22 as ed3e453b8bed488a4d6c196e76c3d095c30b1c12 and adds Windows local-runtime deep-link forwarding.
  • #2511 merged 2026-05-23 as bbec0d61f9a773417f7f46aabc8ecdbd0db29d21 and adds the loopback OAuth redirect with deep-link fallback.

So this looks like a release packaging gap rather than a current main regression. Recommended action: publish a Windows hotfix/new installer from a commit at or after bbec0d61 (ideally current main) and keep this issue open until the latest public Windows asset includes both #2469 and #2511. If a release cannot be cut immediately, attaching a CI-built Windows artifact from current main here would give blocked users a concrete workaround.

YOMXXX avatar May 23 '26 11:05 YOMXXX

Workaround: Windows build with OAuth fixes available

A build from current main (commit 4c6007b) including #2469 + #2511 + #2550 was produced via GitHub Actions.

Download: https://github.com/sakuradairong/openhuman/releases/tag/v0.54.10-oauth-fix

File Size Type
OpenHuman_0.54.10_x64-setup.exe 142 MB NSIS installer
OpenHuman_0.54.10_x64_en-US.msi 193 MB MSI installer

Build log: https://github.com/sakuradairong/openhuman/actions/runs/26340243409

This is a temporary workaround until an official release is published from upstream.

sakuradairong avatar May 23 '26 19:05 sakuradairong

解决方法:已推出包含 OAuth 修复程序的 Windows 版本

通过 GitHub Actions 生成了包含**#2469**** + #2511 + **#2550main的当前版本(提交4c6007b)的构建。

下载地址:https://github.com/sakuradairong/openhuman/releases/tag/v0.54.10-oauth-fix

文件 尺寸 类型 OpenHuman_0.54.10_x64-setup.exe 142 MB NSIS 安装程序 OpenHuman_0.54.10_x64_en-US.msi 193 MB MSI安装程序 构建日志:https://github.com/sakuradairong/openhuman/actions/runs/26340243409

这是在上游发布正式版本之前的临时解决方案。

但是这样会有一个新问题:在使用过程中,会不间断的反复需要重新登陆

Tian0118 avatar May 23 '26 21:05 Tian0118

附议 附加提案

liuminxin45 avatar May 27 '26 01:05 liuminxin45

Audit confirms @YOMXXX's read — this is a release-packaging gap, not a code gap on main. As of right now:

Latest public release v0.54.0 (2026-05-19, target c25fc8e)
Days since release 8
Commits on main since v0.54.0 415

Windows-OAuth-relevant fixes already in main, missing from v0.54.0:

PR Commit Title
#2469 ed3e453b fix(tauri): forward Windows local-runtime OAuth callbacks
#2511 bbec0d61 feat(auth): loopback OAuth redirect with deep-link fallback
#2552 6a06baee fix(windows): make port/process takeover actually free the port
#2669 f946eda5 fix(tauri): harden Windows pre-CEF single-instance mutex handling

In-flight (still in PR), would also help these users diagnose if register_all is silently failing on their host:

  • #2757 — fix(tauri): verify openhuman:// registry registration on Windows (#2699). Adds a read-back of HKCU\Software\Classes\openhuman\shell\open\command after register_all and surfaces NotRegistered / Stale / MissingCommand / ReadError at log::error! so the failure mode is observable in support logs.

Regarding @Tian0118's follow-up comment (sessions repeatedly require re-login on the sakuradairong/v0.54.10-oauth-fix workaround build): that's a different failure mode than the original drop-on-callback. The workaround build was cut at 4c6007b, before these landed on main — candidate fixes worth checking once an official release reaches them:

  • #2384 — fix(auth): refresh RPC cache before deep-link session store (commit 203367cb)
  • #2493 — fix(chat): survive socket reconnects — thread-key session/cancel + thread-room stream (commit e854a07e)

If those don't resolve the re-login churn after a fresh release, a separate focused issue with the exact log lines would be cleaner to track than nesting it under this thread.

Requested action: cut a new public Windows release from current main (HEAD already covers all four merged PRs above). cc @senamakel — would unblock the users on this thread + #2466 + #2699 in one go.

CodeGhost21 avatar May 27 '26 12:05 CodeGhost21

Workaround: Windows build with OAuth fixes available

A build from current main (commit 4c6007b) including #2469 + #2511 + #2550 was produced via GitHub Actions.

Download: https://github.com/sakuradairong/openhuman/releases/tag/v0.54.10-oauth-fix

File Size Type OpenHuman_0.54.10_x64-setup.exe 142 MB NSIS installer OpenHuman_0.54.10_x64_en-US.msi 193 MB MSI installer Build log: https://github.com/sakuradairong/openhuman/actions/runs/26340243409

This is a temporary workaround until an official release is published from upstream.

This fixes the issue somewhat. I can finally enter the app and start configuring, however while I'm doing my configuration in the settings, I get sent back to the welcome screen. Not sure what triggers this to keep happening, but doing some initial configuration of settings sends me back to go through OAuth every time after messing around with a few settings.

Merculous avatar May 27 '26 14:05 Merculous

Update after re-checking the official releases:

  • The latest public release is now v0.56.0, published 2026-05-27 16:47 UTC.
  • It includes official Windows assets: OpenHuman_0.56.0_x64-setup.exe and OpenHuman_0.56.0_x64_en-US.msi.
  • The release commit contains the Windows OAuth callback fixes from #2469 and #2511, plus related hardening from #2552 and #2669.
  • It also contains the session/deep-link follow-up fixes that are relevant to the repeated re-login reports: #2384, #2493, #2550, #2690, and #2758.

This issue should now be retested against the official v0.56.0 Windows installer rather than the older v0.54.0 release or temporary workaround builds.

If Google/GitHub OAuth still drops the callback on v0.56.0, please attach redacted log lines containing deep-link, deep-link-ipc, oauth, auth, single-instance, and callback.

If OAuth succeeds but the app later returns to Welcome / asks for login again, that is a separate failure mode; please include session_expired, auth_clear_session, auth_store_session, core-rpc-auth-expired, and the exact Settings panel/action that triggered it so we can track it separately.

YOMXXX avatar May 30 '26 09:05 YOMXXX

Closing as resolved on main.

The Windows local-runtime OAuth callback drop is fixed on main by:

  • ed3e453b8 — fix(tauri): forward Windows local-runtime OAuth callbacks (#2469)
  • bbec0d61f — feat(auth): loopback OAuth redirect with deep-link fallback (#2511)

Both are present on origin/main, so builds from main no longer drop the Google/GitHub OAuth callback after browser sign-in.

⚠️ Release caveat: the last public installer that predates these fixes (v0.54.0) will still reproduce this until a newer release is cut. If you install a release build published after #2469/#2511 landed and still hit the dropped-callback behavior, please reopen with the version and startup logs — that would indicate a packaging/regression issue rather than the original bug.

M3gA-Mind avatar Jul 07 '26 14:07 M3gA-Mind