Преглед на файлове

Keep AI Companion transcript processing alive during page refreshes.

Prevent page rebuild cleanup from cancelling in-flight transcript requests so View transcript can complete and display results.

Made-with: Cursor
huzaifahayat12 преди 1 месец
родител
ревизия
c85a5f56ee
променени са 1 файла, в които са добавени 3 реда и са изтрити 6 реда
  1. 3 6
      meetings_app/ViewController.swift

+ 3 - 6
meetings_app/ViewController.swift

@@ -2421,12 +2421,9 @@ private extension ViewController {
2421 2421
         aiCompanionSpeechTextByView.removeAll()
2422 2422
         aiCompanionTranscriptMeetingIdByView.removeAll()
2423 2423
         aiCompanionTranscriptStatusLabelByView.removeAll()
2424
-        aiCompanionTranscriptTaskByMeetingId.values.forEach { $0.cancel() }
2425
-        aiCompanionTranscriptTaskByMeetingId.removeAll()
2426
-        aiCompanionTranscriptCurrentRequestId = nil
2427
-        aiCompanionTranscriptWindow?.close()
2428
-        aiCompanionTranscriptWindow = nil
2429
-        aiCompanionTranscriptTextView = nil
2424
+        // Keep transcript requests and window state alive across AI Companion page rebuilds.
2425
+        // The page is rebuilt while processing starts/completes, and cancelling here interrupts
2426
+        // the active request before it can update the transcript view.
2430 2427
 
2431 2428
         let panel = NSView()
2432 2429
         panel.translatesAutoresizingMaskIntoConstraints = false