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

Function createTeleportResumeSystemMessage

src/utils/teleport.tsx:54–60  ·  view source on GitHub ↗

* Creates a system message to inform about teleport session resume * @returns SystemMessage indicating session was resumed from another machine

(branchError: Error | null)

Source from the content-addressed store, hash-verified

52 * @returns SystemMessage indicating session was resumed from another machine
53 */
54function createTeleportResumeSystemMessage(branchError: Error | null): SystemMessage {
55 if (branchError === null) {
56 return createSystemMessage('Session resumed', 'suggestion');
57 }
58 const formattedError = branchError instanceof TeleportOperationError ? branchError.formattedMessage : branchError.message;
59 return createSystemMessage(`Session resumed without branch: ${formattedError}`, 'warning');
60}
61
62/**
63 * Creates a user message to inform the model about teleport session resume

Callers 1

Calls 1

createSystemMessageFunction · 0.85

Tested by

no test coverage detected