You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create the summarized message with fresh sentAt timestamp
557
+
constnow=Date.now()
529
558
constsummarizedMessage: Message={
530
559
role: 'user',
531
560
content: [
@@ -540,12 +569,14 @@ ${summaryText}
540
569
Please continue the conversation from here. In particular, try to address the user's latest request detailed in the summary above. You may need to re-gather context (e.g. read some files) to get up to speed and then tackle the user's request.`,
541
570
},
542
571
],
572
+
sentAt: now,
543
573
}
544
574
545
575
// Build final messages array: summary first, then INSTRUCTIONS_PROMPT if it exists
546
576
constfinalMessages: Message[]=[summarizedMessage]
547
577
if(instructionsPromptMessage){
548
-
finalMessages.push(instructionsPromptMessage)
578
+
// Update sentAt to current time so future cache miss checks use fresh timestamps
0 commit comments