Skip to content

fix(feishu): add 60s submitTurn timeout + tell user when busy + re-throw send errors#171

Open
hernandez42 wants to merge 2 commits into
OpenBMB:mainfrom
hernandez42:fix/feishu-activechats-timeout
Open

fix(feishu): add 60s submitTurn timeout + tell user when busy + re-throw send errors#171
hernandez42 wants to merge 2 commits into
OpenBMB:mainfrom
hernandez42:fix/feishu-activechats-timeout

Conversation

@hernandez42

Copy link
Copy Markdown

Summary

Bug: Feishu messages silently dropped when LLM hangs — activeChats Set never cleared.

Three fixes:

  1. activeChats busy message — tell user instead of silently returning
  2. 60s submitTurn timeout — lock always released within 60s even if LLM hangs
  3. send() re-throws errors — Feishu API failures now propagate

Already deployed on: server 107.148.187.7 (PRs #161-165 stacked)

Xuanji added 2 commits June 5, 2026 13:15
Root cause: tsx wrapper does NOT forward SIGTERM to its child node process.
When McpClient.close() was called, only the tsx process received SIGTERM,
leaving the playwright-mcp node and Chromium grandchild processes orphaned.

Fix: capture the tsx PID and use kill(-pid, SIGKILL) in close() to
atomically wipe the entire process tree (tsx → node → Chromium).

This permanently fixes the playwright browser leak issue where sessions
accumulated 30+ orphaned Chromium processes over time.
@hernandez42 hernandez42 force-pushed the fix/feishu-activechats-timeout branch from 61f9d3d to ccc1f2c Compare June 5, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant