fix openclaw openresponses terminal event detection

This commit is contained in:
Dotta
2026-03-06 14:56:40 -06:00
parent a2bdfb0dd3
commit af09510f6a
2 changed files with 29 additions and 2 deletions

View File

@@ -326,7 +326,6 @@ function inferSseTerminal(input: {
const doneType =
normalizedType === "done" ||
normalizedType.endsWith(".completed") ||
normalizedType.endsWith(".done") ||
normalizedType === "completed";
if (doneType) {
return { terminal: true, failed: false, errorMessage: null };
@@ -357,7 +356,7 @@ function inferSseTerminal(input: {
}
if (payloadType) {
if (payloadType.endsWith(".completed") || payloadType.endsWith(".done")) {
if (payloadType.endsWith(".completed")) {
return { terminal: true, failed: false, errorMessage: null };
}
if (