Repository navigation
fix(feishu): disable ambient proxy inheritance for websocket by default - #65802
songbing0632-code wants to merge 1 commit into
Conversation
Greptile SummaryThis PR fixes a reliability bug in the Feishu WebSocket client by making proxy usage opt-in via
Confidence Score: 4/5Safe to merge after fixing the env cleanup leak in the test file; production logic is correct. The production change is sound, but the missing afterEach cleanup for OPENCLAW_FEISHU_WS_USE_PROXY is a real test isolation defect (P1) that can cause other tests to silently enable proxy behavior when run with --isolate=false. extensions/feishu/src/client.test.ts — missing afterEach restore for FEISHU_WS_USE_PROXY_ENV_VAR
|
|
Codex review: needs real behavior proof before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. On current main, setting proxy env before PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review findings
Review detailsBest possible solution: Keep the Feishu-owned direct-by-default fix, but preserve managed proxy routing, restore test env state, document the opt-in and upgrade behavior, and require real patched-branch proof before merge. Do we have a high-confidence way to reproduce the issue? Yes. On current main, setting proxy env before Is this the best way to solve the issue? No, not as submitted. The narrow Feishu fix is plausible, but it needs managed-proxy handling, env cleanup, docs, conflict resolution, and after-fix proof before it is the maintainable solution. Label justifications:
Full review comments:
Overall correctness: patch is incorrect Security concerns:
Acceptance criteria:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 447a3643c69b. |
|
Adding real-world confirmation of this bug. My setup: macOS 26.4.1 (arm64), OpenClaw 2026.5.3-1, HTTP_PROXY=http://127.0.0.1:7890 injected into gateway launchd plist for Gemini API access. Gateway logs show repeated ws connect failed errors spanning several days: Removing HTTP_PROXY from the plist resolved the Feishu WS connection. This confirms the fix in this PR is correct — Feishu WS should not inherit ambient proxy env by default. |
|
please resolve this issue, better not only enable/disable by env variable switch, but also add a flag in openclaw.json, just like what Discord extension did: and also it has own flag |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
OPENCLAW_FEISHU_WS_USE_PROXY=1opt-in for proxy usageWhy
Feishu inbound can silently break when the gateway process inherits unrelated proxy env, especially
ALL_PROXYpointing at an unavailable local SOCKS endpoint. In that case Feishu WS only logs a genericws connect failed, while direct connection with the same app credentials succeeds.This makes Feishu inbound fragile and hard to debug. A safer default is to bypass ambient proxy env for Feishu WS unless explicitly requested.
Testing
extensions/feishu/src/client.test.tsCloses #65799