From 8160242be58bdce23894e07d164eacbeaf55ad90 Mon Sep 17 00:00:00 2001 From: RaymondVerhoef Date: Thu, 28 May 2026 12:03:55 +0200 Subject: [PATCH] feat: update loading message duration and add caching information; increase timeout for theme session generation --- src/components/theme_session/ThemeSessionView.jsx | 2 +- src/lib/themeSessionService.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/theme_session/ThemeSessionView.jsx b/src/components/theme_session/ThemeSessionView.jsx index e58d099..dd03dda 100644 --- a/src/components/theme_session/ThemeSessionView.jsx +++ b/src/components/theme_session/ThemeSessionView.jsx @@ -45,7 +45,7 @@ export default function ThemeSessionView({

Preparing this week's theme session…

-

This may take 15–30 seconds the first time.

+

This may take 30–90 seconds the first time — the result is cached.

); } diff --git a/src/lib/themeSessionService.js b/src/lib/themeSessionService.js index 5646415..75796a9 100644 --- a/src/lib/themeSessionService.js +++ b/src/lib/themeSessionService.js @@ -52,6 +52,7 @@ export async function getOrGenerateThemeSession(curriculumVersionId, weekContent tools: [EMIT_THEME_SESSION_TOOL], toolChoice: { type: 'tool', name: EMIT_THEME_SESSION_TOOL.name }, maxTokens: 8192, + timeoutMs: 180_000, }); const emitted = result.toolUses[0]?.input;