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
@@ -22,7 +22,7 @@
#define PLATFORM_API_ORIGIN "https://121.41.46.238"
#define PLATFORM_RESPONSE_MAX (32 * 1024)
#define PLATFORM_FIRMWARE_VERSION "1.1.0-echoear-s2s-memory.1"
#define PLATFORM_FIRMWARE_VERSION "1.1.0-echoear-s2s-memory.2"
#define PLATFORM_HARDWARE_AGENT_SDK_VERSION "2.0.0"
static const char *TAG = "platform_client";
@@ -113,6 +113,11 @@ static esp_err_t recover_pending_session(void)
return err;
}
esp_err_t platform_recover_pending_conversation(void)
{
return recover_pending_session();
}
static void copy_json_string(cJSON *object, const char *name, char *target, size_t target_size)
{
cJSON *item = cJSON_GetObjectItemCaseSensitive(object, name);