mirror of
https://github.com/wassname/HumanAgent-MCP.git
synced 2026-09-09 11:14:27 +08:00
Fix tool call timeout by implementing chunked response with keepalive
- Added special handling for HumanAgent_Chat tool calls to prevent Node.js undici 5-minute timeout - Send HTTP headers immediately with Transfer-Encoding: chunked to stop headersTimeout - Implement 4-minute keepalive mechanism writing space character to reset bodyTimeout - Allows indefinite wait times for human responses in tool calls - Tested successfully with 35+ minute wait time without timeout Resolves issue where VS Code MCP client would cancel tool calls after ~5-6 minutes with error 'The user cancelled the tool call' due to undici hardcoded timeouts.
This commit is contained in:
@@ -13,4 +13,8 @@ For more information see https://github.com/3DTek-xyz/HumanAgent-MCP/blob/master
|
||||
|
||||

|
||||
|
||||
*Complete demonstration of the HumanAgent MCP extension in action - showing real-time human-AI collaboration*
|
||||
*Complete demonstration of the HumanAgent MCP extension in action - showing real-time human-AI collaboration*
|
||||
|
||||
## Medium Article
|
||||
https://medium.com/@harperbenwilliam/stop-the-ai-chaos-why-human-in-the-loop-beats-fully-autonomous-coding-agents-eeb0ae17fde9
|
||||
|
||||
|
||||
Reference in New Issue
Block a user