From c32b407f8a4762dccc06237bf946cd038d807a2b Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 24 Sep 2025 19:43:07 +0000 Subject: [PATCH] Fix(notes): Hide hidden models in notes section This commit fixes a bug where hidden models were still visible and selectable in the notes section. The following changes were made: - The model dropdown in the chat section of the note editor is now filtered to exclude hidden models. - The default model selection logic in the note editor is now filtered to exclude hidden models. --- src/lib/components/notes/NoteEditor.svelte | 3 ++- src/lib/components/notes/NoteEditor/Chat.svelte | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/notes/NoteEditor.svelte b/src/lib/components/notes/NoteEditor.svelte index eb4fb9cfbd..c1d8dfcf20 100644 --- a/src/lib/components/notes/NoteEditor.svelte +++ b/src/lib/components/notes/NoteEditor.svelte @@ -872,7 +872,8 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings, } if (!selectedModelId) { - selectedModelId = $models.at(0)?.id || ''; + selectedModelId = + $models.filter((model) => !(model?.info?.meta?.hidden ?? false)).at(0)?.id || ''; } const dropzoneElement = document.getElementById('note-editor'); diff --git a/src/lib/components/notes/NoteEditor/Chat.svelte b/src/lib/components/notes/NoteEditor/Chat.svelte index a3fa9b5d25..3f6b691549 100644 --- a/src/lib/components/notes/NoteEditor/Chat.svelte +++ b/src/lib/components/notes/NoteEditor/Chat.svelte @@ -423,7 +423,7 @@ Based on the user's instruction, update and enhance the existing notes or select class=" bg-transparent rounded-lg py-1 px-2 -mx-0.5 text-sm outline-hidden w-full text-right pr-5" bind:value={selectedModelId} > - {#each $models as model} + {#each $models.filter((model) => !(model?.info?.meta?.hidden ?? false)) as model}