Storage lazy loaded, removed AppServices#26
Conversation
Co-authored-by: contributory <contributory@users.noreply.github.com>
|
/oc do not create TTSService because it has already been migrated to SpeechService. |
Co-authored-by: contributory <contributory@users.noreply.github.com>
|
Done. Removed TTSService class and all its references:
|
|
/oc don't just delete TTSService from chat, replace it with SpeechService. |
Co-authored-by: contributory <contributory@users.noreply.github.com>
|
Done! I've successfully replaced TTSService with SpeechService in the chat functionality. Here's what I did: Changes Made:
The SpeechManager uses the SpeechService model for configuration and provides the same speak() and stop() methods that TTSService had, maintaining compatibility with the existing chat functionality. |


Đã chuyển sang lazy load:
AppearanceStorage,PreferencesStorage,DefaultOptionsStorage- instance getter asyncChatProfileStorage,LlmProviderInfoStorage,McpServerInfoStorage,SpeechServiceStorage,ConversationStorage- singleton lazy initicon_builder.dart: dùngawait PreferencesStorage.instancechat_screen.dart: lazy init storage khi cầnmain.dart: thêmawait Hive.initFlutter(), xóaAppServices.init()lib/app/config/services.dartTTSServiceclass cho text-to-speechMcpServerStorage = McpServerInfoStorageCloses #25
opencode session | github run