fix: allow failed code agent sessions to resume
This commit is contained in:
@@ -421,7 +421,7 @@ function publicManualAgentSession(session) {
|
||||
|
||||
function manualSessionUsable(status) {
|
||||
const value = String(status ?? "").trim().toLowerCase().replace(/_/gu, "-");
|
||||
return !["failed", "timeout", "canceled", "cancelled", "error", "blocked", "expired", "interrupted", "stale", "thread-resume-failed"].includes(value);
|
||||
return !["blocked", "expired", "stale", "thread-resume-failed"].includes(value);
|
||||
}
|
||||
|
||||
function manualSessionErrorPayload({ code, message, reason = null, traceId = null, sessionId = null, session = null, retryable = true, nextCommands = undefined } = {}) {
|
||||
|
||||
Reference in New Issue
Block a user