mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
fix openclaw openresponses terminal event detection
This commit is contained in:
parent
a2bdfb0dd3
commit
af09510f6a
2 changed files with 29 additions and 2 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue