Skip to content

Commit 99fde68

Browse files
committed
Oops fix my fix for expireMessages
1 parent bb5a230 commit 99fde68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/util/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export function expireMessages(
302302

303303
// Remove messages that have expired
304304
if (m.timeToLive === 'agentStep') return false
305-
if (m.timeToLive === 'userPrompt' && endOf === 'agentStep') return false
305+
if (m.timeToLive === 'userPrompt' && endOf === 'userPrompt') return false
306306

307307
return true
308308
},

0 commit comments

Comments
 (0)