Repository navigation
fix(feishu): restore websocket liveness timeout - #103763
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 10, 2026, 11:36 AM ET / 15:36 UTC. Summary PR surface: Source -3, Tests -2. Total -5 across 2 files. Reproducibility: yes. at high confidence from source and dependency inspection: OpenClaw passes keys the SDK constructor never reads, leaving the watchdog at zero, and the PR's real constructor output confirms Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the typed SDK-owned Do we have a high-confidence way to reproduce the issue? Yes at high confidence from source and dependency inspection: OpenClaw passes keys the SDK constructor never reads, leaving the watchdog at zero, and the PR's real constructor output confirms Is this the best way to solve the issue? Yes. Using the dependency's typed AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9b4c7c0991dd. Label changesLabel justifications:
Evidence reviewedPR surface: Source -3, Tests -2. Total -5 across 2 files. View PR surface stats
What I checked:
Likely related people:
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. How this review workflow works
|
|
Merged via squash.
|
(cherry picked from commit a0c4c31)
What Problem This Solves
Fixes an issue where users relying on the Feishu WebSocket channel could stop receiving messages after a half-open connection because the intended heartbeat liveness timeout was silently ignored.
Why This Change Was Made
The existing code passed
PingIntervalandPingTimeout, which are server response field names rather than supportedWSClientconstructor options. This change uses the SDK's typedpingTimeoutoption, leaves ping cadence server-controlled, and removes the type assertion that previously allowed unsupported keys to bypass TypeScript validation.User Impact
Feishu WebSocket connections now enable the SDK's three-second post-ping liveness watchdog, allowing stale connections to enter the existing reconnect flow without any operator configuration change.
Evidence
Real behavior proof against the pinned
@larksuiteoapi/[email protected]constructor:{ "legacyPingTimeoutSec": 0, "fixedPingTimeoutSec": 3, "legacyPingIntervalMs": 120000, "fixedPingIntervalMs": 120000 }This shows the legacy keys left the watchdog disabled, while
pingTimeoutenables it and preserves the SDK/server-controlled ping interval.Feishu plugin test suite: 75 test files passed, 1,031 tests passed.
git diff --check: passed.codex review --base upstream/main: no actionable findings.Not performed: a live forced-disconnect test against a production Feishu app. The constructor probe exercises the real pinned SDK rather than the mocked unit-test boundary.
AI-assisted: Yes. I reviewed the final diff, the pinned SDK source/types, and the validation results.