Made reliable type passdown from executor to console

This commit is contained in:
Emir Karabeg
2025-01-31 19:19:03 -08:00
parent 823f89ba74
commit 2b08e2d830
5 changed files with 11 additions and 22 deletions
+1 -2
View File
@@ -18,7 +18,6 @@ import {
BlockLog
} from './types'
import { tools } from '@/tools'
import { getBlockTypeForTool } from '@/blocks'
export class Executor {
constructor(
@@ -126,7 +125,7 @@ export class Executor {
const blockLog: Partial<BlockLog> = {
blockId: block.id,
blockTitle: block.metadata?.title,
blockType: getBlockTypeForTool(block.config.tool || ''),
blockType: block.metadata?.type,
startedAt: new Date().toISOString(),
}