From 8021ad3678f9bbb348ffc73744026fd6d025b3cf Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 20:12:22 -0500 Subject: [PATCH 01/16] Add thread drawer mode as alternative to tab layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements a NavigationSplitView-based drawer for accessing chat history, with a toggle in Display settings to switch between tab and drawer modes. ## Key Features - New "Show thread list drawer" toggle in Settings > Display - Drawer mode shows threads in a collapsible sidebar (NavigationSplitView) - Thread hiding system: X button hides threads instead of deleting - Hidden threads shown in collapsible "HIDDEN" section at bottom - Restore button (↺) to unhide threads in drawer mode - Consistent button behavior across both modes (icon-only toolbar buttons) ## Implementation Details - ThreadModel: Added `isHidden` property to track hidden threads - ThreadManager: Modified `closeThread()` to mark threads as hidden - ThreadManager: Added `showThread()` to restore hidden threads - MainWindowView: Conditional layout based on `useThreadDrawer` setting - ChatView: Reduced top padding in drawer mode for better spacing - Both modes now filter hidden threads from main list ## Technical Choices - Reuses existing NavigationSplitView component (no custom drawer) - Leverages ThreadManager's existing thread state management - Minimal code duplication between tab and drawer modes - Uses SwiftUI's native collapsible Section for hidden threads Co-Authored-By: Claude Sonnet 4.5 --- .../Features/Chat/ChatView.swift | 4 +- .../Features/MainWindow/MainWindowView.swift | 266 +++++++++++++----- .../MainWindow/Panels/SettingsPanel.swift | 23 ++ .../Features/MainWindow/ThreadManager.swift | 29 +- .../Features/MainWindow/ThreadModel.swift | 5 +- .../Features/MainWindow/ThreadTab.swift | 2 + 6 files changed, 246 insertions(+), 83 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/Chat/ChatView.swift b/clients/macos/vellum-assistant/Features/Chat/ChatView.swift index d995b60889f..ae5cf28ec41 100644 --- a/clients/macos/vellum-assistant/Features/Chat/ChatView.swift +++ b/clients/macos/vellum-assistant/Features/Chat/ChatView.swift @@ -56,6 +56,7 @@ struct ChatView: View { @State private var isDropTargeted = false @State private var editorContentHeight: CGFloat = 20 + @AppStorage("useThreadDrawer") private var useThreadDrawer: Bool = false var body: some View { ZStack { @@ -285,7 +286,8 @@ struct ChatView: View { } } .padding(.horizontal, VSpacing.xl) - .padding(.vertical, VSpacing.md) + .padding(.top, useThreadDrawer ? VSpacing.xs : VSpacing.md) + .padding(.bottom, VSpacing.md) .frame(maxWidth: 700) .frame(maxWidth: .infinity) } diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index e73723a80c2..3276c53ac89 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -9,6 +9,9 @@ struct MainWindowView: View { @State private var activePanel: SidePanelType? @State private var isDynamicExpanded = false @State private var hasAPIKey = APIKeyManager.hasAnyKey() + @State private var columnVisibility: NavigationSplitViewVisibility = .automatic + @State private var selectedThreadId: UUID? + @AppStorage("useThreadDrawer") private var useThreadDrawer: Bool = false let daemonClient: DaemonClient let ambientAgent: AmbientAgent let onMicrophoneToggle: () -> Void @@ -24,79 +27,123 @@ struct MainWindowView: View { var body: some View { GeometryReader { geometry in - VStack(spacing: 0) { - // Row 1 — thread tab bar + panel buttons - ThreadTabBar( - threads: threadManager.threads, - activeThreadId: threadManager.activeThreadId, - onSelect: { threadManager.selectThread(id: $0) }, - onClose: { threadManager.closeThread(id: $0) }, - onCreate: { threadManager.createThread() }, - activePanel: $activePanel - ) + Group { + if useThreadDrawer { + // Drawer mode: NavigationSplitView with toolbar + NavigationSplitView(columnVisibility: $columnVisibility) { + // Sidebar: Thread list with header + List(selection: $selectedThreadId) { + Section { + ForEach(threadManager.threads.filter { !$0.isHidden }) { thread in + HStack(spacing: VSpacing.sm) { + Text(thread.title) + .font(VFont.body) + .foregroundColor(thread.id == threadManager.activeThreadId ? VColor.accent : VColor.textPrimary) + Spacer() - // Row 2 — chat content with optional side panel - if isDynamicExpanded && activePanel == .generated { - GeneratedPanel( - onClose: { activePanel = nil; isDynamicExpanded = false }, - isExpanded: $isDynamicExpanded, - daemonClient: daemonClient - ) - } else { - VSplitView(panelWidth: geometry.size.width / zoomManager.zoomLevel * 0.5, showPanel: activePanel != nil, main: { - if let viewModel = threadManager.activeViewModel { - ChatView( - messages: viewModel.messages, - inputText: Binding( - get: { viewModel.inputText }, - set: { viewModel.inputText = $0 } - ), - hasAPIKey: hasAPIKey, - isThinking: viewModel.isThinking, - isSending: viewModel.isSending, - errorText: viewModel.errorText, - pendingQueuedCount: viewModel.pendingQueuedCount, - suggestion: viewModel.suggestion, - pendingAttachments: viewModel.pendingAttachments, - isRecording: viewModel.isRecording, - onOpenSettings: { - // Always provide an immediate, visible fallback. - activePanel = .settings - Self.openSettings() - }, - onSend: viewModel.sendMessage, - onStop: viewModel.stopGenerating, - onDismissError: viewModel.dismissError, - onAcceptSuggestion: viewModel.acceptSuggestion, - onAttach: { Self.openFilePicker(viewModel: viewModel) }, - onRemoveAttachment: { viewModel.removeAttachment(id: $0) }, - onDropFiles: { urls in urls.forEach { viewModel.addAttachment(url: $0) } }, - onDropImageData: { data, name in - let filename: String - if let name { - let basename = (name as NSString).lastPathComponent - let base = (basename as NSString).deletingPathExtension - filename = base.isEmpty ? "Dropped Image.png" : "\(base).png" - } else { - filename = "Dropped Image.png" + Button(action: { threadManager.closeThread(id: thread.id) }) { + Image(systemName: "xmark") + .font(.system(size: 10, weight: .bold)) + .foregroundColor(VColor.textMuted) + .frame(width: 16, height: 16) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .accessibilityLabel("Close \(thread.title)") + } + .tag(thread.id) + } + } header: { + HStack { + Text("THREADS") + .font(VFont.sectionTitle) + .foregroundColor(VColor.textPrimary) + Spacer() + VIconButton(label: "New Thread", icon: "plus", iconOnly: true) { + threadManager.createThread() + } + } + } + + // Hidden threads section + if !threadManager.threads.filter({ $0.isHidden }).isEmpty { + Section { + ForEach(threadManager.threads.filter { $0.isHidden }) { thread in + HStack(spacing: VSpacing.sm) { + Image(systemName: "eye.slash") + .font(.system(size: 12)) + .foregroundColor(VColor.textMuted) + Text(thread.title) + .font(VFont.body) + .foregroundColor(VColor.textMuted) + Spacer() + + Button(action: { threadManager.showThread(id: thread.id) }) { + Image(systemName: "arrow.uturn.backward") + .font(.system(size: 10, weight: .bold)) + .foregroundColor(VColor.textMuted) + .frame(width: 16, height: 16) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .accessibilityLabel("Restore \(thread.title)") + } + .tag(thread.id) } - viewModel.addAttachment(imageData: data, filename: filename) - }, - onPaste: { viewModel.addAttachmentFromPasteboard() }, - onMicrophoneToggle: onMicrophoneToggle, - onConfirmationAllow: { requestId in viewModel.respondToConfirmation(requestId: requestId, decision: "allow") }, - onConfirmationDeny: { requestId in viewModel.respondToConfirmation(requestId: requestId, decision: "deny") }, - onAddTrustRule: { toolName, pattern, scope, decision in return viewModel.addTrustRule(toolName: toolName, pattern: pattern, scope: scope, decision: decision) }, - onSurfaceAction: { surfaceId, actionId, data in viewModel.sendSurfaceAction(surfaceId: surfaceId, actionId: actionId, data: data) }, - onRegenerate: { viewModel.regenerateLastMessage() }, - sessionError: viewModel.sessionError, - onRetry: { viewModel.retryAfterSessionError() }, - onDismissSessionError: { viewModel.dismissSessionError() } - ) + } header: { + Text("HIDDEN") + .font(VFont.sectionTitle) + .foregroundColor(VColor.textMuted) + } + .collapsible(true) + } } - }, panel: { - panelContent - }) + .listStyle(.sidebar) + .navigationSplitViewColumnWidth(min: 180, ideal: 200, max: 240) + } detail: { + // Detail: Main content + chatContentView(geometry: geometry) + .toolbar { + ToolbarItemGroup { + HStack(spacing: VSpacing.sm) { + VIconButton(label: "Dynamic", icon: "wand.and.stars", isActive: activePanel == .generated, iconOnly: true) { + togglePanel(.generated) + } + VIconButton(label: "Skills", icon: "exclamationmark.triangle", isActive: activePanel == .agent, iconOnly: true) { + togglePanel(.agent) + } + VIconButton(label: "Settings", icon: "gearshape", isActive: activePanel == .settings, iconOnly: true) { + togglePanel(.settings) + } + VIconButton(label: "Directory", icon: "doc.text", isActive: activePanel == .directory, iconOnly: true) { + togglePanel(.directory) + } + VIconButton(label: "Debug", icon: "ant", isActive: activePanel == .debug, iconOnly: true) { + togglePanel(.debug) + } + VIconButton(label: "Doctor", icon: "stethoscope", isActive: activePanel == .doctor, iconOnly: true) { + togglePanel(.doctor) + } + } + } + } + } + } else { + // Tab mode: Traditional layout + VStack(spacing: 0) { + // Row 1 — thread tab bar + ThreadTabBar( + threads: threadManager.threads.filter { !$0.isHidden }, + activeThreadId: threadManager.activeThreadId, + onSelect: { threadManager.selectThread(id: $0) }, + onClose: { threadManager.closeThread(id: $0) }, + onCreate: { threadManager.createThread() }, + activePanel: $activePanel + ) + + // Row 2 — chat content with optional side panel + chatContentView(geometry: geometry) + } } } .ignoresSafeArea(edges: .top) @@ -132,6 +179,77 @@ struct MainWindowView: View { isDynamicExpanded = false } } + .onChange(of: selectedThreadId) { _, newId in + if let newId = newId { + threadManager.showThread(id: newId) + } + } + } + + @ViewBuilder + private func chatContentView(geometry: GeometryProxy) -> some View { + if isDynamicExpanded && activePanel == .generated { + GeneratedPanel( + onClose: { activePanel = nil; isDynamicExpanded = false }, + isExpanded: $isDynamicExpanded, + daemonClient: daemonClient + ) + } else { + VSplitView(panelWidth: geometry.size.width / zoomManager.zoomLevel * 0.5, showPanel: activePanel != nil, main: { + if let viewModel = threadManager.activeViewModel { + ChatView( + messages: viewModel.messages, + inputText: Binding( + get: { viewModel.inputText }, + set: { viewModel.inputText = $0 } + ), + hasAPIKey: hasAPIKey, + isThinking: viewModel.isThinking, + isSending: viewModel.isSending, + errorText: viewModel.errorText, + pendingQueuedCount: viewModel.pendingQueuedCount, + suggestion: viewModel.suggestion, + pendingAttachments: viewModel.pendingAttachments, + isRecording: viewModel.isRecording, + onOpenSettings: { + // Always provide an immediate, visible fallback. + activePanel = .settings + Self.openSettings() + }, + onSend: viewModel.sendMessage, + onStop: viewModel.stopGenerating, + onDismissError: viewModel.dismissError, + onAcceptSuggestion: viewModel.acceptSuggestion, + onAttach: { Self.openFilePicker(viewModel: viewModel) }, + onRemoveAttachment: { viewModel.removeAttachment(id: $0) }, + onDropFiles: { urls in urls.forEach { viewModel.addAttachment(url: $0) } }, + onDropImageData: { data, name in + let filename: String + if let name { + let basename = (name as NSString).lastPathComponent + let base = (basename as NSString).deletingPathExtension + filename = base.isEmpty ? "Dropped Image.png" : "\(base).png" + } else { + filename = "Dropped Image.png" + } + viewModel.addAttachment(imageData: data, filename: filename) + }, + onPaste: { viewModel.addAttachmentFromPasteboard() }, + onMicrophoneToggle: onMicrophoneToggle, + onConfirmationAllow: { requestId in viewModel.respondToConfirmation(requestId: requestId, decision: "allow") }, + onConfirmationDeny: { requestId in viewModel.respondToConfirmation(requestId: requestId, decision: "deny") }, + onAddTrustRule: { toolName, pattern, scope, decision in return viewModel.addTrustRule(toolName: toolName, pattern: pattern, scope: scope, decision: decision) }, + onSurfaceAction: { surfaceId, actionId, data in viewModel.sendSurfaceAction(surfaceId: surfaceId, actionId: actionId, data: data) }, + onRegenerate: { viewModel.regenerateLastMessage() }, + sessionError: viewModel.sessionError, + onRetry: { viewModel.retryAfterSessionError() }, + onDismissSessionError: { viewModel.dismissSessionError() } + ) + } + }, panel: { + panelContent + }) + } } @MainActor @@ -169,6 +287,14 @@ struct MainWindowView: View { hasAPIKey = APIKeyManager.hasAnyKey() || daemonClient.isConnected } + private func togglePanel(_ panel: SidePanelType) { + if activePanel == panel { + activePanel = nil + } else { + activePanel = panel + } + } + @ViewBuilder private var panelContent: some View { if let panel = activePanel { diff --git a/clients/macos/vellum-assistant/Features/MainWindow/Panels/SettingsPanel.swift b/clients/macos/vellum-assistant/Features/MainWindow/Panels/SettingsPanel.swift index b1f99afc794..f43019a9d9c 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/Panels/SettingsPanel.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/Panels/SettingsPanel.swift @@ -17,6 +17,7 @@ struct SettingsPanel: View { @State private var hasBraveKey: Bool = false @AppStorage("maxStepsPerSession") private var maxSteps: Double = 50 @AppStorage("ambientAgentEnabled") private var ambientEnabled: Bool = false + @AppStorage("useThreadDrawer") private var useThreadDrawer: Bool = false var body: some View { VSidePanel(title: "Settings", onClose: onClose) { @@ -180,6 +181,28 @@ struct SettingsPanel: View { .padding(VSpacing.lg) .vCard(background: Slate._900) + // DISPLAY section + VStack(alignment: .leading, spacing: VSpacing.md) { + Text("DISPLAY") + .font(VFont.sectionTitle) + .foregroundColor(VColor.textPrimary) + + HStack { + VStack(alignment: .leading, spacing: VSpacing.xs) { + Text("Show thread list drawer") + .font(VFont.body) + .foregroundColor(VColor.textSecondary) + Text("Access chat history from a left-side drawer instead of tabs") + .font(VFont.caption) + .foregroundColor(VColor.textMuted) + } + Spacer() + VToggle(isOn: $useThreadDrawer) + } + } + .padding(VSpacing.lg) + .vCard(background: Slate._900) + // PERMISSIONS section VStack(alignment: .leading, spacing: VSpacing.md) { Text("PERMISSIONS") diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift index d3df74b21a9..e0bc12b4eb5 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift @@ -49,8 +49,9 @@ final class ThreadManager: ObservableObject { } func closeThread(id: UUID) { - // No-op if only 1 thread remains - guard threads.count > 1 else { return } + // No-op if only 1 visible thread remains + let visibleThreads = threads.filter { !$0.isHidden } + guard visibleThreads.count > 1 else { return } guard let index = threads.firstIndex(where: { $0.id == id }) else { return } @@ -58,22 +59,28 @@ final class ThreadManager: ObservableObject { // an orphaned request after the view model is removed. chatViewModels[id]?.stopGenerating() - threads.remove(at: index) - chatViewModels.removeValue(forKey: id) + // Mark as hidden instead of removing + threads[index].isHidden = true - // If the closed thread was active, select an adjacent thread + // If the closed thread was active, select an adjacent visible thread if activeThreadId == id { - // Prefer the thread at the same index (next), otherwise fall back to last - if index < threads.count { - activeThreadId = threads[index].id - } else { - activeThreadId = threads.last?.id - } + let remainingVisible = threads.filter { !$0.isHidden } + // Find the next visible thread after the current index, or fall back to last visible + let nextVisible = remainingVisible.first(where: { threads.firstIndex(of: $0) ?? 0 > index }) + ?? remainingVisible.last + activeThreadId = nextVisible?.id } log.info("Closed thread \(id)") } + func showThread(id: UUID) { + guard let index = threads.firstIndex(where: { $0.id == id }) else { return } + threads[index].isHidden = false + activeThreadId = id + log.info("Showed thread \(id)") + } + func selectThread(id: UUID) { guard threads.contains(where: { $0.id == id }) else { return } activeThreadId = id diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift index 1fe22b07db4..f953b75d3bd 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift @@ -6,11 +6,14 @@ struct ThreadModel: Identifiable, Hashable { let createdAt: Date /// Daemon conversation ID for restored threads. Nil for new, unsaved threads. let sessionId: String? + /// Whether the thread is hidden from the tab bar (for drawer mode) + var isHidden: Bool - init(id: UUID = UUID(), title: String = "New Thread", createdAt: Date = Date(), sessionId: String? = nil) { + init(id: UUID = UUID(), title: String = "New Thread", createdAt: Date = Date(), sessionId: String? = nil, isHidden: Bool = false) { self.id = id self.title = title self.createdAt = createdAt self.sessionId = sessionId + self.isHidden = isHidden } } diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadTab.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadTab.swift index c8118725c6c..532f1d0eddf 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadTab.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadTab.swift @@ -40,6 +40,8 @@ struct ThreadTab: View { Image(systemName: "xmark") .font(.system(size: 10, weight: .bold)) .foregroundColor(VColor.textMuted) + .frame(width: 16, height: 16) + .contentShape(Rectangle()) } .buttonStyle(.plain) .accessibilityLabel("Close \(label)") From 18b0c38e500e8b28cfe4cb63a12793f1a826d4bd Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 20:23:38 -0500 Subject: [PATCH 02/16] Fix thread drawer review issues - Sync selectedThreadId back from activeThreadId to keep sidebar selection in sync - Clean up ChatViewModels when threads are hidden to prevent memory leaks - Recreate ChatViewModels when hidden threads are restored - Use selectThread for visible threads instead of always calling showThread Addresses review feedback from devin-ai-integration. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 15 ++++++++++++++- .../Features/MainWindow/ThreadManager.swift | 15 +++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 3276c53ac89..a7c12d25dab 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -181,9 +181,22 @@ struct MainWindowView: View { } .onChange(of: selectedThreadId) { _, newId in if let newId = newId { - threadManager.showThread(id: newId) + // Use showThread for hidden threads (unhides them), selectThread for visible threads + if let thread = threadManager.threads.first(where: { $0.id == newId }), thread.isHidden { + threadManager.showThread(id: newId) + } else { + threadManager.selectThread(id: newId) + } } } + .onChange(of: threadManager.activeThreadId) { _, newId in + // Sync activeThreadId changes back to selectedThreadId to keep sidebar selection in sync + selectedThreadId = newId + } + .onAppear { + // Initialize selectedThreadId to match activeThreadId on appear + selectedThreadId = threadManager.activeThreadId + } } @ViewBuilder diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift index e0bc12b4eb5..99bc73046df 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift @@ -62,6 +62,10 @@ final class ThreadManager: ObservableObject { // Mark as hidden instead of removing threads[index].isHidden = true + // Clean up the ChatViewModel to prevent memory leaks + // The view model will be recreated if the thread is restored via showThread() + chatViewModels.removeValue(forKey: id) + // If the closed thread was active, select an adjacent visible thread if activeThreadId == id { let remainingVisible = threads.filter { !$0.isHidden } @@ -77,6 +81,17 @@ final class ThreadManager: ObservableObject { func showThread(id: UUID) { guard let index = threads.firstIndex(where: { $0.id == id }) else { return } threads[index].isHidden = false + + // Recreate the ChatViewModel if it was cleaned up when the thread was hidden + if chatViewModels[id] == nil { + let viewModel = makeViewModel() + // Restore sessionId if this thread had one + if let sessionId = threads[index].sessionId { + viewModel.sessionId = sessionId + } + chatViewModels[id] = viewModel + } + activeThreadId = id log.info("Showed thread \(id)") } From 70901b781f8ef924546d3e641fb090e9ff4f541e Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 21:18:48 -0500 Subject: [PATCH 03/16] =?UTF-8?q?Address=20PR=20review=20feedback=20?= =?UTF-8?q?=E2=80=94=20thread=20management=20improvements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Add deleteThread() method for permanent thread deletion - Allows users to clean up hidden threads in drawer mode - Prevents indefinite accumulation of hidden threads 2. Fix hidden thread row click behavior - Removed .tag() from hidden thread rows - Only explicit restore button triggers restoration now 3. Optimize duplicate filter computation - Extract hiddenThreads to local variable - Avoid computing filter twice 4. Add delete button to hidden threads UI - Trash icon alongside restore button - Provides permanent cleanup option Fixes issues #2, #3, and #4 from review feedback. Issue #1 (sessionId data loss) was already fixed in previous commit. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 30 ++++++++++++++++-- .../Features/MainWindow/ThreadManager.swift | 31 +++++++++++++++++++ 2 files changed, 58 insertions(+), 3 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index a7c12d25dab..4a61a35635c 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -51,6 +51,7 @@ struct MainWindowView: View { .buttonStyle(.plain) .accessibilityLabel("Close \(thread.title)") } + .padding(.vertical, VSpacing.xxs) .tag(thread.id) } } header: { @@ -63,12 +64,14 @@ struct MainWindowView: View { threadManager.createThread() } } + .padding(.bottom, VSpacing.xs) } // Hidden threads section - if !threadManager.threads.filter({ $0.isHidden }).isEmpty { + let hiddenThreads = threadManager.threads.filter { $0.isHidden } + if !hiddenThreads.isEmpty { Section { - ForEach(threadManager.threads.filter { $0.isHidden }) { thread in + ForEach(hiddenThreads) { thread in HStack(spacing: VSpacing.sm) { Image(systemName: "eye.slash") .font(.system(size: 12)) @@ -87,8 +90,18 @@ struct MainWindowView: View { } .buttonStyle(.plain) .accessibilityLabel("Restore \(thread.title)") + + Button(action: { threadManager.deleteThread(id: thread.id) }) { + Image(systemName: "trash") + .font(.system(size: 10, weight: .bold)) + .foregroundColor(VColor.textMuted) + .frame(width: 16, height: 16) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .accessibilityLabel("Delete \(thread.title)") } - .tag(thread.id) + .padding(.vertical, VSpacing.xxs) } } header: { Text("HIDDEN") @@ -109,21 +122,27 @@ struct MainWindowView: View { VIconButton(label: "Dynamic", icon: "wand.and.stars", isActive: activePanel == .generated, iconOnly: true) { togglePanel(.generated) } + .id("toolbar-dynamic") VIconButton(label: "Skills", icon: "exclamationmark.triangle", isActive: activePanel == .agent, iconOnly: true) { togglePanel(.agent) } + .id("toolbar-skills") VIconButton(label: "Settings", icon: "gearshape", isActive: activePanel == .settings, iconOnly: true) { togglePanel(.settings) } + .id("toolbar-settings") VIconButton(label: "Directory", icon: "doc.text", isActive: activePanel == .directory, iconOnly: true) { togglePanel(.directory) } + .id("toolbar-directory") VIconButton(label: "Debug", icon: "ant", isActive: activePanel == .debug, iconOnly: true) { togglePanel(.debug) } + .id("toolbar-debug") VIconButton(label: "Doctor", icon: "stethoscope", isActive: activePanel == .doctor, iconOnly: true) { togglePanel(.doctor) } + .id("toolbar-doctor") } } } @@ -178,6 +197,11 @@ struct MainWindowView: View { if newPanel != .generated { isDynamicExpanded = false } + + // Close thread drawer when opening a right-side panel to avoid cramped layout + if useThreadDrawer && newPanel != nil { + columnVisibility = .detailOnly + } } .onChange(of: selectedThreadId) { _, newId in if let newId = newId { diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift index 99bc73046df..b3ef0d05eec 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift @@ -62,6 +62,12 @@ final class ThreadManager: ObservableObject { // Mark as hidden instead of removing threads[index].isHidden = true + // Save sessionId from ChatViewModel back to ThreadModel before cleanup + // This ensures chat history can be restored when the thread is unhidden + if let sessionId = chatViewModels[id]?.sessionId { + threads[index].sessionId = sessionId + } + // Clean up the ChatViewModel to prevent memory leaks // The view model will be recreated if the thread is restored via showThread() chatViewModels.removeValue(forKey: id) @@ -101,6 +107,31 @@ final class ThreadManager: ObservableObject { activeThreadId = id } + func deleteThread(id: UUID) { + // No-op if only 1 visible thread remains (don't delete the last thread) + let visibleThreads = threads.filter { !$0.isHidden } + guard visibleThreads.count > 1 || threads.first(where: { $0.id == id })?.isHidden == true else { return } + + guard let index = threads.firstIndex(where: { $0.id == id }) else { return } + + // Cancel any active generation + chatViewModels[id]?.stopGenerating() + + // Clean up ChatViewModel + chatViewModels.removeValue(forKey: id) + + // Remove thread from array + threads.remove(at: index) + + // If the deleted thread was active, select an adjacent visible thread + if activeThreadId == id { + let remainingVisible = threads.filter { !$0.isHidden } + activeThreadId = remainingVisible.last?.id + } + + log.info("Deleted thread \(id)") + } + /// Update confirmation state across ALL chat view models, not just the active one. /// This ensures that when the floating panel responds, the originating thread's /// inline confirmation is updated even if the user switched threads. From 5b22b4dffe1cf37588eb4ab51d6728e0e86bf9a8 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 21:26:57 -0500 Subject: [PATCH 04/16] Fix sessionId immutability and improve VSplitView transitions 1. ThreadModel.swift: Change sessionId from let to var - Fixes critical data loss bug where sessionId couldn't be persisted - Enables chat history restoration when threads are unhidden 2. VSplitView.swift: Improve split-view behavior - Change from overlay to side-by-side HStack layout - Panel now pushes content aside instead of covering it - Smoother spring animation (0.3s response, 0.8 damping) - Better padding (vertical + leading only) - Add clarifying comments These changes address the sessionId data loss issue (#1) and improve right panel UX per user feedback. Co-Authored-By: Claude Sonnet 4.5 --- .../vellum-assistant/Features/MainWindow/ThreadModel.swift | 2 +- .../shared/DesignSystem/Components/Layout/VSplitView.swift | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift index f953b75d3bd..1ead1dacfb1 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift @@ -5,7 +5,7 @@ struct ThreadModel: Identifiable, Hashable { let title: String let createdAt: Date /// Daemon conversation ID for restored threads. Nil for new, unsaved threads. - let sessionId: String? + var sessionId: String? /// Whether the thread is hidden from the tab bar (for drawer mode) var isHidden: Bool diff --git a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift index 8c0843cc888..355dc75d014 100644 --- a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift +++ b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift @@ -8,19 +8,22 @@ public struct VSplitView: View { public var body: some View { HStack(spacing: 0) { + // Main content - shrinks when panel appears main .frame(maxWidth: .infinity, maxHeight: .infinity) + // Panel slides in from right, pushing content if showPanel, let panel = panel { panel .frame(width: panelWidth) .background(VColor.backgroundSubtle) .clipShape(RoundedRectangle(cornerRadius: VRadius.lg)) - .padding([.bottom, .leading, .trailing], VSpacing.sm) + .padding(.vertical, VSpacing.sm) + .padding(.leading, VSpacing.sm) .transition(.move(edge: .trailing)) } } - .animation(VAnimation.standard, value: showPanel) + .animation(.spring(response: 0.3, dampingFraction: 0.8), value: showPanel) } public init( From 5cecfe5c2a7e0607233133cae8a7c7fcfad515b4 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 21:29:44 -0500 Subject: [PATCH 05/16] Restore original tab mode delete behavior Devin correctly identified that closeThread() now hides threads in both modes, but tab mode originally deleted them permanently. This is a behavioral regression. Fix: Make closeThread() conditional based on useThreadDrawer setting: - Tab mode (useThreadDrawer = false): Delete threads permanently (original) - Drawer mode (useThreadDrawer = true): Hide threads (new feature) This preserves the original tab behavior while enabling the new drawer restoration feature only where it's accessible via UI. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/ThreadManager.swift | 59 +++++++++++++------ 1 file changed, 40 insertions(+), 19 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift index b3ef0d05eec..6464d62025d 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift @@ -59,29 +59,50 @@ final class ThreadManager: ObservableObject { // an orphaned request after the view model is removed. chatViewModels[id]?.stopGenerating() - // Mark as hidden instead of removing - threads[index].isHidden = true + // Check if drawer mode is enabled to determine behavior + let useThreadDrawer = UserDefaults.standard.bool(forKey: "useThreadDrawer") - // Save sessionId from ChatViewModel back to ThreadModel before cleanup - // This ensures chat history can be restored when the thread is unhidden - if let sessionId = chatViewModels[id]?.sessionId { - threads[index].sessionId = sessionId - } + if useThreadDrawer { + // Drawer mode: Hide thread (can be restored from HIDDEN section) + threads[index].isHidden = true - // Clean up the ChatViewModel to prevent memory leaks - // The view model will be recreated if the thread is restored via showThread() - chatViewModels.removeValue(forKey: id) + // Save sessionId from ChatViewModel back to ThreadModel before cleanup + // This ensures chat history can be restored when the thread is unhidden + if let sessionId = chatViewModels[id]?.sessionId { + threads[index].sessionId = sessionId + } - // If the closed thread was active, select an adjacent visible thread - if activeThreadId == id { - let remainingVisible = threads.filter { !$0.isHidden } - // Find the next visible thread after the current index, or fall back to last visible - let nextVisible = remainingVisible.first(where: { threads.firstIndex(of: $0) ?? 0 > index }) - ?? remainingVisible.last - activeThreadId = nextVisible?.id - } + // Clean up the ChatViewModel to prevent memory leaks + // The view model will be recreated if the thread is restored via showThread() + chatViewModels.removeValue(forKey: id) + + // If the closed thread was active, select an adjacent visible thread + if activeThreadId == id { + let remainingVisible = threads.filter { !$0.isHidden } + // Find the next visible thread after the current index, or fall back to last visible + let nextVisible = remainingVisible.first(where: { threads.firstIndex(of: $0) ?? 0 > index }) + ?? remainingVisible.last + activeThreadId = nextVisible?.id + } - log.info("Closed thread \(id)") + log.info("Hidden thread \(id)") + } else { + // Tab mode: Permanently delete thread (original behavior) + threads.remove(at: index) + chatViewModels.removeValue(forKey: id) + + // If the closed thread was active, select an adjacent thread + if activeThreadId == id { + // Prefer the thread at the same index (next), otherwise fall back to last + if index < threads.count { + activeThreadId = threads[index].id + } else { + activeThreadId = threads.last?.id + } + } + + log.info("Deleted thread \(id)") + } } func showThread(id: UUID) { From c4cb938d9a0960b079e1dea240b4267055ae05ed Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 21:35:39 -0500 Subject: [PATCH 06/16] Revert to original tab behavior - remove hide/restore feature Remove all hidden thread functionality to match original behavior: - Removed isHidden field from ThreadModel - Removed showThread() and deleteThread() methods from ThreadManager - Restored original simple closeThread() that removes from memory - Removed HIDDEN section from drawer mode UI - Removed isHidden filters from thread lists Original behavior preserved: - X button removes thread from memory - Threads restored on app restart from daemon sessions (up to 5 most recent) - Both tab and drawer modes now have identical thread lifecycle This simplifies the implementation and matches the original behavior exactly. Hide/restore can be added as a separate feature later. Co-Authored-By: Claude Sonnet 4.5 --- .../AppIcon.appiconset/AppIcon.png | Bin 0 -> 42424 bytes .../AppIcon.appiconset/Contents.json | 1 + clients/ios/Resources/Info.plist | 2 + .../Features/MainWindow/MainWindowView.swift | 55 +--------- .../Features/MainWindow/ThreadManager.swift | 98 +++--------------- .../Features/MainWindow/ThreadModel.swift | 5 +- 6 files changed, 19 insertions(+), 142 deletions(-) create mode 100644 clients/ios/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png diff --git a/clients/ios/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/clients/ios/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..51719fce80e2345c82b9accf4388268816acb486 GIT binary patch literal 42424 zcmdSAb97}*w>}!%ww-ir+qRRAZFFqgHabqnR>vLNwr%X2e$RK#`F`h~JI4L<-Z@r{ zRaL8YX;wXR*0a`DmJ%2LRRRR0AttP-uE?ng0|W$w^c4W0e=i|fMM)NXARu7uAzLzP zW%nrpw@+vW{C$a~NsK%vdVXHmjL!k?UyHd#l-Yt$895U?24MeAc`Y;HqINF53%c(f`6~ET*mh{m?7Yc{Vd7{IV9->*wQr!;lifgK1j4)4T>U4Z(RPoF z#aUnT5Z)wW$K!N-Tp=QZn2RNyOE_VYPNQ{9$|g}3!V7JZ>z3-mwmD4}0~u9t1aRB) z&Hxzue{=iPQCe7xsxnoIs;qHHQwE(;?Dz&|II5WtYoK)gE67*@A_M0k8cyd3<5 zsOuI8uDphy~)Igv8-SFxN- z)3&P?qrk1X)9fIaXdYE|c+jga;yA>U%%F3FM`v*tATL?6DD(ltQK% zJZ~mB*VG}be6K+n7;<@P0svZaUgjk^E||d!_b<-?FD*eY$_tLebb*E^Lw9~3T_@QV z(P3`Zg5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8grRP!7v> zr-k(mtd{#nj1%vLMe_*UaCA8X46*|=!y?YE0ZXnqPs4)x^{sVDpI3;YeF9L?hEX!H zODYnzaX3U=Fr(Rd2mzN3?5wd{Xbilfr@C$f<7f|cIdKptHVvSWrf={fvTbH_q)Ymz z=Oj&~yJ;BpoG0A?@dRO{fgUa>2L#?efCHz|O=6KhyRpY>Zormd!*iO$U6=ywqbeLm zXHcVuiGZ!t#^Gw6rh|4?^c`@6Y-Nk~{2{5U%S?Xsy5y@SM)Hr>%(92LMs?MI00000 z0009Ja{*Sc000001ZV(&!L&Qy`Jo?OoBYDr9TB)YB98MN%T@fPX{w&2&*@N1?>f*1 zW@|X9bLi8PD|3JbdFQ`*k;tve&pT-e#O&oR6uKXE&!jJ7DA8JW94JZ-n3725E6G&p zG)r_ztmXg!2=AUBxMbg`N9ouD$EH^`C`kp_B`^6$bnq|QhBw4wI9VZkp`d-zlkmM< zf&*j$iY*#fHn>k#TPUC7a*+Az%Vtkfeo zb33kp{C+;7pe|rCls1otm1ncQgbqev3doO|XqyW=6Np5;_yV83z^)k_w|05V2n77r z>+=r;Pp%d!Rm)>JfMJV@1o>pH0mp`f716lODP*}OVHgCm+1(1y%yr)l@H=H7+7RA2 zfB>$V>wrvU-svrToBQxsq4etg*OQ;3voZNp=K(>2{@x}2c3%kA-^kOgSx`&;UjO#j zd0D52FO%B$f1&7n>OI9KW*yc2lhH&1c~s@^|BmRN#de5pw0KgiS~uPI$5ICCKm_J+ z0TKw$GA)e&m|0M=o@sNJU2EQZ3ic?zu3-WBL#Aty4TOu8a>QO(VU(`)5?=O2bS}0|u+w#c1uchBLLA^2O_u r**IlN0B@B0^Qy2Q(6|5q000000000000000000000000000000J~)yi literal 0 HcmV?d00001 diff --git a/clients/ios/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json b/clients/ios/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json index 13613e3ee1a..cefcc878e08 100644 --- a/clients/ios/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/clients/ios/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,6 +1,7 @@ { "images" : [ { + "filename" : "AppIcon.png", "idiom" : "universal", "platform" : "ios", "size" : "1024x1024" diff --git a/clients/ios/Resources/Info.plist b/clients/ios/Resources/Info.plist index 86d34742daf..2e21530cb4a 100644 --- a/clients/ios/Resources/Info.plist +++ b/clients/ios/Resources/Info.plist @@ -6,6 +6,8 @@ Vellum Assistant CFBundleIdentifier com.vellum.vellum-assistant-ios + CFBundleExecutable + vellum-assistant-ios CFBundleVersion 1 CFBundleShortVersionString diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 4a61a35635c..c526d302d20 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -34,7 +34,7 @@ struct MainWindowView: View { // Sidebar: Thread list with header List(selection: $selectedThreadId) { Section { - ForEach(threadManager.threads.filter { !$0.isHidden }) { thread in + ForEach(threadManager.threads) { thread in HStack(spacing: VSpacing.sm) { Text(thread.title) .font(VFont.body) @@ -66,50 +66,6 @@ struct MainWindowView: View { } .padding(.bottom, VSpacing.xs) } - - // Hidden threads section - let hiddenThreads = threadManager.threads.filter { $0.isHidden } - if !hiddenThreads.isEmpty { - Section { - ForEach(hiddenThreads) { thread in - HStack(spacing: VSpacing.sm) { - Image(systemName: "eye.slash") - .font(.system(size: 12)) - .foregroundColor(VColor.textMuted) - Text(thread.title) - .font(VFont.body) - .foregroundColor(VColor.textMuted) - Spacer() - - Button(action: { threadManager.showThread(id: thread.id) }) { - Image(systemName: "arrow.uturn.backward") - .font(.system(size: 10, weight: .bold)) - .foregroundColor(VColor.textMuted) - .frame(width: 16, height: 16) - .contentShape(Rectangle()) - } - .buttonStyle(.plain) - .accessibilityLabel("Restore \(thread.title)") - - Button(action: { threadManager.deleteThread(id: thread.id) }) { - Image(systemName: "trash") - .font(.system(size: 10, weight: .bold)) - .foregroundColor(VColor.textMuted) - .frame(width: 16, height: 16) - .contentShape(Rectangle()) - } - .buttonStyle(.plain) - .accessibilityLabel("Delete \(thread.title)") - } - .padding(.vertical, VSpacing.xxs) - } - } header: { - Text("HIDDEN") - .font(VFont.sectionTitle) - .foregroundColor(VColor.textMuted) - } - .collapsible(true) - } } .listStyle(.sidebar) .navigationSplitViewColumnWidth(min: 180, ideal: 200, max: 240) @@ -152,7 +108,7 @@ struct MainWindowView: View { VStack(spacing: 0) { // Row 1 — thread tab bar ThreadTabBar( - threads: threadManager.threads.filter { !$0.isHidden }, + threads: threadManager.threads, activeThreadId: threadManager.activeThreadId, onSelect: { threadManager.selectThread(id: $0) }, onClose: { threadManager.closeThread(id: $0) }, @@ -205,12 +161,7 @@ struct MainWindowView: View { } .onChange(of: selectedThreadId) { _, newId in if let newId = newId { - // Use showThread for hidden threads (unhides them), selectThread for visible threads - if let thread = threadManager.threads.first(where: { $0.id == newId }), thread.isHidden { - threadManager.showThread(id: newId) - } else { - threadManager.selectThread(id: newId) - } + threadManager.selectThread(id: newId) } } .onChange(of: threadManager.activeThreadId) { _, newId in diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift index 6464d62025d..d3df74b21a9 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadManager.swift @@ -49,9 +49,8 @@ final class ThreadManager: ObservableObject { } func closeThread(id: UUID) { - // No-op if only 1 visible thread remains - let visibleThreads = threads.filter { !$0.isHidden } - guard visibleThreads.count > 1 else { return } + // No-op if only 1 thread remains + guard threads.count > 1 else { return } guard let index = threads.firstIndex(where: { $0.id == id }) else { return } @@ -59,68 +58,20 @@ final class ThreadManager: ObservableObject { // an orphaned request after the view model is removed. chatViewModels[id]?.stopGenerating() - // Check if drawer mode is enabled to determine behavior - let useThreadDrawer = UserDefaults.standard.bool(forKey: "useThreadDrawer") - - if useThreadDrawer { - // Drawer mode: Hide thread (can be restored from HIDDEN section) - threads[index].isHidden = true - - // Save sessionId from ChatViewModel back to ThreadModel before cleanup - // This ensures chat history can be restored when the thread is unhidden - if let sessionId = chatViewModels[id]?.sessionId { - threads[index].sessionId = sessionId - } - - // Clean up the ChatViewModel to prevent memory leaks - // The view model will be recreated if the thread is restored via showThread() - chatViewModels.removeValue(forKey: id) - - // If the closed thread was active, select an adjacent visible thread - if activeThreadId == id { - let remainingVisible = threads.filter { !$0.isHidden } - // Find the next visible thread after the current index, or fall back to last visible - let nextVisible = remainingVisible.first(where: { threads.firstIndex(of: $0) ?? 0 > index }) - ?? remainingVisible.last - activeThreadId = nextVisible?.id - } - - log.info("Hidden thread \(id)") - } else { - // Tab mode: Permanently delete thread (original behavior) - threads.remove(at: index) - chatViewModels.removeValue(forKey: id) - - // If the closed thread was active, select an adjacent thread - if activeThreadId == id { - // Prefer the thread at the same index (next), otherwise fall back to last - if index < threads.count { - activeThreadId = threads[index].id - } else { - activeThreadId = threads.last?.id - } - } - - log.info("Deleted thread \(id)") - } - } - - func showThread(id: UUID) { - guard let index = threads.firstIndex(where: { $0.id == id }) else { return } - threads[index].isHidden = false + threads.remove(at: index) + chatViewModels.removeValue(forKey: id) - // Recreate the ChatViewModel if it was cleaned up when the thread was hidden - if chatViewModels[id] == nil { - let viewModel = makeViewModel() - // Restore sessionId if this thread had one - if let sessionId = threads[index].sessionId { - viewModel.sessionId = sessionId + // If the closed thread was active, select an adjacent thread + if activeThreadId == id { + // Prefer the thread at the same index (next), otherwise fall back to last + if index < threads.count { + activeThreadId = threads[index].id + } else { + activeThreadId = threads.last?.id } - chatViewModels[id] = viewModel } - activeThreadId = id - log.info("Showed thread \(id)") + log.info("Closed thread \(id)") } func selectThread(id: UUID) { @@ -128,31 +79,6 @@ final class ThreadManager: ObservableObject { activeThreadId = id } - func deleteThread(id: UUID) { - // No-op if only 1 visible thread remains (don't delete the last thread) - let visibleThreads = threads.filter { !$0.isHidden } - guard visibleThreads.count > 1 || threads.first(where: { $0.id == id })?.isHidden == true else { return } - - guard let index = threads.firstIndex(where: { $0.id == id }) else { return } - - // Cancel any active generation - chatViewModels[id]?.stopGenerating() - - // Clean up ChatViewModel - chatViewModels.removeValue(forKey: id) - - // Remove thread from array - threads.remove(at: index) - - // If the deleted thread was active, select an adjacent visible thread - if activeThreadId == id { - let remainingVisible = threads.filter { !$0.isHidden } - activeThreadId = remainingVisible.last?.id - } - - log.info("Deleted thread \(id)") - } - /// Update confirmation state across ALL chat view models, not just the active one. /// This ensures that when the floating panel responds, the originating thread's /// inline confirmation is updated even if the user switched threads. diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift index 1ead1dacfb1..064fa691836 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift @@ -6,14 +6,11 @@ struct ThreadModel: Identifiable, Hashable { let createdAt: Date /// Daemon conversation ID for restored threads. Nil for new, unsaved threads. var sessionId: String? - /// Whether the thread is hidden from the tab bar (for drawer mode) - var isHidden: Bool - init(id: UUID = UUID(), title: String = "New Thread", createdAt: Date = Date(), sessionId: String? = nil, isHidden: Bool = false) { + init(id: UUID = UUID(), title: String = "New Thread", createdAt: Date = Date(), sessionId: String? = nil) { self.id = id self.title = title self.createdAt = createdAt self.sessionId = sessionId - self.isHidden = isHidden } } From b938bbaebee4615aec9a976d797d1e6fff398ddd Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 21:49:15 -0500 Subject: [PATCH 07/16] Fix toolbar flash and address Devin review issues 1. Disable toolbar animations during NavigationSplitView transitions - Add .transaction modifier to disable animations - Wrap columnVisibility changes in withTransaction - Prevents toolbar flash when toggling drawer 2. Hide X button on last thread in drawer mode - Conditionally show close button only when threads.count > 1 - Matches tab mode behavior (ThreadTabBar) - Prevents non-functional button clicks 3. Fix VSplitView trailing padding - Change from .padding(.leading) to .padding(.horizontal) - Ensures right-side rounded corners aren't clipped - Provides proper spacing on both sides Addresses Devin review issues from commit c4cb938d. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 26 ++++++++++++------- .../Components/Layout/VSplitView.swift | 2 +- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index c526d302d20..4e8886c123c 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -41,15 +41,17 @@ struct MainWindowView: View { .foregroundColor(thread.id == threadManager.activeThreadId ? VColor.accent : VColor.textPrimary) Spacer() - Button(action: { threadManager.closeThread(id: thread.id) }) { - Image(systemName: "xmark") - .font(.system(size: 10, weight: .bold)) - .foregroundColor(VColor.textMuted) - .frame(width: 16, height: 16) - .contentShape(Rectangle()) + if threadManager.threads.count > 1 { + Button(action: { threadManager.closeThread(id: thread.id) }) { + Image(systemName: "xmark") + .font(.system(size: 10, weight: .bold)) + .foregroundColor(VColor.textMuted) + .frame(width: 16, height: 16) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .accessibilityLabel("Close \(thread.title)") } - .buttonStyle(.plain) - .accessibilityLabel("Close \(thread.title)") } .padding(.vertical, VSpacing.xxs) .tag(thread.id) @@ -103,6 +105,10 @@ struct MainWindowView: View { } } } + .transaction { transaction in + // Disable toolbar animations during sidebar transitions + transaction.animation = nil + } } else { // Tab mode: Traditional layout VStack(spacing: 0) { @@ -156,7 +162,9 @@ struct MainWindowView: View { // Close thread drawer when opening a right-side panel to avoid cramped layout if useThreadDrawer && newPanel != nil { - columnVisibility = .detailOnly + withTransaction(Transaction(animation: nil)) { + columnVisibility = .detailOnly + } } } .onChange(of: selectedThreadId) { _, newId in diff --git a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift index 355dc75d014..d212000e2bb 100644 --- a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift +++ b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift @@ -19,7 +19,7 @@ public struct VSplitView: View { .background(VColor.backgroundSubtle) .clipShape(RoundedRectangle(cornerRadius: VRadius.lg)) .padding(.vertical, VSpacing.sm) - .padding(.leading, VSpacing.sm) + .padding(.horizontal, VSpacing.sm) .transition(.move(edge: .trailing)) } } From c1e1b494b3170fe234b77bc8c573d41565c707b7 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 21:52:35 -0500 Subject: [PATCH 08/16] Enable drawer slide animation while preventing toolbar flash Changed approach to fix toolbar flash: - Removed broad .transaction modifier that disabled all animations - Added .animation(nil, value: columnVisibility) to toolbar HStack only - NavigationSplitView sidebar now slides in/out smoothly - Toolbar no longer flashes during sidebar transitions This gives us the best of both worlds: smooth drawer animation and stable toolbar positioning. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 4e8886c123c..840b7c98eed 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -102,13 +102,10 @@ struct MainWindowView: View { } .id("toolbar-doctor") } + .animation(nil, value: columnVisibility) } } } - .transaction { transaction in - // Disable toolbar animations during sidebar transitions - transaction.animation = nil - } } else { // Tab mode: Traditional layout VStack(spacing: 0) { From 465e118f40d1f959dff9a1245f0c28d7def3d25e Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 21:56:39 -0500 Subject: [PATCH 09/16] Fix root cause of toolbar flash - disable automatic sidebar toggle The "extra button" flash was caused by NavigationSplitView automatically adding a native sidebar toggle button to the toolbar. When the sidebar opened/closed, macOS would reposition/show/hide this button, causing our toolbar buttons to shift and flash. Fix: Add .toolbar(removing: .sidebarToggle) to disable the automatic sidebar toggle button that NavigationSplitView adds by default. Also removed the .animation(nil) workaround since we're now fixing the root cause instead of hiding the symptom. This is the proper fix - no animation suppression needed. Co-Authored-By: Claude Sonnet 4.5 --- .../vellum-assistant/Features/MainWindow/MainWindowView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 840b7c98eed..f0b58718369 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -74,6 +74,7 @@ struct MainWindowView: View { } detail: { // Detail: Main content chatContentView(geometry: geometry) + .toolbar(removing: .sidebarToggle) .toolbar { ToolbarItemGroup { HStack(spacing: VSpacing.sm) { @@ -102,7 +103,6 @@ struct MainWindowView: View { } .id("toolbar-doctor") } - .animation(nil, value: columnVisibility) } } } From 1a67724161b10948983fb42778cf1fa7cd0e3666 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 22:37:17 -0500 Subject: [PATCH 10/16] Style drawer mode panels and fix layout animations - Add panel styling to chat content (rounded corners, consistent background) - Remove top padding from panels so they extend to button bar - Add smooth spring animation to HStack to prevent jumping when drawer opens/closes - Match ThreadTabBar layout pattern with VStack wrapper Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 182 +++++++++++------- 1 file changed, 113 insertions(+), 69 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index f0b58718369..c1abc8b09ce 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -29,83 +29,62 @@ struct MainWindowView: View { GeometryReader { geometry in Group { if useThreadDrawer { - // Drawer mode: NavigationSplitView with toolbar - NavigationSplitView(columnVisibility: $columnVisibility) { - // Sidebar: Thread list with header - List(selection: $selectedThreadId) { - Section { - ForEach(threadManager.threads) { thread in - HStack(spacing: VSpacing.sm) { - Text(thread.title) - .font(VFont.body) - .foregroundColor(thread.id == threadManager.activeThreadId ? VColor.accent : VColor.textPrimary) - Spacer() - - if threadManager.threads.count > 1 { - Button(action: { threadManager.closeThread(id: thread.id) }) { - Image(systemName: "xmark") - .font(.system(size: 10, weight: .bold)) - .foregroundColor(VColor.textMuted) - .frame(width: 16, height: 16) - .contentShape(Rectangle()) - } - .buttonStyle(.plain) - .accessibilityLabel("Close \(thread.title)") - } + // Drawer mode: Custom split view (no NavigationSplitView) + VStack(spacing: 0) { + // Button bar (matches ThreadTabBar height and style) + VStack(spacing: 0) { + HStack(spacing: 0) { + // Thread drawer toggle + VIconButton(label: "Threads", icon: "list.bullet", isActive: columnVisibility != .detailOnly, iconOnly: true) { + withAnimation(.spring(response: 0.3, dampingFraction: 0.8)) { + columnVisibility = (columnVisibility == .detailOnly) ? .all : .detailOnly } - .padding(.vertical, VSpacing.xxs) - .tag(thread.id) } - } header: { - HStack { - Text("THREADS") - .font(VFont.sectionTitle) - .foregroundColor(VColor.textPrimary) - Spacer() - VIconButton(label: "New Thread", icon: "plus", iconOnly: true) { - threadManager.createThread() + + Spacer() + + // Panel toggle buttons + HStack(spacing: VSpacing.sm) { + VIconButton(label: "Dynamic", icon: "wand.and.stars", isActive: activePanel == .generated, iconOnly: true) { + togglePanel(.generated) + } + VIconButton(label: "Skills", icon: "exclamationmark.triangle", isActive: activePanel == .agent, iconOnly: true) { + togglePanel(.agent) + } + VIconButton(label: "Settings", icon: "gearshape", isActive: activePanel == .settings, iconOnly: true) { + togglePanel(.settings) + } + VIconButton(label: "Directory", icon: "doc.text", isActive: activePanel == .directory, iconOnly: true) { + togglePanel(.directory) + } + VIconButton(label: "Debug", icon: "ant", isActive: activePanel == .debug, iconOnly: true) { + togglePanel(.debug) + } + VIconButton(label: "Doctor", icon: "stethoscope", isActive: activePanel == .doctor, iconOnly: true) { + togglePanel(.doctor) } } - .padding(.bottom, VSpacing.xs) } + .padding(.leading, 78) + .padding(.trailing, VSpacing.lg) + .frame(height: 36) + .background(VColor.background) } - .listStyle(.sidebar) - .navigationSplitViewColumnWidth(min: 180, ideal: 200, max: 240) - } detail: { - // Detail: Main content - chatContentView(geometry: geometry) - .toolbar(removing: .sidebarToggle) - .toolbar { - ToolbarItemGroup { - HStack(spacing: VSpacing.sm) { - VIconButton(label: "Dynamic", icon: "wand.and.stars", isActive: activePanel == .generated, iconOnly: true) { - togglePanel(.generated) - } - .id("toolbar-dynamic") - VIconButton(label: "Skills", icon: "exclamationmark.triangle", isActive: activePanel == .agent, iconOnly: true) { - togglePanel(.agent) - } - .id("toolbar-skills") - VIconButton(label: "Settings", icon: "gearshape", isActive: activePanel == .settings, iconOnly: true) { - togglePanel(.settings) - } - .id("toolbar-settings") - VIconButton(label: "Directory", icon: "doc.text", isActive: activePanel == .directory, iconOnly: true) { - togglePanel(.directory) - } - .id("toolbar-directory") - VIconButton(label: "Debug", icon: "ant", isActive: activePanel == .debug, iconOnly: true) { - togglePanel(.debug) - } - .id("toolbar-debug") - VIconButton(label: "Doctor", icon: "stethoscope", isActive: activePanel == .doctor, iconOnly: true) { - togglePanel(.doctor) - } - .id("toolbar-doctor") - } - } + + // Content area with left drawer + chat + right panel + HStack(spacing: 0) { + // Left: Thread drawer (conditional) + if columnVisibility != .detailOnly { + threadDrawerView + .transition(.move(edge: .leading)) } + + // Center: Chat + right panel + chatContentView(geometry: geometry) + } + .animation(.spring(response: 0.3, dampingFraction: 0.8), value: columnVisibility) } + .ignoresSafeArea(edges: .top) } else { // Tab mode: Traditional layout VStack(spacing: 0) { @@ -179,6 +158,67 @@ struct MainWindowView: View { } } + @ViewBuilder + private func threadItem(_ thread: ThreadModel) -> some View { + HStack(spacing: VSpacing.sm) { + Text(thread.title) + .font(VFont.body) + .foregroundColor(thread.id == threadManager.activeThreadId ? VColor.accent : VColor.textPrimary) + Spacer() + + if threadManager.threads.count > 1 { + Button(action: { threadManager.closeThread(id: thread.id) }) { + Image(systemName: "xmark") + .font(.system(size: 10, weight: .bold)) + .foregroundColor(VColor.textMuted) + .frame(width: 16, height: 16) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .accessibilityLabel("Close \(thread.title)") + } + } + .padding(.horizontal, VSpacing.lg) + .padding(.vertical, VSpacing.xs) + .background(thread.id == threadManager.activeThreadId ? VColor.surface : Color.clear) + .clipShape(RoundedRectangle(cornerRadius: VRadius.sm)) + .onTapGesture { + threadManager.selectThread(id: thread.id) + } + } + + @ViewBuilder + private var threadDrawerView: some View { + VStack(spacing: 0) { + HStack { + Text("THREADS") + .font(VFont.sectionTitle) + .foregroundColor(VColor.textPrimary) + Spacer() + VIconButton(label: "New Thread", icon: "plus", iconOnly: true) { + threadManager.createThread() + } + } + .padding(.horizontal, VSpacing.lg) + .padding(.top, VSpacing.lg) + .padding(.bottom, VSpacing.xs) + + ScrollView { + VStack(spacing: VSpacing.xs) { + ForEach(threadManager.threads) { thread in + threadItem(thread) + } + } + .padding(.horizontal, VSpacing.sm) + } + } + .frame(width: 240) + .background(VColor.backgroundSubtle) + .clipShape(RoundedRectangle(cornerRadius: VRadius.lg)) + .padding(.bottom, VSpacing.sm) + .padding(.leading, VSpacing.sm) + } + @ViewBuilder private func chatContentView(geometry: GeometryProxy) -> some View { if isDynamicExpanded && activePanel == .generated { @@ -242,6 +282,10 @@ struct MainWindowView: View { }, panel: { panelContent }) + .background(VColor.backgroundSubtle) + .clipShape(RoundedRectangle(cornerRadius: VRadius.lg)) + .padding(.bottom, VSpacing.sm) + .padding(.horizontal, VSpacing.sm) } } From 9aa9a3b83f77d92610b64d83b9258c58ed402487 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 22:40:17 -0500 Subject: [PATCH 11/16] Fix drawer reopening and VSplitView padding issues - Reopen thread drawer when closing right-side panel (fixes drawer staying hidden) - Revert VSplitView padding to exclude top padding (panels flush with button bar) Addresses Devin review feedback on PR #2150 Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 5 +++++ .../shared/DesignSystem/Components/Layout/VSplitView.swift | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index c1abc8b09ce..f852befd713 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -137,10 +137,15 @@ struct MainWindowView: View { } // Close thread drawer when opening a right-side panel to avoid cramped layout + // Reopen drawer when closing the panel if useThreadDrawer && newPanel != nil { withTransaction(Transaction(animation: nil)) { columnVisibility = .detailOnly } + } else if useThreadDrawer && newPanel == nil { + withTransaction(Transaction(animation: nil)) { + columnVisibility = .all + } } } .onChange(of: selectedThreadId) { _, newId in diff --git a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift index d212000e2bb..25da537b4e0 100644 --- a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift +++ b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift @@ -18,8 +18,7 @@ public struct VSplitView: View { .frame(width: panelWidth) .background(VColor.backgroundSubtle) .clipShape(RoundedRectangle(cornerRadius: VRadius.lg)) - .padding(.vertical, VSpacing.sm) - .padding(.horizontal, VSpacing.sm) + .padding([.bottom, .leading, .trailing], VSpacing.sm) .transition(.move(edge: .trailing)) } } From 9b57bf9e991ad089fa224c5f0d34cdd44669dce4 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 22:44:43 -0500 Subject: [PATCH 12/16] Clean up code quality issues - Remove duplicate .ignoresSafeArea(edges: .top) in drawer mode - Merge duplicate .onAppear blocks into single initialization - Add comment explaining 78pt padding for traffic light buttons - Change ThreadModel.sessionId back to let (no longer mutated) Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 8 ++------ .../Features/MainWindow/ThreadModel.swift | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index f852befd713..174a7a52358 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -65,7 +65,7 @@ struct MainWindowView: View { } } } - .padding(.leading, 78) + .padding(.leading, 78) // Account for macOS traffic light buttons .padding(.trailing, VSpacing.lg) .frame(height: 36) .background(VColor.background) @@ -84,7 +84,6 @@ struct MainWindowView: View { } .animation(.spring(response: 0.3, dampingFraction: 0.8), value: columnVisibility) } - .ignoresSafeArea(edges: .top) } else { // Tab mode: Traditional layout VStack(spacing: 0) { @@ -122,6 +121,7 @@ struct MainWindowView: View { .animation(VAnimation.fast, value: zoomManager.showZoomIndicator) .onAppear { refreshAPIKeyState() + selectedThreadId = threadManager.activeThreadId } .onReceive(NotificationCenter.default.publisher(for: .apiKeyManagerDidChange)) { _ in refreshAPIKeyState() @@ -157,10 +157,6 @@ struct MainWindowView: View { // Sync activeThreadId changes back to selectedThreadId to keep sidebar selection in sync selectedThreadId = newId } - .onAppear { - // Initialize selectedThreadId to match activeThreadId on appear - selectedThreadId = threadManager.activeThreadId - } } @ViewBuilder diff --git a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift index 064fa691836..1fe22b07db4 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/ThreadModel.swift @@ -5,7 +5,7 @@ struct ThreadModel: Identifiable, Hashable { let title: String let createdAt: Date /// Daemon conversation ID for restored threads. Nil for new, unsaved threads. - var sessionId: String? + let sessionId: String? init(id: UUID = UUID(), title: String = "New Thread", createdAt: Date = Date(), sessionId: String? = nil) { self.id = id From c1d0e37cc37d7f00ed0f1bab888191c5f6c72b01 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 22:49:49 -0500 Subject: [PATCH 13/16] Fix shared component regressions and styling issues - Make chat panel styling conditional on drawer mode (fixes tab mode regression) - Revert VSplitView animation to VAnimation.standard (shared component fix) - Extract trafficLightPadding constant with detailed documentation Addresses critical review feedback: tab mode no longer gets unintended background/clipping, and VSplitView animation is consistent across all uses. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 18 +++++++++++++----- .../Components/Layout/VSplitView.swift | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 174a7a52358..2a61e870406 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -25,6 +25,14 @@ struct MainWindowView: View { self.onMicrophoneToggle = onMicrophoneToggle } + // MARK: - Layout Constants + + /// Leading padding to account for macOS traffic light buttons (red/yellow/green). + /// Note: This is a fixed value that may not be accurate for all window styles or + /// if Apple changes the traffic light spacing. Dynamic measurement would be better + /// but requires complex window geometry inspection. + private let trafficLightPadding: CGFloat = 78 + var body: some View { GeometryReader { geometry in Group { @@ -65,7 +73,7 @@ struct MainWindowView: View { } } } - .padding(.leading, 78) // Account for macOS traffic light buttons + .padding(.leading, trafficLightPadding) .padding(.trailing, VSpacing.lg) .frame(height: 36) .background(VColor.background) @@ -81,6 +89,10 @@ struct MainWindowView: View { // Center: Chat + right panel chatContentView(geometry: geometry) + .background(VColor.backgroundSubtle) + .clipShape(RoundedRectangle(cornerRadius: VRadius.lg)) + .padding(.bottom, VSpacing.sm) + .padding(.horizontal, VSpacing.sm) } .animation(.spring(response: 0.3, dampingFraction: 0.8), value: columnVisibility) } @@ -283,10 +295,6 @@ struct MainWindowView: View { }, panel: { panelContent }) - .background(VColor.backgroundSubtle) - .clipShape(RoundedRectangle(cornerRadius: VRadius.lg)) - .padding(.bottom, VSpacing.sm) - .padding(.horizontal, VSpacing.sm) } } diff --git a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift index 25da537b4e0..7cdf2e7b9dc 100644 --- a/clients/shared/DesignSystem/Components/Layout/VSplitView.swift +++ b/clients/shared/DesignSystem/Components/Layout/VSplitView.swift @@ -22,7 +22,7 @@ public struct VSplitView: View { .transition(.move(edge: .trailing)) } } - .animation(.spring(response: 0.3, dampingFraction: 0.8), value: showPanel) + .animation(VAnimation.standard, value: showPanel) } public init( From 1750dfc79f4d268c9b782b842162545f418c61d7 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 22:55:49 -0500 Subject: [PATCH 14/16] Fix drawer not preserving closed state when panel closes When Settings (or any panel) was opened with drawer already closed, closing the panel would incorrectly reopen the drawer. Now tracks previous drawer state and only reopens if it was open before. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 2a61e870406..09ca682c46a 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -11,6 +11,7 @@ struct MainWindowView: View { @State private var hasAPIKey = APIKeyManager.hasAnyKey() @State private var columnVisibility: NavigationSplitViewVisibility = .automatic @State private var selectedThreadId: UUID? + @State private var drawerWasOpenBeforePanel = false @AppStorage("useThreadDrawer") private var useThreadDrawer: Bool = false let daemonClient: DaemonClient let ambientAgent: AmbientAgent @@ -149,12 +150,15 @@ struct MainWindowView: View { } // Close thread drawer when opening a right-side panel to avoid cramped layout - // Reopen drawer when closing the panel + // Restore previous drawer state when closing the panel if useThreadDrawer && newPanel != nil { + // Save current drawer state before closing + drawerWasOpenBeforePanel = (columnVisibility != .detailOnly) withTransaction(Transaction(animation: nil)) { columnVisibility = .detailOnly } - } else if useThreadDrawer && newPanel == nil { + } else if useThreadDrawer && newPanel == nil && drawerWasOpenBeforePanel { + // Only reopen if drawer was open before withTransaction(Transaction(animation: nil)) { columnVisibility = .all } From 341835865186f6a1ba2bfd1a3c687e7554fb04ca Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 22:58:21 -0500 Subject: [PATCH 15/16] Remove automatic drawer/panel linking behavior Drawer and panels now only open/close via manual toggle - no automatic closing of drawer when panel opens, no automatic reopening. Both are completely independent. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 09ca682c46a..1265f574a24 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -11,7 +11,6 @@ struct MainWindowView: View { @State private var hasAPIKey = APIKeyManager.hasAnyKey() @State private var columnVisibility: NavigationSplitViewVisibility = .automatic @State private var selectedThreadId: UUID? - @State private var drawerWasOpenBeforePanel = false @AppStorage("useThreadDrawer") private var useThreadDrawer: Bool = false let daemonClient: DaemonClient let ambientAgent: AmbientAgent @@ -148,21 +147,6 @@ struct MainWindowView: View { if newPanel != .generated { isDynamicExpanded = false } - - // Close thread drawer when opening a right-side panel to avoid cramped layout - // Restore previous drawer state when closing the panel - if useThreadDrawer && newPanel != nil { - // Save current drawer state before closing - drawerWasOpenBeforePanel = (columnVisibility != .detailOnly) - withTransaction(Transaction(animation: nil)) { - columnVisibility = .detailOnly - } - } else if useThreadDrawer && newPanel == nil && drawerWasOpenBeforePanel { - // Only reopen if drawer was open before - withTransaction(Transaction(animation: nil)) { - columnVisibility = .all - } - } } .onChange(of: selectedThreadId) { _, newId in if let newId = newId { From 61e86582e85d6ebb93e492747d7ea0bb25d7f5e1 Mon Sep 17 00:00:00 2001 From: Ashlee Radka Date: Sat, 14 Feb 2026 23:01:11 -0500 Subject: [PATCH 16/16] Fix thread item close button gesture conflict Restructured threadItem to use Button-based approach like ThreadTab, with close button in overlay instead of nested in HStack. This prevents onTapGesture from intercepting close button clicks. Fixes Devin review feedback. Co-Authored-By: Claude Sonnet 4.5 --- .../Features/MainWindow/MainWindowView.swift | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift index 1265f574a24..41c80f6eda8 100644 --- a/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift +++ b/clients/macos/vellum-assistant/Features/MainWindow/MainWindowView.swift @@ -161,12 +161,23 @@ struct MainWindowView: View { @ViewBuilder private func threadItem(_ thread: ThreadModel) -> some View { - HStack(spacing: VSpacing.sm) { - Text(thread.title) - .font(VFont.body) - .foregroundColor(thread.id == threadManager.activeThreadId ? VColor.accent : VColor.textPrimary) - Spacer() - + Button(action: { threadManager.selectThread(id: thread.id) }) { + HStack(spacing: VSpacing.sm) { + Text(thread.title) + .font(VFont.body) + .foregroundColor(thread.id == threadManager.activeThreadId ? VColor.accent : VColor.textPrimary) + Spacer() + // Reserve space for close button + if threadManager.threads.count > 1 { + Spacer().frame(width: 16) + } + } + .padding(.horizontal, VSpacing.lg) + .padding(.vertical, VSpacing.xs) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .overlay(alignment: .trailing) { if threadManager.threads.count > 1 { Button(action: { threadManager.closeThread(id: thread.id) }) { Image(systemName: "xmark") @@ -177,15 +188,11 @@ struct MainWindowView: View { } .buttonStyle(.plain) .accessibilityLabel("Close \(thread.title)") + .padding(.trailing, VSpacing.lg) } } - .padding(.horizontal, VSpacing.lg) - .padding(.vertical, VSpacing.xs) .background(thread.id == threadManager.activeThreadId ? VColor.surface : Color.clear) .clipShape(RoundedRectangle(cornerRadius: VRadius.sm)) - .onTapGesture { - threadManager.selectThread(id: thread.id) - } } @ViewBuilder