MCPcopy Index your code
hub / github.com/simstudioai/sim / getRecentTerminalError

Function getRecentTerminalError

apps/sim/lib/oauth/terminal-errors.ts:42–54  ·  view source on GitHub ↗
(accountId: string)

Source from the content-addressed store, hash-verified

40}
41
42export async function getRecentTerminalError(accountId: string): Promise<string | null> {
43 const redis = getRedisClient()
44 if (!redis) return null
45 try {
46 return await redis.get(deadKey(accountId))
47 } catch (error) {
48 logger.warn('Failed to read terminal error flag from Redis', {
49 accountId,
50 error: toError(error).message,
51 })
52 return null
53 }
54}
55
56export async function clearDeadFlag(accountId: string): Promise<void> {
57 const redis = getRedisClient()

Callers 2

performCoalescedRefreshFunction · 0.90

Calls 5

getRedisClientFunction · 0.90
toErrorFunction · 0.90
deadKeyFunction · 0.85
getMethod · 0.65
warnMethod · 0.65

Tested by

no test coverage detected