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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user