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