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 { encodedRouteHref } from './encoded-route-href'
describe('encodedRouteHref', () => {
it('keeps a worktree id with slashes inside its own segment', () => {
expect(
encodedRouteHref(['h', '[hostId]', 'session', '[worktreeId]'], {
hostId: 'host-1',
worktreeId: 'repo::/private/tmp/wt/fold-layout'
})
).toBe('/h/host-1/session/repo%3A%3A%2Fprivate%2Ftmp%2Fwt%2Ffold-layout')
})
it('drops groups and spreads catch-all values', () => {
expect(
encodedRouteHref(['(app)', 'h', '[hostId]', '[...page]'], {
hostId: 'h 1',
page: ['a', 'b/c']
})
).toBe('/h/h%201/a/b%2Fc')
})
})