Skip to content

Commit f315fdd

Browse files
authored
fix(ai-chat): reset Copilot conversation when starting a new chat (#1245)
1 parent 7202627 commit f315fdd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
- AI Chat: starting a new conversation now resets the Copilot server-side conversation. Previously the next message reused the prior conversation's context.
1213
- Cassandra: connection now fails fast with a clear "Cassandra 2.x is not supported" message instead of cryptic "table not found" errors during sidebar load.
1314
- MongoDB: dropped the `nameOnly: true` flag on `listDatabases` for servers older than 3.4, which previously rejected the flag.
1415
- ClickHouse: index sidebar no longer fails on ClickHouse older than 19.17 by skipping the `system.data_skipping_indices` lookup when the table doesn't exist.

TablePro/ViewModels/AIChatViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ final class AIChatViewModel {
180180
}
181181

182182
func startNewConversation() {
183+
AIProviderFactory.resetCopilotConversation()
183184
cancelStream()
184185
persistCurrentConversation()
185186
messages.removeAll()

0 commit comments

Comments
 (0)