@theokit/sdk 4.17.0 → 4.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cron.js CHANGED
@@ -5945,9 +5945,7 @@ async function hydrateSession(agentId, loc) {
5945
5945
  hydratedKeys.add(key);
5946
5946
  const persisted = await readSessionMessages(loc.store, agentId);
5947
5947
  if (persisted.length === 0) return;
5948
- if (!sessions.has(agentId) || sessions.get(agentId)?.length === 0) {
5949
- sessions.set(agentId, persisted);
5950
- }
5948
+ sessions.set(agentId, persisted);
5951
5949
  }
5952
5950
  async function flushSessionWrites() {
5953
5951
  while (pendingWrites.size > 0) {