Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

504 B
Raw Blame
// After a request reaches the wire, a lost reply leaves execution unknown and must not authorize a retry.
const deliveryUnknownErrors = new WeakSet<Error>()

export function markRpcDeliveryUnknown<T extends Error>(error: T): T {
  deliveryUnknownErrors.add(error)
  return error
}

// A written request without a reply must not be presented as a definite send failure.
export function isRpcDeliveryUnknown(error: unknown): boolean {
  return error instanceof Error && deliveryUnknownErrors.has(error)
}