@@ -56,7 +56,7 @@ import { useChatStore } from '@/stores/chat/store'
5656import { getChatPosition } from '@/stores/chat/utils'
5757import { useCurrentWorkflowExecution } from '@/stores/execution'
5858import { useOperationQueue } from '@/stores/operation-queue/store'
59- import { useTerminalConsoleStore } from '@/stores/terminal'
59+ import { useTerminalConsoleStore , useWorkflowConsoleEntries } from '@/stores/terminal'
6060import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
6161import { useSubBlockStore } from '@/stores/workflows/subblock/store'
6262import { useWorkflowStore } from '@/stores/workflows/workflow/store'
@@ -265,8 +265,7 @@ export function Chat() {
265265 )
266266
267267 const hasConsoleHydrated = useTerminalConsoleStore ( ( state ) => state . _hasHydrated )
268- const entriesFromStore = useTerminalConsoleStore ( ( state ) => state . entries )
269- const entries = hasConsoleHydrated ? entriesFromStore : [ ]
268+ const entries = useWorkflowConsoleEntries ( hasConsoleHydrated ? activeWorkflowId : undefined )
270269 const { isExecuting } = useCurrentWorkflowExecution ( )
271270 const { handleRunWorkflow, handleCancelExecution } = useWorkflowExecution ( )
272271 const { data : session } = useSession ( )
@@ -427,9 +426,8 @@ export function Chat() {
427426 } )
428427
429428 const outputEntries = useMemo ( ( ) => {
430- if ( ! activeWorkflowId ) return [ ]
431- return entries . filter ( ( entry ) => entry . workflowId === activeWorkflowId && entry . output )
432- } , [ entries , activeWorkflowId ] )
429+ return entries . filter ( ( entry ) => entry . output )
430+ } , [ entries ] )
433431
434432 const workflowMessages = useMemo ( ( ) => {
435433 if ( ! activeWorkflowId ) return [ ]
0 commit comments