@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/index.js CHANGED
@@ -6118,9 +6118,7 @@ async function hydrateSession(agentId, loc) {
6118
6118
  hydratedKeys.add(key2);
6119
6119
  const persisted = await readSessionMessages(loc.store, agentId);
6120
6120
  if (persisted.length === 0) return;
6121
- if (!sessions.has(agentId) || sessions.get(agentId)?.length === 0) {
6122
- sessions.set(agentId, persisted);
6123
- }
6121
+ sessions.set(agentId, persisted);
6124
6122
  }
6125
6123
  async function flushSessionWrites() {
6126
6124
  while (pendingWrites.size > 0) {