Skip to content

Commit 6735d3b

Browse files
committed
Don't throw an error if the user cancels
1 parent 9697774 commit 6735d3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/run-agent-step.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ export const loopAgentSteps = async (
563563
while (true) {
564564
totalSteps++
565565
if (!checkLiveUserInput(userId, userInputId, clientSessionId)) {
566-
logger.debug(
566+
logger.warn(
567567
{
568568
userId,
569569
userInputId,
@@ -574,7 +574,7 @@ export const loopAgentSteps = async (
574574
},
575575
'User input no longer live (likely cancelled)',
576576
)
577-
throw new Error('User input no longer live (likely cancelled)')
577+
break
578578
}
579579

580580
const startTime = new Date()

0 commit comments

Comments
 (0)