fix openclaw openresponses terminal event detection
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user