Source: github.com/vercel/ai/releases/tag/%40ai-sdk%2Ftool-bash%401.0.42
The patch release, published on 2 December, makes the bash tool use the sandbox supplied through experimental_sandbox for both command execution and tool descriptions.
createBashTool() now returns synchronously and does not need a sandbox to be passed in up front. Custom working directories are created during execution in the current sandbox.
The changelog also says HarnessAgent now resolves dynamic tool descriptions using the current tool context and sandbox before sending them to the runtime.
Why it matters if you build agents
If you call createBashTool() at setup time, you can drop the sandbox argument and handle it at execution time instead. Code that expected the call to be asynchronous should be checked against the new synchronous return.
If you use experimental_sandbox, confirm that your tool descriptions and working directories are resolved in the sandbox you expect, since that is now where execution happens.
Get stories like this every weekday
One short email with the day's agent tooling news.