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.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import type { RelayReconnectController } from './mobile-relay-reconnect-controller'
import type { StableLogicalRpcClient } from './stable-logical-rpc-client'
import type { ForegroundNudgeReason } from './types'
export class MobileEndpointNudgeRouter {
constructor(
private readonly args: {
logical: StableLogicalRpcClient
controller: RelayReconnectController
isStopped: () => boolean
isForeground: () => boolean
setForeground: (foreground: boolean) => void
scheduleDirectProbe: () => void
}
) {}
nudge(reason: ForegroundNudgeReason): void {
const { args } = this
if (args.isStopped()) {
return
}
if (!args.isForeground()) {
// Background handoffs must not reopen billed relay splices; focus/resume imply visibility even before AppState catches up.
if (reason === 'network-change') {
return
}
args.setForeground(true)
}
args.controller.handleActiveNudge(args.logical, reason)
args.scheduleDirectProbe()
}
}