openclaw - 💡(How to fix) Fix openclaw-feishu plugin: startAccount resolves immediately, channel exits before WebSocket connects [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#77102Fetched 2026-05-05 05:52:11
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
2
Author
Timeline (top)
closed ×1commented ×1mentioned ×1subscribed ×1

[email protected] plugin's gateway.startAccount returns synchronously, causing the OpenClaw 2026.5.2 gateway to kill the channel before the WebSocket connection is established.

Error Message

12:11:47.199 channel exited without an error ← 1ms later

Root Cause

Gateway (server.impl-B11albXx.js:2062) treats startAccount's Promise resolution as the channel lifecycle signal — resolve = channel stopped. But the plugin resolves immediately after calling un-awaited wsClient.start().

Code Example

12:11:47.198  WebSocket client started        ← plugin returns { stop }
12:11:47.199  channel exited without an error  ← 1ms later
[ws client ready]SDK connects, channel dead
RAW_BUFFERClick to expand / collapse

Summary

[email protected] plugin's gateway.startAccount returns synchronously, causing the OpenClaw 2026.5.2 gateway to kill the channel before the WebSocket connection is established.

Root cause

Gateway (server.impl-B11albXx.js:2062) treats startAccount's Promise resolution as the channel lifecycle signal — resolve = channel stopped. But the plugin resolves immediately after calling un-awaited wsClient.start().

Log timing

12:11:47.198  WebSocket client started        ← plugin returns { stop }
12:11:47.199  channel exited without an error  ← 1ms later
[ws client ready]                              ← SDK connects, channel dead

The WebSocket connects fine — tested directly with the Lark SDK.

Repo

The plugin is distributed from https://github.com/hgkdzbf6/openclaw-feishu (issues disabled) but published as openclaw-feishu on npm alongside openclaw.

extent analysis

TL;DR

The openclaw-feishu plugin's gateway.startAccount method should be modified to wait for the WebSocket connection to be established before resolving.

Guidance

  • The plugin's startAccount method is resolving immediately after calling wsClient.start(), causing the gateway to kill the channel prematurely.
  • To fix this, the plugin should await the WebSocket connection establishment before resolving the startAccount promise.
  • The log timing suggests that the channel is being killed 1ms after the plugin returns, indicating that the resolution of the startAccount promise is being treated as the channel lifecycle signal.
  • The WebSocket connection is established correctly when tested directly with the Lark SDK, indicating that the issue lies in the plugin's implementation.

Example

// Modified startAccount method
async function startAccount() {
  await wsClient.start();
  // Resolve the promise after the WebSocket connection is established
  return { stop };
}

Notes

The exact implementation of the startAccount method is not provided, so the example above is a suggestion based on the information given. The plugin's code should be reviewed to ensure that the WebSocket connection establishment is properly awaited.

Recommendation

Apply workaround: Modify the openclaw-feishu plugin to await the WebSocket connection establishment before resolving the startAccount promise, as shown in the example above. This should prevent the gateway from killing the channel prematurely.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix openclaw-feishu plugin: startAccount resolves immediately, channel exits before WebSocket connects [1 comments, 2 participants]