earendil-works/pi · error · Error
Session ${handle.id} did not provide a snapshot
Error message
Session ${handle.id} did not provide a snapshot What it means
Error "Session ${handle.id} did not provide a snapshot" thrown in earendil-works/pi.
Source
Thrown at packages/coding-agent/src/client/remote-session.ts:340
}),
]);
} finally {
this.#activeOperationStates.delete(busy);
if (!this.disposed && this.#lifecycle === busy) {
this.#lifecycle =
preempt && this.#activeOperationStates.has(previous)
? previous
: this.#handle
? { status: "ready" }
: { status: "unbound" };
this.#notify();
}
}
}
#bind(handle: SessionLease, knownSnapshot?: SessionSnapshot): void {
const snapshot = knownSnapshot ?? handle.snapshot;
if (!snapshot) throw new Error(`Session ${handle.id} did not provide a snapshot`);
this.#clearSubscriptions();
this.#handle = handle;
this.#transcript = createTranscriptState(snapshot);
this.#unsubscribeSnapshot = handle.subscribe((next) => {
if (!this.#transcript) return;
this.#transcript = applyTranscriptSnapshot(this.#transcript, next);
this.#notify();
});
this.#unsubscribeEvents = handle.onEvent((event) => this.#handleEvent(event));
}
#handleEvent(event: ServerEvent): void {
if (event.type === "session_removed") {
this.#clearSubscriptions();
this.#handle = undefined;
this.#transcript = undefined;
if (this.#lifecycle.status !== "busy") this.#lifecycle = { status: "unbound" };
this.#notify();View on GitHub (pinned to 4af9d21d3b)
When it happens
Trigger: Thrown at packages/coding-agent/src/client/remote-session.ts:340 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of earendil-works/pi@4af9d21d3b (2026-08-24).
Data as JSON: /api/errors/c00d19a4dc6fe332.
Report an issue: GitHub.