mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Re-enable backticks in shell tool usage. (#3360)
This commit is contained in:
@@ -123,13 +123,6 @@ Process Group PGID: Process group started or \`(none)\``,
|
||||
'Command substitution using $() is not allowed for security reasons',
|
||||
};
|
||||
}
|
||||
if (command.includes('`')) {
|
||||
return {
|
||||
allowed: false,
|
||||
reason:
|
||||
'Command substitution using backticks is not allowed for security reasons',
|
||||
};
|
||||
}
|
||||
|
||||
const SHELL_TOOL_NAMES = [ShellTool.name, ShellTool.Name];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user