From c65e23fa9089011db2aeec6b02b2c1a571c85e4f Mon Sep 17 00:00:00 2001 From: Alex Schmitt Date: Wed, 19 Aug 2026 17:16:14 -0300 Subject: [PATCH] fix conversation runtime regressions --- app/layout.tsx | 14 ++--- lib/harness/harness.test.ts | 35 ++++++++++++ public/modelhub-accent.js | 11 ++++ server/harness/prompt.ts | 57 +++++++++++++++++++ server/harness/runtime.ts | 68 ++++++++++++++++++++++- server/providers/duckai.ts | 1 - server/routes/conversations.ts | 10 +++- server/tests/conversations-routes.test.ts | 39 +++++++++++++ server/tests/duckai.test.ts | 21 +++++++ 9 files changed, 243 insertions(+), 13 deletions(-) create mode 100644 public/modelhub-accent.js diff --git a/app/layout.tsx b/app/layout.tsx index 79ddd0d..38db2eb 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -54,19 +54,15 @@ export default function RootLayout({ suppressHydrationWarning className={`${fontSans.variable} ${fontSerif.variable} ${fontMono.variable} antialiased`} > - - {/* Aplica o accent salvo antes da hidratação para evitar flash (issue #177). */} + + {children} + + {/* O beforeInteractive é injetado no head pelo Next.js. */}