earendil-works/pi · error · Error
No remote session is attached
Error message
No remote session is attached
What it means
Error "No remote session is attached" thrown in earendil-works/pi.
Source
Thrown at packages/coding-agent/src/client/remote-session.ts:396
#reportListenerError(error: unknown): void {
if (!this.#onListenerError) return;
try {
this.#onListenerError(error instanceof Error ? error : new Error(String(error)));
} catch {
// Diagnostics cannot affect session or transport state.
}
}
#clearSubscriptions(): void {
this.#unsubscribeSnapshot?.();
this.#unsubscribeEvents?.();
this.#unsubscribeSnapshot = undefined;
this.#unsubscribeEvents = undefined;
}
#requireHandle(): SessionLease {
if (!this.#handle) throw new Error("No remote session is attached");
return this.#handle;
}
#assertAvailable(): void {
this.#assertNotDisposed();
if (this.#lifecycle.status === "busy") {
throw new Error(`Remote session is busy with ${this.#lifecycle.operation}`);
}
}
#assertNotDisposed(): void {
if (this.disposed) throw new Error("Remote session is disposed");
}
async #assertNotDisposedAfterAwait(handle: SessionLease): Promise<void> {
if (!this.disposed) return;
await this.#detach(handle);
throw new RemoteSessionDisposedError();View on GitHub (pinned to 4af9d21d3b)
When it happens
Trigger: Thrown at packages/coding-agent/src/client/remote-session.ts:396 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/c9b54c43e2162d07.
Report an issue: GitHub.