Repository navigation
fix(feishu): preserve custom HTTPS domain ports - #117278
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 3:29 AM ET / 07:29 UTC. ClawSweeper reviewWhat this changesThis PR changes the Feishu plugin’s HTTP transport so configured custom HTTPS origins retain their explicit port and reverse-proxy path after the Lark SDK expands API routes. Merge readinessKeep this PR open for explicit maintainer review. Current main still passes a custom HTTPS domain directly to the Lark SDK, while this patch moves the custom-origin restoration into the Feishu-owned transport; the change appears coherent and the submitted proof is substantial, but the checkout has no installed or cached SDK source and network resolution prevented an independent dependency-contract read. Priority: P2 Review scores
Verification
How this fits togetherThe Feishu plugin creates per-account SDK and WebSocket clients for sending, reading, uploading, and receiving channel data. SDK-generated API URLs enter the plugin-owned HTTP transport, which applies timeout, proxy, multipart, and now custom-origin handling before requests leave OpenClaw. flowchart LR
A[Feishu account configuration] --> B[Client and WebSocket creation]
B --> C[Lark SDK route expansion]
C --> D[Plugin HTTP transport]
D --> E[Custom-origin decision]
E --> F[HTTPS API, Drive, and WebSocket discovery]
D --> G[Timeout and proxy handling]
Decision needed
Why: The implementation deliberately depends on upstream SDK URL expansion behavior, and this PR carries the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +27, Tests +143. Total +170 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep one Feishu-owned URL-rewrite path, retain the existing configured HTTPS-domain contract, and land only after a maintainer accepts the SDK-contract evidence and the exact-head required checks complete. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main passes a configured HTTPS URL directly to the SDK while the PR documents the resulting port-as-route failure and adds focused custom-origin transport cases. I did not execute the live reproduction in this read-only checkout. Is this the best way to solve the issue? Yes, provisionally: preserving the SDK’s canonical route expansion while restoring the operator-owned origin in the existing Feishu HTTP transport keeps timeout, proxy, multipart, REST, Drive, and WebSocket-discovery behavior on one owner path; the remaining uncertainty is the upstream SDK URL contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against edfeec49e7a7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: (41 commits) test(ci): update memory helper routing expectation (#117295) fix(canvas): emit successful control results in JSON mode (#117297) fix(imessage): settle native inbound reply delivery (#117282) fix(agents): reject invalid UTF-8 LSP responses (#117271) fix(line): centralize card and template message alt text (#117280) fix(release): validate candidates before Docker publication (#117252) fix(media): validate provider-owned generated media downloads (#117281) fix(feishu): restore custom HTTPS API domains (#117278) fix(models): reuse prepared plugin metadata (#117131) fix(agents): stop fallback after delivered-but-failed attempts (#114628) fix(memory): reuse targeted session corpus snapshot (#117247) fix(matrix): reconcile durable sends after response loss test(release): repair full validation regressions (#116931) fix(linux-canvas): report socket watcher fallback (#109502) fix(codex): preserve authoritative turn completion (#117185) fix(canvas): preserve widgets across derived-name collisions (#117132) fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (#117206) fix(msteams): prevent duplicate final replies (#116398) fix(doctor): session SQLite restore installs an empty session index over the valid archive (#117221) fix(plugins): preserve workspace plugins across CLI and control UI (#117265) ...
Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: (41 commits) test(ci): update memory helper routing expectation (openclaw#117295) fix(canvas): emit successful control results in JSON mode (openclaw#117297) fix(imessage): settle native inbound reply delivery (openclaw#117282) fix(agents): reject invalid UTF-8 LSP responses (openclaw#117271) fix(line): centralize card and template message alt text (openclaw#117280) fix(release): validate candidates before Docker publication (openclaw#117252) fix(media): validate provider-owned generated media downloads (openclaw#117281) fix(feishu): restore custom HTTPS API domains (openclaw#117278) fix(models): reuse prepared plugin metadata (openclaw#117131) fix(agents): stop fallback after delivered-but-failed attempts (openclaw#114628) fix(memory): reuse targeted session corpus snapshot (openclaw#117247) fix(matrix): reconcile durable sends after response loss test(release): repair full validation regressions (openclaw#116931) fix(linux-canvas): report socket watcher fallback (openclaw#109502) fix(codex): preserve authoritative turn completion (openclaw#117185) fix(canvas): preserve widgets across derived-name collisions (openclaw#117132) fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (openclaw#117206) fix(msteams): prevent duplicate final replies (openclaw#116398) fix(doctor): session SQLite restore installs an empty session index over the valid archive (openclaw#117221) fix(plugins): preserve workspace plugins across CLI and control UI (openclaw#117265) ...
What Problem This Solves
Fixes an issue where Feishu operators using a documented custom HTTPS API domain with an explicit port could not send messages, read messages, or inspect chats because the upstream SDK interpreted the domain port as a missing API route argument.
Why This Change Was Made
The Feishu client owner now gives the SDK its canonical port-free domain during route expansion while its existing account-owned HTTP transport restores the operator's exact HTTPS origin, explicit port, and optional reverse-proxy path for every request. The same canonical transport serves REST authentication, all HTTP methods, Drive calls, media uploads, and WebSocket endpoint discovery; no configuration, dependency, plugin SDK, authentication policy, or other plugin changes.
User Impact
Private Feishu deployments using HTTPS domains such as
https://feishu.example:8443/companycan send messages, read message/chat context, upload media, access Drive, and initialize WebSockets without losing their configured port or path. Official Feishu/Lark domains, per-account isolation, existing proxies, timeout behavior, and unrelated request origins remain unchanged.Evidence
d2e4c6509f4e059465664a79383a30c65c65a17a; tree:199de5d07fff2296a93e03115b567cbab7042f20; base:ad3e36ef33148ea5b341ebbbc8f5b0fcd84b0596; current main:8ed6c98b08f47b0c1a35335b8faa8bb2601de9bb; clean synthetic merge tree:e61c2dc2145b4927fbc11e893429620df42b8232.@larksuiteoapi/[email protected]reportedrequest miss <port> path argumentfor real message send, message read, and chat read.git diff --checkpassed on the immutable head; independent hostile owner reviews and the fresh complete-branch P0–P3 autoreview are recorded in the landing manifest.