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 { beforeEach, expect, it, vi } from 'vitest'
const invoke = vi.hoisted(() => vi.fn())
vi.mock('electron', () => ({ ipcRenderer: { invoke } }))
import { glApi } from './gitlab'
beforeEach(() => invoke.mockReset())
it('preserves the optional review scope through the existing desktop details channel', async () => {
const args = { repoPath: '/repo', iid: 12, type: 'mr' as const, includeReviewDetails: false }
const details = { body: 'MR body', comments: [], pipelineJobs: [] }
invoke.mockResolvedValue(details)
expect(await glApi.workItemDetails(args)).toBe(details)
expect(invoke).toHaveBeenCalledWith('gitlab:workItemDetails', args)
const defaultArgs = { repoPath: '/repo', iid: 12, type: 'mr' as const }
await glApi.workItemDetails(defaultArgs)
expect(invoke).toHaveBeenLastCalledWith('gitlab:workItemDetails', defaultArgs)
})