mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
feat: clear should also clear chat history (#1008)
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user