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
// Share initial-surface admission so concurrent window/runtime requests create one tab.
import type { InitialSurfaceReason } from './workspace-layout-command-types'
import type { WorkspaceLayoutModel } from './workspace-layout-model'
/** Require no tabs of any kind. On relaunch, a saved empty terminal row means closed; an entry for a workspace that never had terminals does not. */
export function admitsInitialSurface(
model: WorkspaceLayoutModel,
workspaceKey: string,
reason: InitialSurfaceReason
): boolean {
if ((model.workspaces[workspaceKey]?.tabs.length ?? 0) > 0) {
return false
}
return reason === 'activation' || !model.legacy.terminalRowOwners[workspaceKey]
}