mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-12 11:39:57 +01:00
Fix: prevent logging empty context cleared messages (#2861)
This commit is contained in:
@@ -83,7 +83,9 @@ function processDeltasToMessage(deltas: IResponseDelta[]): string {
|
||||
details.push(`${totalClearedThinkingTurns} thinking turns`);
|
||||
}
|
||||
|
||||
text += `🧹 Context cleared: ${details.join(', ')}`;
|
||||
if (details.length > 0) {
|
||||
text += `🧹 Context cleared: ${details.join(', ')}`;
|
||||
}
|
||||
}
|
||||
|
||||
return text;
|
||||
|
||||
Reference in New Issue
Block a user