summaryrefslogtreecommitdiff
path: root/packages/server/src/config/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/config/config.ts')
-rw-r--r--packages/server/src/config/config.ts8
1 files changed, 4 insertions, 4 deletions
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) {