From ca87669937200dfe6a32794c7ec89a8b228fa65a Mon Sep 17 00:00:00 2001 From: Coenraad Loubser Date: Wed, 18 Mar 2026 05:57:27 +0200 Subject: [PATCH] Unused return value causes build failures (#4385) * Unused return value causes build failures * Update toast messages to include model loading status --- studio/frontend/src/features/chat/shared-composer.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsx index 018c3ba410..89b65d4d99 100644 --- a/studio/frontend/src/features/chat/shared-composer.tsx +++ b/studio/frontend/src/features/chat/shared-composer.tsx @@ -363,8 +363,8 @@ export function SharedComposer({ // Side 1: load → generate → wait if (handle1 && model1?.id) { toast("Loading Model 1…", { id: toastId, description: name1, duration: Infinity }); - const status = await ensureModelLoaded(model1); - toast("Generating with Model 1…", { id: toastId, description: name1, duration: Infinity }); + const status1 = await ensureModelLoaded(model1); + toast("Generating with Model 1…", { id: toastId, description: `${name1} (${status1})`, duration: Infinity }); const done = handle1.waitForRunEnd(); handle1.startRun(); await done; @@ -377,8 +377,8 @@ export function SharedComposer({ if (needsLoad) { toast("Loading Model 2…", { id: toastId, description: name2, duration: Infinity }); } - await ensureModelLoaded(model2); - toast("Generating with Model 2…", { id: toastId, description: name2, duration: Infinity }); + const status2 = await ensureModelLoaded(model2); + toast("Generating with Model 2…", { id: toastId, description: `${name2} (${status2})`, duration: Infinity }); const done = handle2.waitForRunEnd(); handle2.startRun(); await done;