Skip to content

Cherry-pick 0a23739c3: fix(feishu): pass proxy agent to WSClient for proxy environments (#26397)#1473

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/0a23739c3-feishu-proxy-wsclient
Mar 15, 2026
Merged

Cherry-pick 0a23739c3: fix(feishu): pass proxy agent to WSClient for proxy environments (#26397)#1473
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/0a23739c3-feishu-proxy-wsclient

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick of upstream openclaw/openclaw@0a23739c3.

Original: fix(feishu): pass proxy agent to WSClient for proxy environments (openclaw#26397)

Part of #678.

Cherry-picked-from: 0a23739

…nclaw#26397)

* fix(feishu): pass proxy agent to WSClient for environments behind HTTPS proxy

The Lark SDK WSClient uses the `ws` library which does not automatically
respect https_proxy/HTTP_PROXY environment variables. This causes WebSocket
connection failures in proxy environments (e.g. WSL2 with a local proxy).

Detect proxy env vars and pass an HttpsProxyAgent to WSClient via the
existing `agent` constructor option.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix(feishu): add generic type parameter to HttpsProxyAgent return type

Fix TS2314: `HttpsProxyAgent<Uri>` requires a type argument.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix(feishu): wire ws proxy dependency and coverage

* chore(lockfile): resolve axios peer lock entry after rebase

---------

Co-authored-by: lirui <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
(cherry picked from commit 0a23739)
@alexey-pelykh alexey-pelykh merged commit 828f038 into main Mar 15, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/0a23739c3-feishu-proxy-wsclient branch March 15, 2026 22:51
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.

2 participants