fix: allow failed code agent sessions to resume
This commit is contained in:
@@ -1928,7 +1928,7 @@ async function resolveAgentReplayContext(context: any) {
|
||||
const threadId = text(body.query?.threadId) || text(body.session?.threadId) || text(body.conversationFacts?.threadId);
|
||||
const sessionStatus = text(body.session?.status ?? body.conversationFacts?.sessionStatus ?? body.runnerTrace?.sessionStatus ?? body.status);
|
||||
if (isCodeAgentSessionUnusableStatus(sessionStatus)) {
|
||||
throw cliError("session_not_usable", "client agent send --from-trace refuses to reuse a failed/stale Code Agent session; create/select a new session first", {
|
||||
throw cliError("session_not_usable", "client agent send --from-trace refuses to reuse a blocked/stale Code Agent session; create/select a new session first", {
|
||||
fromTrace: traceId,
|
||||
conversationId: conversationId || null,
|
||||
sessionId: sessionId || null,
|
||||
|
||||
Reference in New Issue
Block a user