From b76c246d5e7765765da7c8f70d21688d789dea22 Mon Sep 17 00:00:00 2001 From: shaerware Date: Sun, 22 Feb 2026 19:11:32 +0000 Subject: [PATCH] fix(chat): pin input area + restore yellow new-branch button in all modes - Add shrink-0 to both CC and Normal input areas so they never collapse - Add min-h-0 to messages wrapper so only messages scroll, not the page - Add yellow "+" (new branch) button in both CC mode and Normal mode inputs - Restore startNewBranchAndShowTree() function and auto-open branch tree Co-Authored-By: Claude Opus 4.6 --- admin/src/views/ChatView.vue | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/admin/src/views/ChatView.vue b/admin/src/views/ChatView.vue index 6546e047..9728477f 100644 --- a/admin/src/views/ChatView.vue +++ b/admin/src/views/ChatView.vue @@ -448,6 +448,7 @@ const switchBranchMutation = useMutation({ const newBranchMutation = useMutation({ mutationFn: (sessionId: string) => chatApi.newBranchFromScratch(sessionId), onSuccess: async () => { + showBranchTree.value = true await refetchSession() await refetchBranches() }, @@ -458,6 +459,12 @@ function startNewBranch() { newBranchMutation.mutate(currentSessionId.value) } +function startNewBranchAndShowTree() { + if (!currentSessionId.value) return + showBranchTree.value = true + newBranchMutation.mutate(currentSessionId.value) +} + const deleteMessageMutation = useMutation({ mutationFn: ({ sessionId, messageId }: { sessionId: string; messageId: string }) => chatApi.deleteMessage(sessionId, messageId), @@ -2162,7 +2169,7 @@ watch(sessions, (newSessions) => {
{ > + +
@@ -2210,7 +2227,7 @@ watch(sessions, (newSessions) => {
{ > + +
@@ -2281,7 +2308,7 @@ watch(sessions, (newSessions) => {
-
+