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.

408 B
Raw Blame
import { isValidHostTerminalTabId } from './terminal-tab-id'

const MAX_SURFACE_TAB_ID_LENGTH = 512

/** Use the host tab ID prefix for pane keys; web-surface IDs would decode as another tab. */
export function isAgentSessionSurfaceTabId(value: unknown): value is string {
  return (
    typeof value === 'string' &&
    value.length <= MAX_SURFACE_TAB_ID_LENGTH &&
    isValidHostTerminalTabId(value)
  )
}