You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tool): preserve custom builtins across create_bash calls (#461)
## Summary
- Changed `BashTool.builtins` from `Vec<(String, Box<dyn Builtin>)>` to
`Vec<(String, Arc<dyn Builtin>)>`
- `create_bash()` now clones Arc refs instead of `std::mem::take` which
emptied builtins
- Added `Builtin` impl for `Arc<dyn Builtin>` to enable Box wrapping
## Test plan
- [x] `test_create_bash_preserves_builtins` — custom builtin available
on second call
- [x] All lib tests pass
Closes#422
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments