fix: recover stale WeChat active requests

This commit is contained in:
john
2026-07-18 19:05:33 +08:00
parent 8eaf4d23f3
commit ae3e1ba3fa
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -2714,6 +2714,10 @@ test('isRecoverableWechatAgentSessionError detects poisoned tool_calls history',
);
assert.equal(isRecoverableWechatAgentSessionError('stale_session_poisoned_completion'), true);
assert.equal(isRecoverableWechatAgentSessionError('无权访问该会话'), true);
assert.equal(
isRecoverableWechatAgentSessionError('Session already has an active request. Cancel it first.'),
true,
);
assert.equal(isRecoverableWechatAgentSessionError('network timeout'), false);
});