MCPcopy Index your code
hub / github.com/codeaashu/claude-code / processMessagesForTeleportResume

Function processMessagesForTeleportResume

src/utils/teleport.tsx:301–308  ·  view source on GitHub ↗
(messages: Message[], error: Error | null)

Source from the content-addressed store, hash-verified

299 * @returns Processed messages ready for resume
300 */
301export function processMessagesForTeleportResume(messages: Message[], error: Error | null): Message[] {
302 // Shared logic with resume for handling interruped session transcripts
303 const deserializedMessages = deserializeMessages(messages);
304
305 // Add user message about teleport resume (visible to model)
306 const messagesWithTeleportNotice = [...deserializedMessages, createTeleportResumeUserMessage(), createTeleportResumeSystemMessage(error)];
307 return messagesWithTeleportNotice;
308}
309
310/**
311 * Checks out the specified branch for a teleported session

Callers 3

runFunction · 0.85
teleportWithProgressFunction · 0.85
loadInitialMessagesFunction · 0.85

Tested by

no test coverage detected