chore(mobile): add /api/dbg diagnostics sink + client reporter (build, overflow, viewport, scroll)

Temporary: the app POSTs its real runtime state to the server log so device-only bugs (budge source,
keyboard viewport numbers, chat-open scroll state) can be diagnosed from docker logs instead of
screenshots. Removed once mobile issues settle.
Build marker -> 2026-07-18-batch108.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 13:18:58 +05:30
parent 720b1f0c40
commit f9d6472f77
2 changed files with 36 additions and 1 deletions
+7
View File
@@ -1004,6 +1004,13 @@ try {
} catch (_) {}
route('GET', '/api/build', (req, res) => json(res, 200, { build: APP_BUILD }));
// TEMP mobile debug sink: the app POSTs its real runtime state here so we can diagnose device-only issues
// from the server log (docker logs bizgaze-support) without screenshots. Remove once mobile bugs settle.
route('POST', '/api/dbg', async (req, res) => {
try { const b = await readBody(req); console.log('[MDBG]', JSON.stringify(b)); } catch (_) {}
json(res, 200, { ok: true });
});
// Mint a LiveKit join token for the signed-in user + a specific room (the 6-digit meeting code).
// The room-membership/host authorization already happens over the meeting WebSocket; this only
// hands the client a media-plane credential scoped to that room and its own identity.