MCPcopy Create free account
hub / github.com/cloudflare/computer / #onShellError

Method #onShellError

packages/computer/src/workspace.ts:957–960  ·  view source on GitHub ↗
(id: string, handle: BackendHandle, error: unknown)

Source from the content-addressed store, hash-verified

955 // operation against an old handle can't clobber a newer one that
956 // a concurrent reconnect already installed.
957 #onShellError(id: string, handle: BackendHandle, error: unknown): void {
958 if (!isWorkspaceTransportFailure(error)) return;
959 this.#invalidateHandle(id, handle);
960 }
961}
962
963function positiveRetryOption(value: number | undefined, fallback: number, name: string): number {

Callers 1

#routedShellMethod · 0.95

Calls 2

#invalidateHandleMethod · 0.95

Tested by

no test coverage detected