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.

735 B
Raw Blame
// Apply account defaults only to this phone’s new chats before their first live options report.

const CREATED_LIMIT = 32

const created = new Map<string, { worktree: string }>()

export function rememberMobileCreatedStructuredSession(sessionId: string, worktree: string): void {
  created.delete(sessionId)
  created.set(sessionId, { worktree })
  for (const oldest of created.keys()) {
    if (created.size <= CREATED_LIMIT) {
      break
    }
    created.delete(oldest)
  }
}

export function mobileCreatedStructuredSession(
  sessionId: string
): { worktree: string } | undefined {
  return created.get(sessionId)
}

export function forgetMobileCreatedStructuredSession(sessionId: string): void {
  created.delete(sessionId)
}