We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b89abe commit 2c45678Copy full SHA for 2c45678
1 file changed
backend/src/run-agent-step.ts
@@ -563,7 +563,18 @@ export const loopAgentSteps = async (
563
while (true) {
564
totalSteps++
565
if (!checkLiveUserInput(userId, userInputId, clientSessionId)) {
566
- break
+ logger.debug(
567
+ {
568
+ userId,
569
+ userInputId,
570
+ clientSessionId,
571
+ totalSteps,
572
+ runId,
573
+ agentState,
574
+ },
575
+ 'User input no longer live (likely cancelled)',
576
+ )
577
+ throw new Error('User input no longer live (likely cancelled)')
578
}
579
580
const startTime = new Date()
0 commit comments