Skip to content

docs(feishu): add mixed proxy troubleshooting - #75050

Closed
kunpeng-ai-lab wants to merge 2 commits into
openclaw:mainfrom
kunpeng-ai-lab:docs-feishu-mixed-proxy-72595
Closed

kunpeng-ai-lab wants to merge 2 commits into
openclaw:mainfrom
kunpeng-ai-lab:docs-feishu-mixed-proxy-72595

Conversation

@kunpeng-ai-lab

Copy link
Copy Markdown
Contributor

Summary

  • Adds Feishu/Lark troubleshooting guidance for mixed proxy environments.
  • Documents the case where model-provider traffic needs HTTP_PROXY / HTTPS_PROXY, but Feishu/Lark official endpoints should go direct via NO_PROXY.
  • Includes PowerShell examples for Feishu China and Lark global domains.
  • Adds verification steps and a reminder not to share app secrets, tokens, proxy credentials, or full local logs.

Change Type (select all)

  • Docs

Scope (select all touched areas)

  • Integrations

Linked Issue/PR

Root Cause (if applicable)

N/A. This is a docs-only troubleshooting update.

Regression Test Plan (if applicable)

N/A. No runtime behavior changed.

User-visible / Behavior Changes

None. Documentation only.

Diagram (if applicable)

Provider requests -> use env proxy when configured
Feishu/Lark API + WebSocket -> bypass via NO_PROXY when the local network requires direct access

Security Impact (required)

  • New permissions/capabilities? No
  • Secrets/tokens handling changed? No
  • New/changed network calls? No
  • Command/tool execution surface changed? No
  • Data access scope changed? No
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

  • OS: Windows docs example, docs-only change
  • Runtime/container: N/A
  • Model/provider: N/A
  • Integration/channel: Feishu/Lark
  • Relevant config (redacted): proxy env examples only, no real credentials

Steps

  1. Reviewed docs/channels/feishu.md troubleshooting flow.
  2. Added a mixed proxy section after the existing "Bot does not receive messages" checks.
  3. Verified the docs page parses as MDX.

Expected

  • Users with mixed proxy setups can keep model-provider proxy env vars while bypassing Feishu/Lark official endpoints through NO_PROXY.

Actual

  • Documentation now includes symptoms, PowerShell examples, verification steps, and sensitive-log guidance.

Evidence

  • Trace/log snippets

Verification run locally:

pnpm docs:check-mdx -- docs\channels\feishu.md
Docs MDX check passed (484 files, 1991ms).

git diff --check -- docs\channels\feishu.md
passed

Note: pnpm format:docs:check currently fails before checking this file with TypeError: Cannot read properties of undefined (reading 'trim') in scripts/format-docs.mjs. A targeted markdownlint-cli2 docs\channels\feishu.md invocation also expands to the repo docs globs and reports an unrelated pre-existing docs/CLAUDE.md trailing-newline issue.

Human Verification (required)

  • Verified scenarios: docs-only MDX parsing and whitespace check.
  • Edge cases checked: Feishu China domain, Lark global domain, custom domain note, sensitive credential redaction note.
  • What you did not verify: live Feishu/Lark connectivity from this branch, because no runtime behavior changed.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

  • Backward compatible? Yes
  • Config/env changes? No
  • Migration needed? No
  • If yes, exact upgrade steps: N/A

Risks and Mitigations

  • Risk: Users may copy examples without adapting them to their own proxy/domain setup.
    • Mitigation: The docs explicitly call out Feishu China, Lark global, and custom-domain variants, and keep the examples credential-free.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: feishu Channel integration: feishu size: XS labels Apr 30, 2026
@clawsweeper

clawsweeper Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 5:08 PM ET / 21:08 UTC.

ClawSweeper review

What this changes

The PR adds Windows PowerShell troubleshooting guidance for mixed proxy environments, explaining how Feishu/Lark endpoints can use NO_PROXY while other gateway traffic keeps HTTP_PROXY and HTTPS_PROXY.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

This docs-only PR still addresses a real gap: current Feishu troubleshooting has no proxy or NO_PROXY guidance. Keep it open for a maintainer decision because current main now routes Feishu REST, bootstrap, and WebSocket traffic through a shared ambient-proxy transport, so published advice to bypass those endpoints is an intentional operator security/egress policy—not a routine wording change.

Priority: P3
Reviewed head: b70f0d14f81d49362ffcce78048644dd887cc81d
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-structured docs patch that remains useful, with maintainer policy confirmation needed before it can be merged safely.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 4 items Current documentation gap: Current main has the Feishu troubleshooting section at this location but contains no proxy or NO_PROXY guidance, so the PR’s central documentation need remains unimplemented.
Current runtime contract changed after this branch: Merged PR #86386 standardized a process-scoped ambient proxy agent across Feishu REST, SDK bootstrap, and WebSocket paths. That makes direct-bypass guidance an operator egress-policy choice that should be accepted against the current contract.
Merged provenance: The GitHub merge record shows steipete merged commit d43c8ec for the shared Feishu proxy transport on July 15, 2026; the open PR branch predates that implementation.
Findings None None.
Security None None.

How this fits together

The Feishu plugin runs inside the Gateway process and uses that process’s network environment for API and event-transport traffic. This documentation sits in the channel troubleshooting flow and guides operators from failed message delivery toward a proxy-routing configuration and gateway restart or service-environment refresh.

flowchart TD
  A[Gateway process environment] --> B[Provider and Feishu traffic]
  B --> C[Proxy routing decision]
  C --> D[Feishu API and event transport]
  D --> E[Bot receives and sends messages]
  F[Feishu troubleshooting docs] --> C
Loading

Decision needed

Question Recommendation
Should the official Feishu documentation recommend NO_PROXY direct bypass for Feishu/Lark endpoints in mixed-proxy deployments now that current main deliberately shares ambient proxy routing across Feishu REST and WebSocket setup? Publish scoped bypass guidance: Approve the section after refreshing it to say that NO_PROXY is appropriate only when the operator’s network policy permits direct Feishu/Lark egress.

Why: This is an operator egress and credential-routing policy choice; source review can establish the transport mechanics but cannot decide whether direct bypass is acceptable for managed or corporate deployments.

Before merge

  • Resolve merge risk (P1) - Following the proposed NO_PROXY examples can deliberately route credentialed Feishu/Lark traffic outside an organization’s ambient proxy or inspection path; maintainers should explicitly approve that advice for the current shared proxy contract.
  • Resolve merge risk (P1) - The branch predates the July 15, 2026 Feishu transport change, so its wording should be refreshed against the current proxy-helper behavior before merge.
  • Complete next step (P2) - The remaining action is an explicit maintainer choice about published proxy-bypass guidance under the current Feishu egress contract, not a narrow automated repair.
Agent review details

Security

None.

PR surface

Docs +57. Total +57 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 57 0 +57
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 57 0 +57

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Refresh and approve network-policy scope (recommended)
    Rebase the documentation context and explicitly limit direct-bypass guidance to deployments whose network policy permits Feishu/Lark egress outside the proxy.
  2. Accept direct-bypass guidance as written
    Merge the examples while accepting that operators may route Feishu/Lark credential traffic outside the ambient proxy.
  3. Pause for a unified proxy policy
    Close or defer this documentation branch if maintainers want the open per-channel proxy-policy work to define the supported operator model first.

Technical review

Best possible solution:

Keep one concise mixed-proxy troubleshooting section, but make its scope match the current shared Feishu proxy transport and state that operators must use the routing policy required by their network rather than treating direct bypass as universally safe.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a runtime bug reproduction: this is a docs-only PR. Current main confirms the documented troubleshooting gap, while the related proxy-routing behavior is owned by the merged Feishu transport implementation.

Is this the best way to solve the issue?

Unclear until maintainers choose the intended egress policy. Adding guidance at the existing troubleshooting boundary is the right documentation location, but the wording must be reconciled with the current shared ambient-proxy contract and the open broader policy discussion.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against c0946676da1c.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: This is a narrow documentation improvement, but its final wording needs an explicit proxy-policy decision rather than urgent code repair.
  • merge-risk: 🚨 security-boundary: The proposed instructions can intentionally send Feishu/Lark credential traffic directly instead of through an operator’s existing proxy boundary.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

Likely related people:

  • steipete: Merged the current shared Feishu ambient-proxy transport and documented its intended operator boundary in the merged PR discussion. (role: merger and recent proxy-contract decision owner; confidence: high; commits: d43c8ec7a255; files: extensions/feishu/src/client.ts)
  • larry-xue: Authored the merged implementation that unified Feishu REST, SDK bootstrap, and WebSocket proxy routing, which this troubleshooting guidance must describe accurately. (role: author of the current merged Feishu proxy implementation; confidence: high; commits: 5474ce99cbaa; files: extensions/feishu/src/client.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the wording against the shared Feishu proxy transport merged on July 15, 2026.
  • State that direct bypass must follow the operator’s network and security policy.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-07-03T21:08:22.365Z sha b70f0d1 :: needs maintainer review before merge. :: none

@kunpeng-ai-lab

Copy link
Copy Markdown
Contributor Author

Updated in ffb3ee7b to clarify the gateway launch-environment boundary.

Changes made:

  • The PowerShell examples now explicitly apply to one-off foreground openclaw gateway runs, where the gateway process inherits the same shell environment.
  • Managed/installed gateway services now have a separate note explaining that a new terminal's $env:* values do not update the background service environment, and that the proxy variables need to be provided through the service launcher/wrapper environment before restarting the managed gateway.
  • The verification checklist now asks users to confirm the gateway was launched from the environment that contains the proxy variables.

Local verification after the follow-up commit:

pnpm docs:check-mdx -- docs\channels\feishu.md
Docs MDX check passed (484 files, 2048ms).

git diff --check -- docs\channels\feishu.md
passed

@kunpeng-ai-lab
kunpeng-ai-lab force-pushed the docs-feishu-mixed-proxy-72595 branch from ffb3ee7 to b70f0d1 Compare May 1, 2026 08:40
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels May 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label May 30, 2026
@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label May 30, 2026
@barnacle-openclaw barnacle-openclaw Bot removed the stale Marked as stale due to inactivity label May 30, 2026
@kunpeng-ai-lab

Copy link
Copy Markdown
Contributor Author

Status update to keep this PR active and request a fresh review.

This is a docs-only Feishu troubleshooting update. The latest follow-up in ffb3ee7b clarifies the gateway launch-environment boundary:

  • PowerShell proxy examples apply to one-off foreground openclaw gateway runs where the gateway inherits the same shell environment.
  • Managed/installed gateway services need proxy variables supplied through the service launcher/wrapper environment before restarting the managed gateway.
  • The checklist now asks users to verify the gateway was launched from the environment containing the proxy variables.

Local validation after the follow-up commit:

pnpm docs:check-mdx -- docs\channels\feishu.md
Docs MDX check passed (484 files, 2048ms).

git diff --check -- docs\channels\feishu.md
passed

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels May 30, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jun 17, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jun 18, 2026
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jun 28, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 28, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 27, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 30, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jul 31, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Aug 15, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: feishu Channel integration: feishu docs Improvements or additions to documentation merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS stale Marked as stale due to inactivity status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant