(err: unknown)
| 1075 | }; |
| 1076 | |
| 1077 | function goalErrorMessage(err: unknown): string | undefined { |
| 1078 | if (!isDaemonApiError(err)) return undefined; |
| 1079 | const key = GOAL_ERROR_KEYS[err.code]; |
| 1080 | return key ? i18n.global.t(key) : undefined; |
| 1081 | } |
| 1082 | |
| 1083 | async function handleSessionNotFound(sessionId: string): Promise<void> { |
| 1084 | forgetSession(sessionId); |
no test coverage detected