ciyidogan commited on
Commit
087ac42
·
verified ·
1 Parent(s): cd2cafa

Update flare-ui/src/app/services/conversation-manager.service.ts

Browse files
flare-ui/src/app/services/conversation-manager.service.ts CHANGED
@@ -87,16 +87,16 @@ export class ConversationManagerService implements OnDestroy {
87
  if (!sessionId) {
88
  throw new Error('Session ID is required');
89
  }
90
-
91
  // Update configuration
92
  if (config) {
93
  this.conversationConfig = { ...this.conversationConfig, ...config };
94
  }
95
-
96
  this.sessionId = sessionId;
97
 
98
- // Reset state
99
- this.clearMessages();
100
  this.currentStateSubject.next('idle');
101
 
102
  // Connect WebSocket first
 
87
  if (!sessionId) {
88
  throw new Error('Session ID is required');
89
  }
90
+
91
  // Update configuration
92
  if (config) {
93
  this.conversationConfig = { ...this.conversationConfig, ...config };
94
  }
95
+
96
  this.sessionId = sessionId;
97
 
98
+ // Reset state but don't clear messages
99
+ // this.clearMessages(); // BU SATIRI KALDIR veya YORUM YAP
100
  this.currentStateSubject.next('idle');
101
 
102
  // Connect WebSocket first