mirror of https://github.com/openclaw/openclaw.git
fix(tools): accept legacy bash tool calls
This commit is contained in:
parent
a0a7e74a62
commit
86ea00dc21
|
|
@ -641,6 +641,11 @@ export function createClawdbotCodingTools(options?: {
|
|||
}
|
||||
: undefined,
|
||||
});
|
||||
const bashTool = {
|
||||
...(execTool as unknown as AnyAgentTool),
|
||||
name: "bash",
|
||||
label: "bash",
|
||||
} satisfies AnyAgentTool;
|
||||
const processTool = createProcessTool({
|
||||
cleanupMs: options?.exec?.cleanupMs,
|
||||
scopeKey,
|
||||
|
|
@ -665,6 +670,7 @@ export function createClawdbotCodingTools(options?: {
|
|||
: []),
|
||||
...(applyPatchTool ? [applyPatchTool as unknown as AnyAgentTool] : []),
|
||||
execTool as unknown as AnyAgentTool,
|
||||
bashTool,
|
||||
processTool as unknown as AnyAgentTool,
|
||||
// Provider docking: include provider-defined agent tools (login, etc.).
|
||||
...listProviderAgentTools({ cfg: options?.config }),
|
||||
|
|
|
|||
Loading…
Reference in New Issue