diff --git a/tools/server/public/index.html.gz b/tools/server/public/index.html.gz
index d0c44534efcb6..f1a7568d7c674 100644
Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ
diff --git a/tools/server/webui/src/lib/components/app/chat/ChatScreen/ChatScreen.svelte b/tools/server/webui/src/lib/components/app/chat/ChatScreen/ChatScreen.svelte
index 666febf0d28d6..374eb05ab0f46 100644
--- a/tools/server/webui/src/lib/components/app/chat/ChatScreen/ChatScreen.svelte
+++ b/tools/server/webui/src/lib/components/app/chat/ChatScreen/ChatScreen.svelte
@@ -7,6 +7,7 @@
ChatMessages,
ChatProcessingInfo,
EmptyFileAlertDialog,
+ ChatErrorDialog,
ServerErrorSplash,
ServerInfo,
ServerLoadingSplash,
@@ -22,10 +23,11 @@
activeMessages,
activeConversation,
deleteConversation,
+ dismissErrorDialog,
+ errorDialog,
isLoading,
sendMessage,
- stopGeneration,
- setMaxContextError
+ stopGeneration
} from '$lib/stores/chat.svelte';
import {
supportsVision,
@@ -34,7 +36,6 @@
serverWarning,
serverStore
} from '$lib/stores/server.svelte';
- import { contextService } from '$lib/services';
import { parseFilesToMessageExtras } from '$lib/utils/convert-files-to-extra';
import { isFileTypeSupported } from '$lib/utils/file-type';
import { filterFilesByModalities } from '$lib/utils/modality-file-validation';
@@ -79,6 +80,7 @@
showCenteredEmpty && !activeConversation() && activeMessages().length === 0 && !isLoading()
);
+ let activeErrorDialog = $derived(errorDialog());
let isServerLoading = $derived(serverLoading());
async function handleDeleteConfirm() {
@@ -105,6 +107,12 @@
}
}
+ function handleErrorDialogOpenChange(open: boolean) {
+ if (!open) {
+ dismissErrorDialog();
+ }
+ }
+
function handleDragOver(event: DragEvent) {
event.preventDefault();
}
@@ -183,21 +191,6 @@
const extras = result?.extras;
- // Check context limit using real-time slots data
- const contextCheck = await contextService.checkContextLimit();
-
- if (contextCheck && contextCheck.wouldExceed) {
- const errorMessage = contextService.getContextErrorMessage(contextCheck);
-
- setMaxContextError({
- message: errorMessage,
- estimatedTokens: contextCheck.currentUsage,
- maxContext: contextCheck.maxContext
- });
-
- return false;
- }
-
// Enable autoscroll for user-initiated message sending
userScrolledUp = false;
autoScrollEnabled = true;
@@ -461,6 +454,13 @@
}}
/>
+
+