From 56808ac210ee9ed2484fefd7720c42519850b0a0 Mon Sep 17 00:00:00 2001 From: Mingholy Date: Thu, 18 Sep 2025 13:27:09 +0800 Subject: [PATCH] fix: reset is_background (#644) --- packages/core/src/tools/shell.ts | 5 +++++ packages/core/src/utils/schemaValidator.ts | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/src/tools/shell.ts b/packages/core/src/tools/shell.ts index 3bd7d754..1265aee7 100644 --- a/packages/core/src/tools/shell.ts +++ b/packages/core/src/tools/shell.ts @@ -419,6 +419,11 @@ export class ShellTool extends BaseDeclarativeTool< type: 'string', description: getCommandDescription(), }, + is_background: { + type: 'boolean', + description: + 'Whether to run the command in background. Default is false. Set to true for long-running processes like development servers, watchers, or daemons that should continue running without blocking further commands.', + }, description: { type: 'string', description: diff --git a/packages/core/src/utils/schemaValidator.ts b/packages/core/src/utils/schemaValidator.ts index 3b009fc8..febe44b0 100644 --- a/packages/core/src/utils/schemaValidator.ts +++ b/packages/core/src/utils/schemaValidator.ts @@ -14,7 +14,6 @@ const ajValidator = new AjvClass({ coerceTypes: true }); const addFormatsFunc = (addFormats as any).default || addFormats; addFormatsFunc(ajValidator); - /** * Simple utility to validate objects against JSON Schemas */