appback-remoteagent 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bot.js +7 -0
- package/package.json +1 -1
package/dist/bot.js
CHANGED
|
@@ -1631,6 +1631,9 @@ function classifyRetryableProviderIssue(message, retryAfterMs) {
|
|
|
1631
1631
|
if (isEmptyResponseError(message)) {
|
|
1632
1632
|
return { kind: "empty-response", retryAfterMs };
|
|
1633
1633
|
}
|
|
1634
|
+
if (/remote compact task|stream disconnected|websocket protocol error|connection reset without closing handshake/i.test(message)) {
|
|
1635
|
+
return { kind: "transport", retryAfterMs };
|
|
1636
|
+
}
|
|
1634
1637
|
return undefined;
|
|
1635
1638
|
}
|
|
1636
1639
|
function formatRetryableProviderRetryMessage(issue, attempt, maxAttempts) {
|
|
@@ -1640,6 +1643,8 @@ function formatRetryableProviderRetryMessage(issue, attempt, maxAttempts) {
|
|
|
1640
1643
|
return `선택한 모델이 capacity 상태라 ${waitSeconds}초 후 다시 시도합니다. (${attempt}/${maxAttempts})`;
|
|
1641
1644
|
case "empty-response":
|
|
1642
1645
|
return `후속 응답이 비어 있어 ${waitSeconds}초 후 다시 시도합니다. (${attempt}/${maxAttempts})`;
|
|
1646
|
+
case "transport":
|
|
1647
|
+
return `Codex 연결이 일시적으로 끊겨 ${waitSeconds}초 후 다시 시도합니다. (${attempt}/${maxAttempts})`;
|
|
1643
1648
|
}
|
|
1644
1649
|
}
|
|
1645
1650
|
function formatRetryableProviderFinalMessage(issue) {
|
|
@@ -1648,6 +1653,8 @@ function formatRetryableProviderFinalMessage(issue) {
|
|
|
1648
1653
|
return "선택한 모델이 capacity 상태라 자동 재시도를 모두 사용했습니다. 잠시 후 다시 시도하거나 `/model`로 다른 모델을 선택해 주세요.";
|
|
1649
1654
|
case "empty-response":
|
|
1650
1655
|
return "후속 응답이 반복해서 비어 자동 재시도를 중단했습니다. 같은 세션에서 다시 시도해 주세요.";
|
|
1656
|
+
case "transport":
|
|
1657
|
+
return "Codex 연결이 반복해서 끊겨 자동 재시도를 중단했습니다. 잠시 후 같은 세션에서 다시 시도해 주세요.";
|
|
1651
1658
|
}
|
|
1652
1659
|
}
|
|
1653
1660
|
function isProviderTimeoutError(message) {
|