From 04f3fe053dc91038b1459aa4f816481552c07315 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Thu, 19 Feb 2026 03:57:07 -0600 Subject: [PATCH] fix: Add transcript-debug page to toolRegistry to prevent flatMap crash --- frontend/src/services/toolRegistry.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/services/toolRegistry.ts b/frontend/src/services/toolRegistry.ts index 05706a4..231f286 100644 --- a/frontend/src/services/toolRegistry.ts +++ b/frontend/src/services/toolRegistry.ts @@ -33,7 +33,7 @@ import { setRouter } from './tools/handlers/globalHandlers' import { setGiteaCredentials, clearGiteaCredentials } from './tools/handlers/sourceCodeHandlers' import { ALL_TOOL_METAS, getAllToolNames, type ToolCategory } from './tools/toolDefinitions' -export type PageName = 'home' | 'canvas' | 'components' | 'themes' | 'project-canvas' | 'database' | 'source' | 'terminal' | 'tools' | 'git' | 'agents' +export type PageName = 'home' | 'canvas' | 'components' | 'themes' | 'project-canvas' | 'database' | 'source' | 'terminal' | 'tools' | 'git' | 'agents' | 'transcript-debug' // Internal webmcp functions (not exported for external use) let webmcpInstance: any = null @@ -172,7 +172,8 @@ const pageCategories: Record = { terminal: ['global', 'torch', 'terminal'], tools: ['global', 'torch', 'terminal'], git: ['global', 'torch', 'git', 'terminal'], - agents: ['global', 'torch', 'terminal'] + agents: ['global', 'torch', 'terminal'], + 'transcript-debug': ['global', 'torch', 'terminal'] } let currentPage: PageName | null = null