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 { formatAgentImagePath } from './agent-image-paste'
import { formatImageDropPasteText, isTerminalDropWindowsPathLike } from './image-path-paste'
/** Escape image paths as terminal drops do; agent TUIs unescape before checking file existence. */
export function agentImagePastePath(agent: string | null | undefined, path: string): string {
const formatted = formatAgentImagePath(agent, path)
if (formatted !== path) {
return formatted
}
const targetShell = isTerminalDropWindowsPathLike(path) ? 'windows' : 'posix'
return formatImageDropPasteText(path, targetShell) ?? path
}