fix: lint

This commit is contained in:
cpacker
2025-11-26 23:03:04 -08:00
parent 240f46869d
commit 3525606e02

View File

@@ -676,7 +676,13 @@ export async function executeTool(
};
}
const tool = toolRegistry.get(internalName)!;
const tool = toolRegistry.get(internalName);
if (!tool) {
return {
toolReturn: `Tool not found: ${name}. Available tools: ${Array.from(toolRegistry.keys()).join(", ")}`,
status: "error",
};
}
try {
// Inject abort signal for tools that support it (currently Bash) without altering schemas