feat: clear should also clear chat history (#1008)

This commit is contained in:
Abhi
2025-06-16 02:33:59 -04:00
committed by GitHub
parent dd679a6cdb
commit 6af7a5c589
4 changed files with 58 additions and 3 deletions

View File

@@ -86,6 +86,11 @@ export class GeminiClient {
chat.setHistory(history);
}
async resetChat(): Promise<void> {
this.chat = this.startChat();
await this.chat;
}
private async getEnvironment(): Promise<Part[]> {
const cwd = this.config.getWorkingDir();
const today = new Date().toLocaleDateString(undefined, {