MCPcopy
hub / github.com/codeaashu/claude-code / teleportToRemoteWithErrorHandling

Function teleportToRemoteWithErrorHandling

src/utils/teleport.tsx:544–553  ·  view source on GitHub ↗
(root: Root, description: string | null, signal: AbortSignal, branchName?: string)

Source from the content-addressed store, hash-verified

542 * @returns Promise<TeleportToRemoteResponse | null> The created session or null if creation fails
543 */
544export async function teleportToRemoteWithErrorHandling(root: Root, description: string | null, signal: AbortSignal, branchName?: string): Promise<TeleportToRemoteResponse | null> {
545 const errorsToIgnore = new Set<TeleportLocalErrorType>(['needsGitStash']);
546 await handleTeleportPrerequisites(root, errorsToIgnore);
547 return teleportToRemote({
548 initialMessage: description,
549 signal,
550 branchName,
551 onBundleFail: msg => process.stderr.write(`\n${msg}\n`)
552 });
553}
554
555/**
556 * Fetches session data from the session ingress API (/v1/session_ingress/)

Callers 1

runFunction · 0.85

Calls 3

teleportToRemoteFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected