Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(desktop): read error body instead of statusText for gateway errors

yushen0b50400a45ea
diff --git a/apps/desktop/src/renderer/src/components/telegram-qr.tsx b/apps/desktop/src/renderer/src/components/telegram-qr.tsx
index 6157f6cb8f..cc99679dbd 100644
--- a/apps/desktop/src/renderer/src/components/telegram-qr.tsx
+++ b/apps/desktop/src/renderer/src/components/telegram-qr.tsx
@@ -50,11 +50,9 @@ export function TelegramConnectQR({
if (cancelled) return
if (!res.ok) {
- if (res.status === 503) {
- setError('Telegram bot not configured on Gateway')
- } else {
- setError(`Gateway error: ${res.statusText}`)
- }
+ const body = (await res.json().catch(() => null)) as { message?: string } | null
+ const detail = body?.message || `HTTP ${res.status}`
+ setError(`Gateway error (${res.status}): ${detail}`)
setDeepLink(null)
return
}