fix: recover interrupted conversations on boot

This commit is contained in:
Codex Local
2026-09-06 18:15:32 +08:00
parent d60f5d9a9b
commit 029a6097a2
3 changed files with 12 additions and 1 deletions
@@ -354,6 +354,11 @@ static void application_boot(void)
volc_hal_display_set_content(global_display, VOLC_DISPLAY_OBJ_STATUS, VOLC_DISPLAY_TEXT, message);
return;
}
ret = platform_recover_pending_conversation();
if (ret != ESP_OK) {
ESP_LOGW(TAG, "Cannot close the conversation interrupted by the previous restart: %s",
esp_err_to_name(ret));
}
hal_level_init();
ESP_LOGI(TAG, "Startup stack headroom after audio: %u bytes", (unsigned)uxTaskGetStackHighWaterMark(NULL));
xTaskCreate(&Task, "aios_task", 8192, NULL, 5, NULL);