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.

849 B
Raw Blame
import { translate } from '../i18n/mobile-i18n'

// Match desktop’s synthetic id: Floating Workspace has no backing repo/worktree and always uses the local runtime.
export const FLOATING_WORKSPACE_WORKTREE_ID = 'global-floating-terminal'

export const FLOATING_WORKSPACE_TITLE = 'Floating Workspace'

export function getFloatingWorkspaceTitle(): string {
  return translate('session.floatingWorkspace.title', 'Floating Workspace')
}

export function isFloatingWorkspaceWorktreeId(worktreeId: string | null | undefined): boolean {
  return worktreeId === FLOATING_WORKSPACE_WORKTREE_ID
}

// Seed name in the route before session tabs load.
export function floatingWorkspaceSessionPath(hostId: string | undefined): string {
  return `/h/${hostId}/session/${FLOATING_WORKSPACE_WORKTREE_ID}?name=${encodeURIComponent(getFloatingWorkspaceTitle())}`
}