From f6dedf0fbe0d574174491a2059597b4996aa905c Mon Sep 17 00:00:00 2001 From: William Valentin Date: Tue, 10 Feb 2026 11:45:05 -0800 Subject: [PATCH] fix(tui): register Google Calendar tools when gcal is enabled Co-Authored-By: Claude Opus 4.6 --- src/cli/tui.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cli/tui.ts b/src/cli/tui.ts index e16b7a7..6e36f93 100644 --- a/src/cli/tui.ts +++ b/src/cli/tui.ts @@ -78,7 +78,7 @@ export function registerTuiCommand(program: Command): void { setLogLevel(config.log_level); const { MinimalTui, startFullscreenTui } = await import('../frontends/tui/index.js'); const { NativeAgent } = await import('../backends/index.js'); - const { ToolRegistry, ToolExecutor, allBuiltinTools, createWebSearchTools, createProcessTools, ProcessManager, createGmailTools } = await import('../tools/index.js'); + const { ToolRegistry, ToolExecutor, allBuiltinTools, createWebSearchTools, createProcessTools, ProcessManager, createGmailTools, createGcalTools } = await import('../tools/index.js'); const { HookEngine } = await import('../hooks/index.js'); const { createModelRouter } = await import('../daemon/index.js'); @@ -134,6 +134,13 @@ export function registerTuiCommand(program: Command): void { } } + // Register Google Calendar tools if configured + if (config.automation.gcal?.enabled) { + for (const tool of createGcalTools(config.automation.gcal)) { + toolRegistry.register(tool); + } + } + const toolExecutor = new ToolExecutor(toolRegistry, hookEngine); const session = sessionManager.getSession('tui', 'local');