diff --git a/frontend/src/lib/components/sessions/SessionPicker.svelte b/frontend/src/lib/components/sessions/SessionPicker.svelte index 560cb07e2b..1eb73e6d2c 100644 --- a/frontend/src/lib/components/sessions/SessionPicker.svelte +++ b/frontend/src/lib/components/sessions/SessionPicker.svelte @@ -14,7 +14,6 @@ ListChecks, MessageSquare, Pencil, - PencilLine, Plus, Rows3, Trash2 @@ -88,15 +87,6 @@ return unreadCountFor(session.id, getRuntime(session.id)) } - // Whether the session holds a prompt handed to a send and not yet consumed - // (`instructions` carries the send in flight; the composer's typed text is - // AIChatInput-local and unreadable here). Read directly rather than via the - // derived chat status so the cue survives streaming/needs-confirmation. - function hasDraft(session: Session): boolean { - const rt = getRuntime(session.id) - return !!rt && rt.manager.instructions.trim().length > 0 - } - // Sessions share the beta opt-out gate with the global AI chat — when the // user opted out, the sidebar section is hidden entirely. const globalEnabled = isGlobalAiEnabled() @@ -734,7 +724,6 @@ {@const isSelected = sessionActive && session.id === sessionState.currentSessionId} {@const unread = unreadFor(session)} - {@const draft = hasDraft(session)} @@ -952,7 +934,6 @@ {@const isSelected = sessionActive && session.id === sessionState.currentSessionId} {@const isEditing = editingId === session.id} {@const unread = unreadFor(session)} - {@const draft = hasDraft(session)} {@const isChecked = selectedIds.includes(session.id)}
{/if} {session.summary ?? 'Untitled session'} - {#if draft || unread > 0} - - {#if draft} -