Skip to content

fix: use configured apiBaseUrl for QR login - #9

Closed
NewFuture wants to merge 1 commit into
mainfrom
upstream/pr-190-qr-login-api-base-url
Closed

NewFuture wants to merge 1 commit into
mainfrom
upstream/pr-190-qr-login-api-base-url

Conversation

@NewFuture

Copy link
Copy Markdown
Owner

Upstream source

Exact mirror of Tencent/openclaw-weixin#190 by @jeffkit.

  • Original branch: jeffkit/openclaw-weixin:fix/qr-login-respect-api-base-url
  • Original base: 128dc53a000f389e7da68e1080115252e5b263dd
  • Preserved head: 13513aeedafc92d2126963e437fe016cdb9d678e
  • Current target base at mirror creation: 4feec89ff2b40c93578a96f6325bdd536ad9d38e
  • Commit history and authorship are unchanged.

Upstream intent

Use the configured API base URL for QR-code creation and status polling instead of hardcoding the Tencent endpoint.

Local review status

This one-file mirror merges cleanly into the current target and its focused validation, typecheck, and build pass, but it remains a Draft until these findings are addressed:

  • section/account baseUrl is not plumbed into first-time QR login, so the main configured-login flow can still use the Tencent default;
  • after scaned_but_redirect, fetching a replacement QR does not reset the active polling base URL, so the new QR can be polled against the stale redirect host;
  • no QR-login regression tests cover configuration propagation or redirect-refresh behavior.

Original discussion remains on the upstream PR.

startWeixinLoginWithQr and waitForWeixinLogin accepted apiBaseUrl
but fetchQRCode/poll still used a hardcoded Tencent endpoint.
Use the channel-configured base URL so OpenClaw can pair through
local iLink Hub gateways.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NewFuture NewFuture closed this Aug 2, 2026
@NewFuture
NewFuture deleted the upstream/pr-190-qr-login-api-base-url branch August 3, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant