Skip to content

Commit ac00eef

Browse files
Update src/core/condense/index.ts
Co-authored-by: Copilot <[email protected]>
1 parent e5353cf commit ac00eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/condense/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export async function summarizeConversation(
102102

103103
// Always preserve the first message (which may contain slash command content)
104104
const firstMessage = messages[0]
105-
// Get messages to summarize, excluding the first message and last N messages
105+
// Get messages to summarize, including the first message and excluding the last N messages
106106
const messagesToSummarize = getMessagesSinceLastSummary(messages.slice(0, -N_MESSAGES_TO_KEEP))
107107

108108
if (messagesToSummarize.length <= 1) {

0 commit comments

Comments
 (0)