From 7fd52b48056de3116dd54c68957afd012c28e8e4 Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Wed, 16 Apr 2025 20:44:45 -0700 Subject: [PATCH] fix commandbarinchat state --- .../void/browser/react/src/sidebar-tsx/SidebarChat.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index c6918a0c..9eef9348 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -2126,6 +2126,7 @@ const CommandBarInChat = () => { const commandService = accessor.get('ICommandService') const chatThreadsService = accessor.get('IChatThreadService') const chatThreadsState = useChatThreadsState() + const commandBarState = useCommandBarState() const chatThreadsStreamState = useChatThreadsStreamState(chatThreadsState.currentThreadId) const settingsState = useSettingsState() @@ -2183,7 +2184,12 @@ const CommandBarInChat = () => { }, [fileDetailsOpenedState, setFileDetailsOpenedState, numFilesChanged]) - const isFinishedMakingThreadChanges = numFilesChanged !== 0 && (chatThreadsStreamState ? !chatThreadsStreamState.isRunning : true) + const isFinishedMakingThreadChanges = ( + // there are changed files + commandBarState.sortedURIs.length !== 0 + // none of the files are streaming + && commandBarState.sortedURIs.every(uri => !commandBarState.stateOfURI[uri.fsPath]?.isStreaming) + ) // ======== status of agent ======== // This icon answers the question "is the LLM doing work on this thread?"