()
| 173 | }; |
| 174 | |
| 175 | const syncSessionHistory = () => { |
| 176 | try { |
| 177 | state.session.history = services.chatHistory.getHistory(); |
| 178 | } catch (e) { |
| 179 | logger.debug( |
| 180 | `Failed to sync session history from ChatHistoryService: ${formatError(e)}`, |
| 181 | ); |
| 182 | } |
| 183 | }; |
| 184 | |
| 185 | const storageSyncService = services.storageSync; |
| 186 | let storageSyncActive = await storageSyncService.startFromOptions({ |
no test coverage detected