From 57ceadb7d87b77fda543ee35097e7b68c10f1e5b Mon Sep 17 00:00:00 2001 From: Olcan Date: Mon, 28 Apr 2025 15:05:36 -0700 Subject: switch to shell tool, deprecating terminal (#203) * switch to shell tool, deprecating terminal * Merge remote-tracking branch 'origin/main' into deprecate_terminal --- packages/server/src/config/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/server/src/config') diff --git a/packages/server/src/config/config.ts b/packages/server/src/config/config.ts index 498c7257..6ce9c363 100644 --- a/packages/server/src/config/config.ts +++ b/packages/server/src/config/config.ts @@ -145,11 +145,11 @@ function createToolRegistry(config: Config): ToolRegistry { new ReadManyFilesTool(targetDir), ]; - // use ShellTool (next-gen TerminalTool) if environment variable is set - if (process.env.SHELL_TOOL) { - tools.push(new ShellTool(config)); - } else { + // if TERMINAL_TOOL is set, revert to deprecated TerminalTool + if (process.env.TERMINAL_TOOL) { tools.push(new TerminalTool(targetDir, config)); + } else { + tools.push(new ShellTool(config)); } for (const tool of tools) { -- cgit v1.2.3