fix: preserve known connection loss errors

This commit is contained in:
t8y2
2026-06-22 22:23:28 +08:00
parent 718ffde871
commit 099ed62609
2 changed files with 44 additions and 0 deletions
+11
View File
@@ -7,11 +7,22 @@ const CONNECTION_ERROR_PATTERNS = [
"connection not found",
"connection config not found",
"not connected",
"closed the connection",
"broken pipe",
"reset by peer",
"socket closed",
"unexpected eof",
"end-of-file",
"end-of-file on communication channel",
"server closed session",
"communicating with the server",
"exceeded maximum idle time",
"agent stdin not available",
"agent stdout not available",
"failed to write to agent stdin",
"failed to flush agent stdin",
"关闭的连接",
"连接已关闭",
"i/o error",
];