ytdb-slate 0.15.0 → 0.16.0

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.
@@ -500,6 +500,7 @@ export function registerSlateHandoff(
500
500
  // entry, wins over the handoff on every later restore.
501
501
  pi.on("session_start", async (_event, ctx) => {
502
502
  adoptedSummaryVisibility = undefined;
503
+ let persistedHandoff: SessionHandoff | undefined;
503
504
  try {
504
505
  const branch = ctx.sessionManager.getBranch();
505
506
  if (branch.some((entry) => entry.type === "custom" && entry.customType === "slate-state")) return;
@@ -536,7 +537,7 @@ export function registerSlateHandoff(
536
537
  );
537
538
  return;
538
539
  }
539
- if (typeof pending.kickoff === "string") pi.sendMessage({ customType: "slate-pause", content: "Handoff model adoption is pending. While paused, do not start a turn. Choose a permitted model and effort, then run /slate resume. Disregard this pause after adoption or resume succeeds.", display: false });
540
+ persistedHandoff = pending;
540
541
  if (typeof pending.summaryVisible === "boolean") adoptedSummaryVisibility = pending.summaryVisible;
541
542
  getRuntime()?.resetPreferences();
542
543
  if (ctx.hasUI) {
@@ -690,6 +691,10 @@ export function registerSlateHandoff(
690
691
  }
691
692
  } catch (error) {
692
693
  reportFailure(ctx, `slate: could not adopt successor handoff — ${sanitizeForNotify(error instanceof Error ? error.message : String(error))}`);
694
+ } finally {
695
+ if (store.paused === true && store.pauseReason === "adoption" && typeof persistedHandoff?.kickoff === "string") {
696
+ pi.sendMessage({ customType: "slate-pause", content: "Handoff model adoption is pending. While paused, do not start a turn. Choose a permitted model and effort, then run /slate resume. Disregard this pause after adoption or resume succeeds.", display: false });
697
+ }
693
698
  }
694
699
  });
695
700
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ytdb-slate",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Multi-agent orchestration extension for the pi coding agent: bounded worker sessions, structured episode summaries, and a risk-based review workflow.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {