Stabilize WS chat streaming and failure handling

Use inactivity-based WS send timeout, avoid end-of-turn message list repaint, add WS heartbeat during turns, improve MiniMax tool replay compatibility, and retry tool replay protocol mismatch errors.

Made-with: Cursor
This commit is contained in:
oliver 2026-04-26 23:25:15 +08:00
parent 50c8bd19c0
commit 768f175c3e
5 changed files with 245 additions and 40 deletions

View file

@ -61,6 +61,7 @@ DEFAULT_RETRYABLE_ERROR_CODES = (
"provider_rate_limited",
"provider_temporary_error",
"provider_unavailable",
"tool_replay_protocol_mismatch",
"context_overflow",
"tool_execution_failed",
)