@averyyy/pi-coding-agent 0.82.1-piclient.5 → 0.82.1-piclient.6

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.
@@ -376,7 +376,10 @@ export class AgentSession {
376
376
  const compactStatePath = getPiServerCompactStatePath(sessionFile);
377
377
  if (!readPiServerPendingCompact(compactStatePath))
378
378
  return undefined;
379
- const result = await recoverPendingPiServerCompaction(this.sessionId, { entries: this.sessionManager.getEntries(), leafId: this.sessionManager.getLeafId() }, compactStatePath, { signal });
379
+ const result = await recoverPendingPiServerCompaction(this.sessionId, { entries: this.sessionManager.getEntries(), leafId: this.sessionManager.getLeafId() }, compactStatePath, {
380
+ signal,
381
+ onHistoryReconciled: (snapshot) => this.reconcilePiServerHistory(snapshot),
382
+ });
380
383
  if (!result)
381
384
  return undefined;
382
385
  return this._applyPiServerCompactionResult(result, reason, willRetry);