@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/eval.cjs CHANGED
@@ -5947,9 +5947,7 @@ async function hydrateSession(agentId, loc) {
5947
5947
  hydratedKeys.add(key);
5948
5948
  const persisted = await readSessionMessages(loc.store, agentId);
5949
5949
  if (persisted.length === 0) return;
5950
- if (!sessions.has(agentId) || sessions.get(agentId)?.length === 0) {
5951
- sessions.set(agentId, persisted);
5952
- }
5950
+ sessions.set(agentId, persisted);
5953
5951
  }
5954
5952
  async function flushSessionWrites() {
5955
5953
  while (pendingWrites.size > 0) {