From 0b64d0c04792c8acd15023b2e77e602d60e54c3c Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 23 Nov 2026 13:45:18 +0100 Subject: [PATCH] fix: a pinned model's new chat tab shows none of the model's prompt suggestions (#34845) Since pinned models open their new chat in a tab, that tab only showed a plain New Chat heading, so the prompt suggestions set up for the model in Workspace > Models never appeared. Picking the same model in the model selector of a new chat still showed them. A new chat tab now lists the selected model's own prompt suggestions above the message input, and they filter as you type and send exactly as on the new chat screen. Fixes #34830 --- src/lib/components/chat/Chat.svelte | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index da492a9396..5cc01ed267 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -97,6 +97,7 @@ import { routeAvatarAnimation } from '$lib/utils/voice-avatar'; import { createTemporaryChatId, isSavedChatId, isTemporaryChatId } from '$lib/utils/chatId'; import { canUseTemporaryChats } from '$lib/utils/settings-access'; + import { resolveLocalizedModelPromptSuggestions } from '$lib/utils/localizedContent'; import { resumeTemporaryChat } from '$lib/apis'; import { applyResponseStreamEvent, @@ -164,6 +165,7 @@ import DeleteConfirmDialog from '../common/ConfirmDialog.svelte'; import WebSearchConfirmDialog from '../common/ConfirmDialog.svelte'; import Placeholder from './Placeholder.svelte'; + import Suggestions from './Suggestions.svelte'; import FilesOverlay from './MessageInput/FilesOverlay.svelte'; import NotificationToast from '../NotificationToast.svelte'; import Spinner from '../common/Spinner.svelte'; @@ -364,6 +366,12 @@ } else { selectedModelIds = selectedModels; } + $: modelSuggestionPrompts = + resolveLocalizedModelPromptSuggestions(atSelectedModel, $i18n.language) ?? + resolveLocalizedModelPromptSuggestions( + ($models ?? []).find((model) => model.id === selectedModels[selectedModelIdx]), + $i18n.language + ); let serverContextUsage = null; let contextUsage = null; @@ -6523,6 +6531,15 @@
+ {#if modelSuggestionPrompts?.length} +