MCPcopy
hub / github.com/simstudioai/sim / loadExecutionPointer

Function loadExecutionPointer

apps/sim/stores/terminal/console/storage.ts:286–297  ·  view source on GitHub ↗
(workflowId: string)

Source from the content-addressed store, hash-verified

284}
285
286export async function loadExecutionPointer(workflowId: string): Promise<ExecutionPointer | null> {
287 if (typeof window === 'undefined') return null
288 try {
289 const raw = window.sessionStorage.getItem(`${EXEC_POINTER_PREFIX}${workflowId}`)
290 if (!raw) return null
291 const parsed = JSON.parse(raw)
292 if (!parsed?.executionId) return null
293 return parsed as ExecutionPointer
294 } catch {
295 return null
296 }
297}
298
299export function saveExecutionPointer(pointer: ExecutionPointer): Promise<void> {
300 if (typeof window === 'undefined') return Promise.resolve()

Callers 3

bindRunToolToExecutionFunction · 0.90
runReconnectFunction · 0.90

Calls 2

getItemMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected