Commit c352690
committed
fix: conditionally include tools field in session config only when tools are present
- Modified #getSessionConfig to only include tools field when #currentTools.length > 0
- Fixes failing test 'does not include tools field when no tools are provided'
- Preserves existing behavior for agents with actual tools1 parent 7ac51d4 commit c352690
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
| |||
0 commit comments