On SQLite backend, readParts() returns [] since JSON files don't exist. Add isSqliteBackend() branch that reads parts from SDK via client.session.messages() when failedAssistantMsg.parts is empty.
On SQLite backend, readParts() returns [] since JSON files don't exist. Add isSqliteBackend() branch that reads parts from SDK via client.session.messages() when failedAssistantMsg.parts is empty.