MCPcopy Create free account
hub / github.com/anomalyco/opencode / isCurrentSessionNotFoundError

Function isCurrentSessionNotFoundError

packages/app/src/pages/session.tsx:109–112  ·  view source on GitHub ↗
(error: unknown, sessionID: string | undefined)

Source from the content-addressed store, hash-verified

107}
108
109function isCurrentSessionNotFoundError(error: unknown, sessionID: string | undefined) {
110 if (!sessionID) return false
111 return isSessionNotFoundError(error, sessionID) || isLocalSessionNotFoundError(error, sessionID)
112}
113
114async function runPromptRollbackMutation<T, R>(input: {
115 capturePrompt: () => { current: () => T[]; set: (value: T[]) => void; reset: () => void }

Callers 1

SessionErrorFallbackFunction · 0.85

Calls 2

isSessionNotFoundErrorFunction · 0.90

Tested by

no test coverage detected