diff --git a/apps/bot/src/whatsapp/session.ts b/apps/bot/src/whatsapp/session.ts index d79fd1d..88181d8 100644 --- a/apps/bot/src/whatsapp/session.ts +++ b/apps/bot/src/whatsapp/session.ts @@ -46,6 +46,11 @@ export async function startSession(params: { auth: state, browser: Browsers.macOS("Safari"), syncFullHistory: false, + // Default: 60 s for the first QR, 20 s for subsequent ones (~5 refs โ‰ˆ + // 2.5 min total before Baileys gives up). Set both legs to 60 s so + // the operator has the full ~5 min pairing window to scan, matching + // pair-handler's PAIR_TIMEOUT_MS. + qrTimeout: 60_000, logger: logger.child({ accountId, component: "baileys" }) as never, }); diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 863030b..957f6a1 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -1,6 +1,5 @@ import type { Metadata, Viewport } from "next"; import { GeistSans } from "geist/font/sans"; -import { ThemeProvider } from "@/components/theme-provider"; import { AppShell } from "@/components/app-shell"; import { Toaster } from "@/components/ui/sonner"; import "./globals.css"; @@ -21,12 +20,13 @@ export const viewport: Viewport = { export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - + // Light theme is the only theme โ€” no client-side theme switcher and + // therefore no pre-hydration `