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