mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Revert "cleanup: removed duplicate check from Config.registerCoreTool()" (#657)
Didn't notice the casing difference - duh....
This commit is contained in:
@@ -243,7 +243,7 @@ export function createToolRegistry(config: Config): ToolRegistry {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const registerCoreTool = (ToolClass: any, ...args: unknown[]) => {
|
||||
// check both the tool name (.Name) and the class name (.name)
|
||||
if (!tools || tools.has(ToolClass.Name)) {
|
||||
if (!tools || tools.has(ToolClass.Name) || tools.has(ToolClass.name)) {
|
||||
registry.registerTool(new ToolClass(...args));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user