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 { describe, expect, it } from 'vitest'
import {
getLocalhostWorktreeHostLabel,
getLocalhostWorktreeRouteKey
} from './localhost-worktree-labels'
describe('localhost worktree labels', () => {
it('uses the worktree folder name over branch owner prefixes for non-main labels', () => {
expect(
getLocalhostWorktreeHostLabel({
projectName: 'Snap Studio',
worktreeName: 'gatsby74/table-summary',
worktreePath: '/Users/example/orca/workspaces/snapstudio/ui-auth'
})
).toBe('ui-auth')
})
it('keeps route keys unique for different ports in the same worktree', () => {
const route = {
projectName: 'Snap Studio',
worktreeName: 'analytics',
repoId: 'repo-1',
worktreeId: 'wt-analytics'
}
expect(
getLocalhostWorktreeRouteKey({
...route,
targetUrl: 'http://localhost:5173/'
})
).not.toBe(
getLocalhostWorktreeRouteKey({
...route,
targetUrl: 'http://localhost:7777/'
})
)
})
})