Skip to content

Commit

Permalink
fix(handlers): remove premature batch cleanup when sending reply toke…
Browse files Browse the repository at this point in the history
…n collector

Clearing batch here would cause replies being canceled, they may think new sessions already started
  • Loading branch information
MrOrz committed Feb 17, 2025
1 parent 548650a commit 1614ccf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/webhook/handlers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1562,9 +1562,6 @@ async function sendReplyTokenCollector(userId: string): Promise<void> {
replyToken: tokenInfo.token,
messages,
});

// The chatbot's reply cuts off the user's input streak, thus we end the current batch here.
redis.del(getRedisBatchKey(userId));
}

/**
Expand Down

0 comments on commit 1614ccf

Please sign in to comment.